diff options
author | Nathanael Jones <nathanael.jones@gmail.com> | 2014-10-17 12:54:48 -0400 |
---|---|---|
committer | Nathanael Jones <nathanael.jones@gmail.com> | 2015-01-07 01:52:00 -0500 |
commit | 7c2b0713e78d0d6caa09d6aa58318441801794ea (patch) | |
tree | 9c8c42c0c879e9116c965557c8b84a362fbf1877 /windows/run_tests.bat | |
parent | 07c3fde37ee7fb798cf13c5ea1be4d8ae9510066 (diff) | |
download | libgd-7c2b0713e78d0d6caa09d6aa58318441801794ea.tar.gz |
Replace windows MSVC makefile; update msys iconv path.
Diffstat (limited to 'windows/run_tests.bat')
-rw-r--r-- | windows/run_tests.bat | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/windows/run_tests.bat b/windows/run_tests.bat new file mode 100644 index 0000000..5dadb05 --- /dev/null +++ b/windows/run_tests.bat @@ -0,0 +1,38 @@ +@echo off +setlocal EnableDelayedExpansion +if [%PLATFORM%]==[] set PLATFORM=x86 +if [%PREFERREDTOOLARCHITECTURE%]==[x64] set PLATFORM=x64 +set PLATFORM=%PLATFORM:X=x% + +if exist build_msvc12_%PLATFORM%\tests (cd build_msvc12_%PLATFORM%\tests) else ( + if exist ..\build_%PLATFORM%\tests (cd ..\build_msvc12_%PLATFORM%\tests) else ( + echo unable to find test dir + exit /b 1 + ) +) + + + +for /f %%T in (testlist.txt) do ( + set test=%%T + set output=test: !test!.................................................................... + + set target=%%~nT.exe + if not exist !target! SET result=NotFound + call !target! && (SET result=Passed) || (SET result=Failed) + + rem > last_test.out 2> last_test.err + rem set /p testerr=<last_test.err + rem set /p testout=<last_test.out + + echo !output:~0,70!!result! + + rem if defined testerr echo error: !testerr! + rem if defined testout echo msg: !testout! + + if defined APPVEYOR ( + appveyor AddTest "!test! %PLATFORM%" -Outcome !result! -Framework Custom -Filename %%~nT.exe -Duration 0 + ) +) + +exit /b 0
\ No newline at end of file |