Details on test metadata can be found in test-configuration.md.
- 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 -
- Build all tests priority
2and higherbuild-test.cmd -priority=2
Note: The 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
- Projects are auto-generated when the
- Managed Test: Invoke MSBuild on the project directly
- Non-Windows - All of the necessary tools to build are under
coreclr/Tools. It is possible to usecoreclr/Tools/MSBuild.dllas you would normally use MSBuild with a few caveats. Thecoreclr/Tools/msbuild.shscript exists to make the call shorter.- Note: Passing
/p:__BuildOs=[OSX|Linux] is required.
- Note: Passing
- Windows - Use Visual Studio Developer command prompt
- Non-Windows - All of the necessary tools to build are under
- Using the
dotnet.shscriptcoreclr/dotnet.sh msbuild /maxcpucount coreclr/tests/src/JIT/CodeGenBringUpTests/Array1.csproj /p:__BuildType=Release /p:__BuildOS=OSX