]> git.saurik.com Git - wxWidgets.git/blob - tests/runtests.bat
add timing of the page loading (see #9972)
[wxWidgets.git] / tests / runtests.bat
1 @echo off
2
3 REM Runs wxWidgets CppUnit tests
4 REM This script is used to return the correct return value to the caller
5 REM which is required by Buildbot to recognize failures.
6 REM $Id$
7
8 rem set the path for running the tests if they use DLL build of wx
9 for /d %%x in ("..\lib\*_dll") do @set PATH=%%x;%PATH%
10
11 set failure=0
12
13 for /d %%x in (*) do @(
14 if exist %%x\test.exe (
15 %%x\test.exe
16 if %errorlevel% GEQ 1 set failure=1
17
18 REM separe the output of the test we just executed from the next one
19 echo.
20 echo.
21 echo ========================================================================
22 echo ========================================================================
23 echo.
24 echo.
25 )
26
27 if exist %%x\test_gui.exe (
28 %%x\test_gui.exe
29 if %errorlevel% GEQ 1 set failure=1
30 )
31 )
32
33 REM exit with code 1 if any of the test failed
34 if %failure% EQU 1 exit 1
35
36 REM remove the failure env var:
37 set failure=
38
39 REM exit with code 0 (all tests passed successfully)
40 exit 0