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/libs | |
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/libs')
-rw-r--r-- | src/libs/libs.cmd | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libs/libs.cmd b/src/libs/libs.cmd index f44d88e4..e3107fbc 100644 --- a/src/libs/libs.cmd +++ b/src/libs/libs.cmd | |||
@@ -7,12 +7,14 @@ | |||
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\libs\%_C% | ||
11 | |||
10 | @echo Building libs %_C% | 12 | @echo Building libs %_C% |
11 | 13 | ||
12 | msbuild -Restore libs_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\libs_build.binlog || exit /b | 14 | msbuild -Restore libs_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\libs_build.binlog || exit /b |
13 | 15 | ||
14 | msbuild dutil\test\DutilUnitTest -t:Test -p:Configuration=%_C% -p:Platform=Win32 -nologo -p:CppCliTestResultsFile="%_L%\TestResults\DutilUnitTest32.xunit2.xml" || exit /b | 16 | dotnet test %_B%\x86\DUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\DutilUnitTest32.trx" || exit /b |
15 | msbuild dutil\test\DutilUnitTest -t:Test -p:Configuration=%_C% -p:Platform=x64 -nologo -p:CppCliTestResultsFile="%_L%\TestResults\DutilUnitTest64.xunit2.xml" || exit /b | 17 | dotnet test %_B%\x64\DUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\DutilUnitTest64.trx" || exit /b |
16 | 18 | ||
17 | @popd | 19 | @popd |
18 | @endlocal | 20 | @endlocal |