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/burn | |
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/burn')
-rw-r--r-- | src/burn/burn.cmd | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/burn/burn.cmd b/src/burn/burn.cmd index 127f9253..f1753106 100644 --- a/src/burn/burn.cmd +++ b/src/burn/burn.cmd | |||
@@ -3,12 +3,20 @@ | |||
3 | 3 | ||
4 | @set _C=Debug | 4 | @set _C=Debug |
5 | @set _L=%~dp0..\..\build\logs | 5 | @set _L=%~dp0..\..\build\logs |
6 | |||
6 | :parse_args | 7 | :parse_args |
7 | @if /i "%1"=="release" set _C=Release | 8 | @if /i "%1"=="release" set _C=Release |
9 | @if /i "%1"=="inc" set _INC=1 | ||
10 | @if /i "%1"=="clean" set _CLEAN=1 | ||
8 | @if not "%1"=="" shift & goto parse_args | 11 | @if not "%1"=="" shift & goto parse_args |
9 | 12 | ||
10 | @set _B=%~dp0..\..\build\burn\%_C% | 13 | @set _B=%~dp0..\..\build\burn\%_C% |
11 | 14 | ||
15 | :: Clean | ||
16 | |||
17 | @if "%_INC%"=="" call :clean | ||
18 | @if NOT "%_CLEAN%"=="" goto :end | ||
19 | |||
12 | @echo Building burn %_C% | 20 | @echo Building burn %_C% |
13 | 21 | ||
14 | :: burn | 22 | :: burn |
@@ -17,8 +25,20 @@ nuget restore || exit /b | |||
17 | 25 | ||
18 | msbuild burn_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\burn_build.binlog || exit /b | 26 | msbuild burn_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\burn_build.binlog || exit /b |
19 | 27 | ||
20 | dotnet test %_B%\x86\BurnUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\BurnUnitTest32.trx" || exit /b | 28 | dotnet test ^ |
21 | dotnet test %_B%\x64\BurnUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\BurnUnitTest64.trx" || exit /b | 29 | %_B%\x86\BurnUnitTest.dll ^ |
30 | %_B%\x64\BurnUnitTest.dll ^ | ||
31 | --nologo -l "trx;LogFileName=%_L%\TestResults\burn.trx" || exit /b | ||
32 | |||
33 | @goto :end | ||
34 | |||
35 | :clean | ||
36 | @rd /s/q "..\..\build\burn" 2> nul | ||
37 | @del "..\..\build\artifacts\WixToolset.Burn.*.nupkg" 2> nul | ||
38 | @del "%_L%\TestResults\burn.trx" 2> nul | ||
39 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.burn" 2> nul | ||
40 | @exit /b | ||
22 | 41 | ||
42 | :end | ||
23 | @popd | 43 | @popd |
24 | @endlocal | 44 | @endlocal |