From cb109eb479223f62dd2cc2a917d50371e75848bd Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Mon, 2 Mar 2020 14:35:49 +0100 Subject: [PATCH] Add proper progression for special script --- tests/Make-check-cl.bat | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/Make-check-cl.bat b/tests/Make-check-cl.bat index 764831b4..c7062e20 100644 --- a/tests/Make-check-cl.bat +++ b/tests/Make-check-cl.bat @@ -23,19 +23,24 @@ for %%f in (test-*.c) do ( REM Compile the test suite REM /experimental:preprocessor is mandatory to have a compliant preprocessor REM /Zc:__cplusplus is needed to report the real value of __cplusplus, so that M*LIB uses the C++ atomic, and not its emulation. + echo Compiling %%f cl.exe /I.. /O2 /std:c++14 /Zc:__cplusplus /experimental:preprocessor test.cpp > %%f.log 2>&1 if ERRORLEVEL 1 ( + echo *** BUILD ERROR for %%f *** >> %%f.log type %%f.log - echo BUILD ERROR for %%f if /i "%%f" NEQ "%expectedFailure%" EXIT /B 1 ) REM Execute it + echo Running %%f test.exe >> %%f.log 2>&1 if ERRORLEVEL 1 ( + echo *** RUNTIME ERROR for %%f *** >> %%f.log type %%f.log - echo RUN ERROR for %%f if /i "%%f" NEQ "%expectedFailure%" EXIT /B 1 + ) ELSE ( + echo Test OK for %%f >> %%f.log ) type %%f.log ) +echo "All tests passed (except %expectedFailure%)" exit /B 0