diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-05-16 16:00:41 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-05-17 01:01:59 -0700 |
| commit | 91a3a42439d87a5b626e61244edcb8c8e231cc5f (patch) | |
| tree | 94a5f52176cbdd7755c2bff4721a2d1e5f683799 /src/test | |
| parent | 1446d4e582465af5c09db3fba16afc59529a3863 (diff) | |
| download | wix-91a3a42439d87a5b626e61244edcb8c8e231cc5f.tar.gz wix-91a3a42439d87a5b626e61244edcb8c8e231cc5f.tar.bz2 wix-91a3a42439d87a5b626e61244edcb8c8e231cc5f.zip | |
Fix batch file command-line parsing
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/burn/test_burn.cmd | 2 | ||||
| -rw-r--r-- | src/test/run_test.cmd | 16 | ||||
| -rw-r--r-- | src/test/test.cmd | 2 |
3 files changed, 3 insertions, 17 deletions
diff --git a/src/test/burn/test_burn.cmd b/src/test/burn/test_burn.cmd index 81df9f26..8359d12a 100644 --- a/src/test/burn/test_burn.cmd +++ b/src/test/burn/test_burn.cmd | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | @set _C=Debug | 4 | @set _C=Debug |
| 5 | :parse_args | 5 | :parse_args |
| 6 | @if /i "%1"=="release" set _C=Release& shift | 6 | @if /i "%1"=="release" set _C=Release |
| 7 | @if not "%1"=="" shift & goto parse_args | 7 | @if not "%1"=="" shift & goto parse_args |
| 8 | 8 | ||
| 9 | @echo Burn integration tests %_C% | 9 | @echo Burn integration tests %_C% |
diff --git a/src/test/run_test.cmd b/src/test/run_test.cmd index ef6de9bd..c24bb8e0 100644 --- a/src/test/run_test.cmd +++ b/src/test/run_test.cmd | |||
| @@ -1,15 +1 @@ | |||
| 1 | @setlocal | @call %~dp0test.cmd test %* | |
| 2 | @pushd %~dp0 | ||
| 3 | |||
| 4 | @set _C=Debug | ||
| 5 | :parse_args | ||
| 6 | @if /i "%1"=="release" set _C=Release& shift | ||
| 7 | @if not "%1"=="" shift & goto parse_args | ||
| 8 | |||
| 9 | @echo Run integration tests %_C% | ||
| 10 | |||
| 11 | @SET RuntimeTestsEnabled=true | ||
| 12 | @call burn\test_burn.cmd | ||
| 13 | |||
| 14 | @popd | ||
| 15 | @endlocal | ||
diff --git a/src/test/test.cmd b/src/test/test.cmd index b327ba75..169b229c 100644 --- a/src/test/test.cmd +++ b/src/test/test.cmd | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | @set _C=Debug | 4 | @set _C=Debug |
| 5 | :parse_args | 5 | :parse_args |
| 6 | @if /i "%1"=="release" set _C=Release& shift | 6 | @if /i "%1"=="release" set _C=Release |
| 7 | @if not "%1"=="" shift & goto parse_args | 7 | @if not "%1"=="" shift & goto parse_args |
| 8 | 8 | ||
| 9 | @echo Build integration tests %_C% | 9 | @echo Build integration tests %_C% |
