Skip to content

Commit 2505337

Browse files
committed
run all three test files on windows
1 parent 4fc7b84 commit 2505337

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

scripts/test.bat

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,22 @@ for %%t in (%TEST_FILES%) do (
3535
)
3636
set TEST_FOUND=1
3737
set /a FOUND_TESTS+=1
38-
goto :next_test
39-
)
40-
41-
REM Try bin directory
42-
if exist "%BIN_DIR_ALT%\%%t.exe" (
43-
echo Running %%t from %BIN_DIR_ALT%...
44-
"%BIN_DIR_ALT%\%%t.exe" -d yes
45-
if !errorlevel! equ 0 (
46-
echo [OK] %%t passed
38+
) else (
39+
REM Try bin directory
40+
if exist "%BIN_DIR_ALT%\%%t.exe" (
41+
echo Running %%t from %BIN_DIR_ALT%...
42+
"%BIN_DIR_ALT%\%%t.exe" -d yes
43+
if !errorlevel! equ 0 (
44+
echo [OK] %%t passed
45+
) else (
46+
echo [FAIL] %%t failed
47+
set /a FAILED_TESTS+=1
48+
)
49+
set TEST_FOUND=1
50+
set /a FOUND_TESTS+=1
4751
) else (
48-
echo [FAIL] %%t failed
49-
set /a FAILED_TESTS+=1
52+
echo Warning: %%t.exe not found
5053
)
51-
set TEST_FOUND=1
52-
set /a FOUND_TESTS+=1
53-
goto :next_test
54-
)
55-
56-
:next_test
57-
if !TEST_FOUND! equ 0 (
58-
echo Warning: %%t.exe not found
5954
)
6055
)
6156

0 commit comments

Comments
 (0)