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/tools | |
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/tools')
-rw-r--r-- | src/tools/tools.cmd | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tools/tools.cmd b/src/tools/tools.cmd index 90c10af0..2ec67f46 100644 --- a/src/tools/tools.cmd +++ b/src/tools/tools.cmd | |||
@@ -10,6 +10,8 @@ | |||
10 | @if /i "%1"=="clean" set _CLEAN=1 | 10 | @if /i "%1"=="clean" set _CLEAN=1 |
11 | @if not "%1"=="" shift & goto parse_args | 11 | @if not "%1"=="" shift & goto parse_args |
12 | 12 | ||
13 | @set _B=%~dp0..\..\build\tools\%_C% | ||
14 | |||
13 | :: Clean | 15 | :: Clean |
14 | 16 | ||
15 | @if "%_INC%"=="" call :clean | 17 | @if "%_INC%"=="" call :clean |
@@ -24,8 +26,10 @@ msbuild -Restore tools.sln -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L | |||
24 | msbuild publish_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\tools_publish.binlog || exit /b | 26 | msbuild publish_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\tools_publish.binlog || exit /b |
25 | 27 | ||
26 | :: Test | 28 | :: Test |
27 | dotnet test -c %_C% --no-build --nologo test\WixToolsetTest.Heat -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.Heat.trx" || exit /b | 29 | dotnet test ^ |
28 | dotnet test -c %_C% --no-build --nologo test\WixToolsetTest.HeatTasks -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.HeatTasks.trx" || exit /b | 30 | %_B%\test\WixToolsetTest.Heat\net472\WixToolsetTest.Heat.dll ^ |
31 | %_B%\test\WixToolsetTest.HeatTasks\net472\WixToolsetTest.HeatTasks.dll ^ | ||
32 | --nologo -l "trx;LogFileName=%_L%\TestResults\tools.trx" || exit /b | ||
29 | 33 | ||
30 | :: Pack | 34 | :: Pack |
31 | msbuild -t:Pack WixToolset.Heat -p:Configuration=%_C% -p:NoBuild=true -nologo -m -warnaserror -bl:%_L%\tools_pack.binlog || exit /b | 35 | msbuild -t:Pack WixToolset.Heat -p:Configuration=%_C% -p:NoBuild=true -nologo -m -warnaserror -bl:%_L%\tools_pack.binlog || exit /b |