diff options
| author | Rob Mensching <rob@firegiant.com> | 2022-10-03 15:55:20 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2022-10-04 14:23:47 -0700 |
| commit | 21ea5adcc788bbecd81e475277aba927ec66c860 (patch) | |
| tree | a02076c55c29fd3c78ba0136745f0621b357825a /src/libs | |
| parent | 7d231e729b4e53979952dcdd12654aa77a411521 (diff) | |
| download | wix-21ea5adcc788bbecd81e475277aba927ec66c860.tar.gz wix-21ea5adcc788bbecd81e475277aba927ec66c860.tar.bz2 wix-21ea5adcc788bbecd81e475277aba927ec66c860.zip | |
Run tests in bulk to improve performance
The fewer executions of "dotnet test" the better so batch up calls
by referencing multiple assembly DLLs.
Diffstat (limited to 'src/libs')
| -rw-r--r-- | src/libs/libs.cmd | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libs/libs.cmd b/src/libs/libs.cmd index e9402701..51331459 100644 --- a/src/libs/libs.cmd +++ b/src/libs/libs.cmd | |||
| @@ -21,9 +21,11 @@ | |||
| 21 | 21 | ||
| 22 | msbuild -Restore libs_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\libs_build.binlog || exit /b | 22 | msbuild -Restore libs_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\libs_build.binlog || exit /b |
| 23 | 23 | ||
| 24 | dotnet test %_B%\net6.0\WixToolsetTest.Versioning.dll --nologo -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.Versioning.trx" || exit /b | 24 | dotnet test ^ |
| 25 | dotnet test %_B%\x86\DUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\DutilUnitTest32.trx" || exit /b | 25 | %_B%\net6.0\WixToolsetTest.Versioning.dll ^ |
| 26 | dotnet test %_B%\x64\DUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\DutilUnitTest64.trx" || exit /b | 26 | %_B%\x86\DUtilUnitTest.dll ^ |
| 27 | %_B%\x64\DUtilUnitTest.dll ^ | ||
| 28 | --nologo -l "trx;LogFileName=%_L%\TestResults\libs.trx" || exit /b | ||
| 27 | 29 | ||
| 28 | @goto :end | 30 | @goto :end |
| 29 | 31 | ||
| @@ -32,8 +34,7 @@ dotnet test %_B%\x64\DUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestRes | |||
| 32 | @del "..\..\build\artifacts\WixToolset.DUtil.*.nupkg" 2> nul | 34 | @del "..\..\build\artifacts\WixToolset.DUtil.*.nupkg" 2> nul |
| 33 | @del "..\..\build\artifacts\WixToolset.Versioning.*.nupkg" 2> nul | 35 | @del "..\..\build\artifacts\WixToolset.Versioning.*.nupkg" 2> nul |
| 34 | @del "..\..\build\artifacts\WixToolset.WcaUtil.*.nupkg" 2> nul | 36 | @del "..\..\build\artifacts\WixToolset.WcaUtil.*.nupkg" 2> nul |
| 35 | @del "%_L%\TestResults\WixToolsetTest.Versioning.trx" 2> nul | 37 | @del "%_L%\TestResults\libs.trx" 2> nul |
| 36 | @del "%_L%\TestResults\DutilUnitTest*.trx" 2> nul | ||
| 37 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dutil" 2> nul | 38 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dutil" 2> nul |
| 38 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.versioning" 2> nul | 39 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.versioning" 2> nul |
| 39 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.wcautil" 2> nul | 40 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.wcautil" 2> nul |
