mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Make tests scripts error if a test fails
Additionally fixes tests that were found broken because of this.
This commit is contained in:
@@ -5,19 +5,14 @@ pushd build
|
||||
|
||||
set COMMON=-collection:tests=..\..
|
||||
|
||||
set ERROR_DID_OCCUR=0
|
||||
|
||||
@echo on
|
||||
|
||||
..\..\..\odin test ..\test_issue_829.odin %COMMON% -file
|
||||
..\..\..\odin test ..\test_issue_1592.odin %COMMON% -file
|
||||
..\..\..\odin test ..\test_issue_2087.odin %COMMON% -file
|
||||
..\..\..\odin build ..\test_issue_2113.odin %COMMON% -file -debug
|
||||
..\..\..\odin test ..\test_issue_829.odin %COMMON% -file || exit /b
|
||||
..\..\..\odin test ..\test_issue_1592.odin %COMMON% -file || exit /b
|
||||
..\..\..\odin test ..\test_issue_2087.odin %COMMON% -file || exit /b
|
||||
..\..\..\odin build ..\test_issue_2113.odin %COMMON% -file -debug || exit /b
|
||||
|
||||
@echo off
|
||||
|
||||
if %ERRORLEVEL% NEQ 0 set ERROR_DID_OCCUR=1
|
||||
|
||||
popd
|
||||
rmdir /S /Q build
|
||||
if %ERROR_DID_OCCUR% NEQ 0 EXIT /B 1
|
||||
|
||||
Reference in New Issue
Block a user