8405285c69
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
41 lines
1.0 KiB
Batchfile
41 lines
1.0 KiB
Batchfile
@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$
|
|
|
|
rem set the path for running the tests if they use DLL build of wx
|
|
for /d %%x in ("..\lib\*_dll") do @set PATH=%%x;%PATH%
|
|
|
|
set failure=0
|
|
|
|
for /d %%x in (*) do @(
|
|
if exist %%x\test.exe (
|
|
%%x\test.exe
|
|
if %errorlevel% GEQ 1 set failure=1
|
|
|
|
REM separe the output of the test we just executed from the next one
|
|
echo.
|
|
echo.
|
|
echo ========================================================================
|
|
echo ========================================================================
|
|
echo.
|
|
echo.
|
|
)
|
|
|
|
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
|
|
if %failure% EQU 1 exit 1
|
|
|
|
REM remove the failure env var:
|
|
set failure=
|
|
|
|
REM exit with code 0 (all tests passed successfully)
|
|
exit 0
|