2009-03-21 08:28:52 -04:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
REM Runs wxWidgets CppUnit tests
|
|
|
|
REM This script is used to return the correct return value to the caller
|
|
|
|
REM which is required by Buildbot to recognize failures.
|
|
|
|
REM $Id$
|
|
|
|
|
2009-03-22 17:07:51 -04:00
|
|
|
rem set the path for running the tests if they use DLL build of wx
|
2009-03-22 18:08:19 -04:00
|
|
|
for /d %%x in ("..\lib\*_dll") do @set PATH=%%x;%PATH%
|
2009-03-22 17:07:51 -04:00
|
|
|
|
2009-03-21 08:28:52 -04:00
|
|
|
set failure=0
|
|
|
|
|
|
|
|
for /d %%x in (*) do @(
|
|
|
|
if exist %%x\test.exe (
|
|
|
|
%%x\test.exe
|
|
|
|
if %errorlevel% GEQ 1 set failure=1
|
|
|
|
)
|
|
|
|
if exist %%x\test_gui.exe (
|
|
|
|
%%x\test_gui.exe
|
|
|
|
if %errorlevel% GEQ 1 set failure=1
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
REM exit with code 1 if any of the test failed
|
2009-03-21 09:49:20 -04:00
|
|
|
if %failure% EQU 1 exit /b 1
|
2009-03-21 08:28:52 -04:00
|
|
|
|
|
|
|
REM remove the failure env var:
|
|
|
|
set failure=
|
|
|
|
|
|
|
|
REM exit with code 0 (all tests passed successfully)
|
2009-03-21 09:49:20 -04:00
|
|
|
exit /b 0
|