| 1 | @setlocal |
| 2 | @pushd %~dp0 |
| 3 | |
| 4 | @set _RESULT=0 |
| 5 | @set _C=Debug |
| 6 | @set _L=%~dp0..\..\..\build\logs |
| 7 | :parse_args |
| 8 | @if /i "%1"=="release" set _C=Release |
| 9 | @if /i "%1"=="test" set RuntimeTestsEnabled=true |
| 10 | @if not "%1"=="" shift & goto parse_args |
| 11 | |
| 12 | @set _B=%~dp0..\..\..\build\IntegrationBurn\%_C% |
| 13 | |
| 14 | @echo Burn integration tests %_C% |
| 15 | |
| 16 | msbuild -Restore -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\test_burn_build.binlog || exit /b |
| 17 | msbuild -Restore TestData\TestData.proj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\test_burn_data_build.binlog || exit /b |
| 18 | |
| 19 | "%_B%\net462\win-x86\testexe.exe" /dm "%_B%\net6.0-windows\testhost.exe" |
| 20 | mt.exe -manifest "WixToolsetTest.BurnE2E\testhost.longpathaware.manifest" -updateresource:"%_B%\net6.0-windows\testhost.exe" |
| 21 | |
| 22 | @if not "%RuntimeTestsEnabled%"=="true" goto :LExit |
| 23 | |
| 24 | dotnet test -c %_C% WixToolsetTest.BurnE2E --nologo --no-build -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.BurnE2E.trx" || exit /b |
| 25 | |
| 26 | :LExit |
| 27 | @popd |
| 28 | @endlocal |