mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 04:39:31 -10:00
* Use CMakeProjectReference instead of ProjectReference Changing this permits usage of "\runtime\dotnet.cmd build" as opposed to forcing users to use "\runtime\dotnet.cmd msbuild".
1.8 KiB
1.8 KiB
Running Tests
Details on test metadata can be found in test-configuration.md.
Build All Tests
- Build the CoreCLR product
- Build the libraries in Release configuration. Pass the configuration of CoreCLR you just built to the build script (e.g.
-runtimeconfiguration debug). - From the root directory run the following command:
- Non-Windows -
src/tests/build.sh - Windows -
src\tests\build.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 pull requests (PRs), while the priority 1 tests run in outerloop CI runs.
Examples
- Build all tests priority 1 and higher
build.cmd -priority=1build.sh -priority1
Build Individual Test
Note: CoreCLR must be built prior to building an individual test. See the first step, above, for building all tests.
- Native Test: Build the generated CMake projects
- Projects are auto-generated when the
build.sh/build.cmdscript is run- It is possible to explicitly run only the native test build with
build.sh/cmd skipmanaged
- It is possible to explicitly run only the native test build with
- Projects are auto-generated when the
- Managed Test: Invoke
dotnet buildon the project directly.dotnetcan be thedotnet.shordotnet.cmdscript in the repo root.<runtime-repo-root>/dotnet.sh build <runtime-repo-root>/src/tests/<path-to-project> -c <configuration>- To build managed test projects with dependencies on native test projects, the native test project must first be built.