-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Closed
Copy link
Labels
Milestone
Description
Description
Tests failed with Environment variable is not set: 'CORE_ROOT'.
- ilasm/System/Runtime/CompilerServices/MethodImplOptionsTests/MethodImplOptionsTests.sh
- JIT/CheckProjects/CheckProjects/CheckProjects.sh
Configuration
- Get dotnet/runtime repo
- Remove the test(s) that you would like to reproduce from
<repo_root>/src/coreclr/tests/issues.targets - Build WASM:
./build.sh --os Browser --arch wasm --subset mono+libs -c Release - Build runtime tests:
cd src/coreclr/ && ./build-test.sh -skipstressdependencies -excludemonofailures os Browser wasm Release - To run all runtime tests, at the end of the runtime tests build log, there is "Example runtest.sh command". Use that command plus
wasm. For example, for me it was
./tests/runtest.sh --coreOverlayDir=/Users/fanyang/Documents/work/dotnet_naricc/runtime/artifacts/tests/coreclr/Browser.wasm.Release/Tests/Core_Root --testNativeBinDir=/Users/fanyang/Documents/work/dotnet_naricc/runtime/artifacts/obj/coreclr/Browser.wasm.Release/tests --testRootDir=/Users/fanyang/Documents/work/dotnet_naricc/runtime/artifacts/tests/coreclr/Browser.wasm.Release --copyNativeTestBin Release wasm - To run a single test, you could do
set CORE_ROOT=<repo_root>/artifacts/tests/coreclr/Browser.wasm.Release/Tests/Core_Root
<repo_root>/artifacts/tests/coreclr/Browser.wasm.Release/ilasm/System/Runtime/CompilerServices/MethodImplOptionsTests/MethodImplOptionsTests.sh