mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
* Move files into hierarchy * fix more links * Fix botr and features links * Remove bad apostrophe * spelling * Apply suggestions from code review Co-Authored-By: Youssef Victor <[email protected]> * Update docs/coding-guidelines/package-projects.md Co-Authored-By: Jan Kotas <[email protected]> Co-authored-by: Youssef Victor <[email protected]> Co-authored-by: Jan Kotas <[email protected]>
1.5 KiB
1.5 KiB
Running .NET Core Tests
Details on test metadata can be found in test-configuration.md.
Build All Tests
- Build the CoreCLR product
- From the root directory run the following command:
- Non-Windows -
./build-test.sh - Windows -
build-test.cmd - Supply
-hfor usage flags
- Non-Windows -
Test priority
The CoreCLR tests have two priorities 0 and 1, the priority 0 tests run by default on all PRs, while the priority 1 tests run out outerloop CI runs.
Examples
- Build all tests priority
1and higherbuild-test.cmd -priority=1build-test.sh -priority1
Build Individual Test
Note: CoreCLR must be built prior to building an individual test. See first step for building all tests.
- Native Test: Build the generated CMake projects
- Projects are auto-generated when the
build-test.sh/build-test.cmdscript is run- It is possible to explicitely run only the native test build with
build-test.sh/cmd skipmanaged
- It is possible to explicitely run only the native test build with
- Projects are auto-generated when the
- Managed Test: Invoke dotnet msbuild on the project directly
~/runtime/.dotnet/dotnet msbuild ~/runtime/src/coreclr/tests/src/JIT/CodegenBringupTests/Array1.csproj /p:__BuildOs=OSX /p:__BuildType=Release
- Note that /p:__BuildOs=
[Windows_NT, OSX, Linux]is required.
- Note that /p:__BuildOs=