]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/runtests.bat
adapting to autorelease of factory methods
[wxWidgets.git] / tests / runtests.bat
... / ...
CommitLineData
1@echo off
2
3REM Runs wxWidgets CppUnit tests
4REM This script is used to return the correct return value to the caller
5REM which is required by Buildbot to recognize failures.
6REM $Id$
7
8set failure=0
9
10for /d %%x in (*) do @(
11 if exist %%x\test.exe (
12 %%x\test.exe
13 if %errorlevel% GEQ 1 set failure=1
14 )
15 if exist %%x\test_gui.exe (
16 %%x\test_gui.exe
17 if %errorlevel% GEQ 1 set failure=1
18 )
19)
20
21REM exit with code 1 if any of the test failed
22if %failure% EQU 1 exit /b 1
23
24REM remove the failure env var:
25set failure=
26
27REM exit with code 0 (all tests passed successfully)
28exit /b 0