Skip to content

Commit 22be4ca

Browse files
kant2002jkotas
andauthored
Improve docs on building ILVerify (#111851)
* Improve docs on building ILVerify * Update src/coreclr/tools/ILVerify/README.md Co-authored-by: Jan Kotas <[email protected]>
1 parent baa8359 commit 22be4ca

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

src/coreclr/tools/ILVerify/README.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,34 @@ The test project itself is under [src/tests/ilverify](../../../tests/ilverify)
4848

4949
General instructions to build this library can be found [here](https://github.com/dotnet/runtime/blob/main/docs/workflow/testing/coreclr/testing.md).
5050

51-
As the test project is marked with priority=1, simply building the test projects from the root of the project is not enough. For the initial build of priority=1 in release mode, run the following:
51+
As quick snippet which should be enough to build CoreCLR
52+
```
53+
./build.cmd -s clr+libs -c release
54+
```
5255

53-
```sh
54-
src/tests/build.(cmd/sh) release -priority=1
56+
As the test project is marked with priority=1, simply building the test projects from the root of the project is not enough. Run the following to build ilverify tests:
57+
58+
```shell
59+
src/tests/build.(cmd/sh) release tree ilverify
5560
```
5661

5762
It is important to not attempt to build the test project using `dotnet build` or `dotnet test`, as this will invalidate the state of the build and requires a full rebuild of both (see this [issue](https://github.com/dotnet/runtime/issues/43967)).
5863

5964
To incrementally build the ILVerify tests in isolation, run the following:
6065

6166
```sh
62-
dotnet.(cmd/sh) msbuild ./src/tests/ilverify/ILVerification.Tests.csproj /p:Configuration=Release
67+
dotnet.(cmd/sh) msbuild ./src/tests/ilverify/ILVerificationTests.csproj /p:Configuration=Release
6368
```
6469

6570
In order to run the tests, execute:
6671

72+
on Linux
6773
```sh
68-
artifacts/tests/coreclr/(windows/linux).x64.Release/ilverify/ILVerification.Tests.(cmd/sh) -coreroot=artifacts/tests/coreclr/(windows/linux).x64.Release/Tests/Core_Root
74+
artifacts/tests/coreclr/linux.x64.Release/ilverify/ILVerificationTests.sh -coreroot=<repo_root>artifacts/tests/coreclr/linux.x64.Release/Tests/Core_Root
75+
```
76+
on Windows
77+
```shell
78+
artifacts\tests\coreclr\windows.x64.Release\ilverify\ILVerificationTests.cmd -coreroot=<repo_root>artifacts\tests\coreclr\windows.x64.Release\Tests\Core_Root
6979
```
7080

7181

0 commit comments

Comments
 (0)