| 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 | @echo Msi integration tests %_C% |
| 13 | |
| 14 | msbuild -t:Build -Restore -p:Configuration=%_C% -tl -nologo -warnaserror -bl:%_L%\test_msi_build.binlog || exit /b |
| 15 | msbuild -t:Build -Restore TestData\TestData.proj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\test_msi_data_build.binlog || exit /b |
| 16 | |
| 17 | @if not "%RuntimeTestsEnabled%"=="true" goto :LExit |
| 18 | |
| 19 | dotnet test -c %_C% WixToolsetTest.MsiE2E --nologo --no-build -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.MsiE2E.trx" || exit /b |
| 20 | |
| 21 | :LExit |
| 22 | @popd |
| 23 | @endlocal |