1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-26 00:34:17 -07:00

Improve reporting of test failures on windows, so that the continuous integration is helpful.

Copied from Perforce
 Change: 183043
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2013-07-15 16:39:22 +01:00
parent 335edef764
commit ca777655bc

View file

@ -8,17 +8,37 @@ shift
set VARIETY=%1
shift
set LOG=%TMP%\mps.%VARIETY%.log
echo Logging test output to %LOG%
set TEST_COUNT=0
set PASS_COUNT=0
set SEPARATOR=----------------------------------------
set LOGDIR=%TMP%\mps-%VARIETY%-log
echo Logging test output to %LOGDIR%
rmdir /q /s %LOGDIR%
mkdir %LOGDIR%
:loop
if "%1"=="" goto continue
set /a TEST_COUNT=%TEST_COUNT%+1
echo Running %1
%PFM%\%VARIETY%\%1 >> %LOG%
%PFM%\%VARIETY%\%1 > %LOGDIR%\%1
if "%errorlevel%"=="0" goto success
echo %SEPARATOR%%SEPARATOR%
type %LOGDIR%\%1
echo %SEPARATOR%%SEPARATOR%
set /a FAIL_COUNT=%FAIL_COUNT%+1
:success
shift
goto loop
:continue
if "%FAIL_COUNT%"=="0" goto allpass
echo Tests: %TEST_COUNT% Failures: %FAIL_COUNT%
exit 1
:allpass
echo Tests: %TEST_COUNT% All tests pass.
@rem C. COPYRIGHT AND LICENSE
@rem
@rem Copyright (C) 2013 Ravenbrook Limited <http://www.ravenbrook.com/>.