diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2022-06-16 14:41:27 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2022-06-16 16:49:13 -0500 |
| commit | 4d94ed9fd1d9cb69337134561c520a24a91b91b2 (patch) | |
| tree | 494d91dce4eacffae5a0263a0d35892b80d10e73 /src/burn | |
| parent | 223606fcd02e6d15e065d1e108e17c8848d35f9f (diff) | |
| download | wix-4d94ed9fd1d9cb69337134561c520a24a91b91b2.tar.gz wix-4d94ed9fd1d9cb69337134561c520a24a91b91b2.tar.bz2 wix-4d94ed9fd1d9cb69337134561c520a24a91b91b2.zip | |
Use dotnet test on C++/CLI test projects to get trx logs.
Diffstat (limited to 'src/burn')
| -rw-r--r-- | src/burn/burn.cmd | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/burn/burn.cmd b/src/burn/burn.cmd index 60640b08..127f9253 100644 --- a/src/burn/burn.cmd +++ b/src/burn/burn.cmd | |||
| @@ -7,6 +7,8 @@ | |||
| 7 | @if /i "%1"=="release" set _C=Release | 7 | @if /i "%1"=="release" set _C=Release |
| 8 | @if not "%1"=="" shift & goto parse_args | 8 | @if not "%1"=="" shift & goto parse_args |
| 9 | 9 | ||
| 10 | @set _B=%~dp0..\..\build\burn\%_C% | ||
| 11 | |||
| 10 | @echo Building burn %_C% | 12 | @echo Building burn %_C% |
| 11 | 13 | ||
| 12 | :: burn | 14 | :: burn |
| @@ -15,8 +17,8 @@ nuget restore || exit /b | |||
| 15 | 17 | ||
| 16 | msbuild burn_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\burn_build.binlog || exit /b | 18 | msbuild burn_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\burn_build.binlog || exit /b |
| 17 | 19 | ||
| 18 | msbuild test\BurnUnitTest -t:Test -p:Configuration=%_C% -p:Platform=Win32 -nologo -p:CppCliTestResultsFile="%_L%\TestResults\BurnUnitTest32.xunit2.xml" || exit /b | 20 | dotnet test %_B%\x86\BurnUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\BurnUnitTest32.trx" || exit /b |
| 19 | msbuild test\BurnUnitTest -t:Test -p:Configuration=%_C% -p:Platform=x64 -nologo -p:CppCliTestResultsFile="%_L%\TestResults\BurnUnitTest64.xunit2.xml" || exit /b | 21 | dotnet test %_B%\x64\BurnUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\BurnUnitTest64.trx" || exit /b |
| 20 | 22 | ||
| 21 | @popd | 23 | @popd |
| 22 | @endlocal | 24 | @endlocal |
