Windows WML tests: Keep account of executed tests
The final report now includes the number of - tests that were executed - tests thereof that failed
This commit is contained in:
parent
be3a1fe1b1
commit
cd4dcbff43
1 changed files with 6 additions and 4 deletions
|
@ -8,10 +8,9 @@ setlocal enabledelayedexpansion
|
|||
set LoadFile=%~p0..\..\wml_test_schedule
|
||||
set binary=wesnoth.exe
|
||||
set opt=--log-strict=warning
|
||||
:: OutDir is necessary for VC debug configuration, defaults to wesnoth\
|
||||
if "%1"=="" ( set "OutDir=..\..\") else ( set "OutDir=%~p1")
|
||||
:: executable path can be set for VC debug configuration, defaults to wesnoth\
|
||||
if "%1"=="" ( cd ..\..\ ) else ( cd %~p1 )
|
||||
|
||||
cd %OutDir%
|
||||
echo running WML tests:
|
||||
|
||||
:: ignore lines beginning with #
|
||||
|
@ -28,12 +27,15 @@ for /f "eol=# tokens=1,2 delims= " %%G in (%LoadFile%) do (
|
|||
echo(
|
||||
echo WML_tests.cmd: Error WML1: Test '%%H' returned !ERRORLEVEL!, expected %%G
|
||||
)
|
||||
set /a "fail_num+=1"
|
||||
)
|
||||
:: minimalistic progress bar
|
||||
<nul (set/p progress=.)
|
||||
set /a "test_num+=1"
|
||||
)
|
||||
echo(
|
||||
echo WML tests completed
|
||||
if not DEFINED fail_num ( set "fail_num=none" )
|
||||
echo %test_num% WML tests completed, %fail_num% of them failed
|
||||
|
||||
:: restore the state before execution
|
||||
cd %~p0
|
||||
|
|
Loading…
Add table
Reference in a new issue