aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/test_burn.cmd
blob: 7caf1cc8b1bfc8a0589b2d89260fc4b9815a2c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@setlocal
@pushd %~dp0

@set _RESULT=0
@set _C=Debug
:parse_args
@if /i "%1"=="release" set _C=Release
@if /i "%1"=="test" set RuntimeTestsEnabled=true
@if not "%1"=="" shift & goto parse_args

@echo Burn integration tests %_C%

msbuild -t:Build -Restore -p:Configuration=%_C% -warnaserror -bl:..\..\..\build\logs\test_burn_build.binlog || exit /b
msbuild -t:Build -Restore -p:Configuration=%_C% TestData\TestData.proj -bl:..\..\..\build\logs\test_burn_data_build.binlog || exit /b

@if not "%RuntimeTestsEnabled%"=="true" goto :LExit

reg add HKLM\Software\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f
reg add HKLM\Software\WOW6432Node\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f

dotnet test -c %_C% --no-build WixToolsetTest.BurnE2E
set _RESULT=%ERRORLEVEL%

7z a "..\..\..\build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log"

:LExit
@popd
exit /b %_RESULT%
@endlocal