Skip to content

Commit 1950d5d

Browse files
committed
fixed test script
1 parent ade7543 commit 1950d5d

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎build/script/runtests.cmd‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ rem $Id$
44
rem
55
rem A script for running the POCO testsuites.
66
rem
7-
rem usage: runtests
7+
rem usage: runtests [64]
88
rem
99
rem If the environment variable EXCLUDE_TESTS is set, containing
1010
rem a space-separated list of project names (as found in the
@@ -15,6 +15,11 @@ setlocal EnableDelayedExpansion
1515

1616
set TESTRUNNER=TestSuite.exe
1717
set TESTRUNNERARGS=/B:TestSuite.out
18+
set BINDIR=bin
19+
20+
if "%1"=="64" )
21+
set BINDIR=bin64
22+
)
1823

1924
set runs=0
2025
set failures=0
@@ -32,7 +37,7 @@ for /f %%C in ('findstr /R "." components') do (
3237
if !excluded!==0 (
3338
if exist %%C (
3439
if exist %%C\testsuite (
35-
if exist %%C\testsuite\bin\%TESTRUNNER% (
40+
if exist %%C\testsuite\%BINDIR%\%TESTRUNNER% (
3641
echo.
3742
echo.
3843
echo ****************************************
@@ -42,14 +47,14 @@ for /f %%C in ('findstr /R "." components') do (
4247

4348
set /a runs=!runs! + 1
4449
set dir=%CD%
45-
cd %%C\testsuite\bin
50+
cd %%C\testsuite\%BINDIR%
4651
%TESTRUNNER% %TESTRUNNERARGS%
4752
if !ERRORLEVEL! neq 0 (
4853
set /a failures=!failures! + 1
4954
set failedTests=!failedTests! %%C
5055
set status=1
5156
)
52-
if exists TestSuite.out (
57+
if exist TestSuite.out (
5358
type TestSuite.out
5459
)
5560
cd !dir!

0 commit comments

Comments
 (0)