Skip to content

Commit

Permalink
Correct instructions how to run smoke tests on Linux (dotnet#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
kant2002 authored Sep 6, 2021
1 parent 3d29441 commit 46831cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/workflow/building/coreclr/nativeaot.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The workflow looks like this:

If you haven't built the tests yet, run `src\tests\build[.cmd|.sh] nativeaot [Debug|Release] /p:SmokeTestsOnly=true`. This will build the smoke tests only - they usually suffice to ensure the runtime and compiler is in a workable shape. To build all Pri-0 tests, drop the `SmokeTestsOnly` parameter. The `Debug`/`Release` parameter should match the build configuration you used to build the runtime.

To run all the tests that got built, run `src\tests\run[.cmd|.sh] runnativeaottests [Debug|Release]`. The `Debug`/`Release` flag should match the flag that was passed to `build.cmd` in the previous step.
To run all the tests that got built, run `src\tests\run.cmd runnativeaottests [Debug|Release]` on Windows, or `src/tests/run.sh --runnativeaottests [Debug|Release]` on Linux. The `Debug`/`Release` flag should match the flag that was passed to `build.cmd` in the previous step.

To run an individual test (after it was built), navigate to the `artifacts\tests\coreclr\[Windows|Linux|OSX[.x64.[Debug|Release]\$path_to_test` directory. `$path_to_test` matches the subtree of `src\tests`. You should see a `[.cmd|.sh]` file there. This file is a script that will compile and launch the individual test for you. Before invoking the script, set the following environment variables:

Expand Down

0 comments on commit 46831cd

Please sign in to comment.