mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
Backport from the develop branch
This commit is contained in:
parent
3617f07a4a
commit
0dc5cdb67c
@ -1,9 +1,14 @@
|
||||
@echo off
|
||||
rem
|
||||
rem $Id$
|
||||
rem
|
||||
rem A script for running the POCO testsuites.
|
||||
rem
|
||||
rem usage: runtests2 [64]
|
||||
rem usage: runtests2 [64] [-d ] [component [test]]
|
||||
rem
|
||||
rem component : the component under test
|
||||
rem test : the test as part of the component
|
||||
|
||||
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.
|
||||
@ -11,21 +16,38 @@ rem
|
||||
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
set TESTRUNNER=TestSuite.exe
|
||||
|
||||
set TESTRUNNERARGS=-all
|
||||
set TESTCOMPONENTS='C:\Windows\System32\findstr.exe /R "." components'
|
||||
set BINDIR=bin
|
||||
|
||||
if "%1"=="64" (
|
||||
set BINDIR=bin64
|
||||
shift
|
||||
)
|
||||
if "%1" =="-d" (
|
||||
set DEBUG=d
|
||||
shift
|
||||
)
|
||||
|
||||
set PATH=%CD%\%BINDIR%;%PATH
|
||||
|
||||
if not "%1" == "" (
|
||||
set TESTCOMPONENTS="%1"
|
||||
if not "%2" == "" (
|
||||
set TESTRUNNERARGS=%2
|
||||
)
|
||||
)
|
||||
|
||||
set TESTRUNNER=TestSuite%DEBUG%.exe
|
||||
|
||||
set runs=0
|
||||
set failures=0
|
||||
set failedTests=
|
||||
set status=0
|
||||
set excluded=0
|
||||
|
||||
for /f %%C in ('C:\Windows\System32\findstr.exe /R "." components') do (
|
||||
|
||||
for /f %%C in ( %TESTCOMPONENTS% ) do (
|
||||
set excluded=0
|
||||
for %%X in (%EXCLUDE_TESTS%) do (
|
||||
if "%%X"=="%%C" (
|
||||
|
Loading…
Reference in New Issue
Block a user