forked from pocoproject/poco
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruntests2.cmd
More file actions
73 lines (65 loc) · 1.38 KB
/
runtests2.cmd
File metadata and controls
73 lines (65 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@echo off
rem
rem $Id$
rem
rem A script for running the POCO testsuites.
rem
rem usage: runtests2 [64]
rem
rem If the environment variable EXCLUDE_TESTS is set, containing
rem a space-separated list of project names (as found in the
rem components file), these tests will be skipped.
rem
setlocal EnableDelayedExpansion
set TESTRUNNER=TestSuite.exe
set TESTRUNNERARGS=-all
set BINDIR=bin
if "%1"=="64" (
set BINDIR=bin64
)
set runs=0
set failures=0
set failedTests=
set status=0
set excluded=0
for /f %%C in ('findstr /R "." components') do (
set excluded=0
for %%X in (%EXCLUDE_TESTS%) do (
if "%%X"=="%%C" (
set excluded=1
)
)
if !excluded!==0 (
if exist %%C (
if exist %%C\testsuite (
if exist %%C\testsuite\%BINDIR%\%TESTRUNNER% (
echo.
echo.
echo ****************************************
echo *** %%C
echo ****************************************
echo.
set /a runs=!runs! + 1
set dir=%CD%
cd %%C\testsuite
%BINDIR%\%TESTRUNNER% %TESTRUNNERARGS%
if !ERRORLEVEL! neq 0 (
set /a failures=!failures! + 1
set failedTests=!failedTests! %%C
set status=1
)
cd !dir!
)
)
)
)
)
echo.
echo.
echo !runs! runs, !failures! failed.
echo.
for %%F in (!failedTests!) do (
echo Failed: %%F
)
echo.
exit /b !status!