mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-18 04:10:33 +01:00
add command line arguments as [component] [test] for unit testing a
single test. Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
parent
d1a8c11f98
commit
0926c9b752
@ -4,17 +4,31 @@
|
||||
#
|
||||
# A script for running the POCO testsuites.
|
||||
#
|
||||
# usage: runtests
|
||||
# usage: runtests [component] [test]
|
||||
#
|
||||
# If the environment variable EXCLUDE_TESTS is set, containing
|
||||
# a space-separated list of project names (as found in the
|
||||
# components file), these tests will be skipped.
|
||||
#
|
||||
|
||||
TESTRUNNER=./testrunner
|
||||
TESTRUNNERARGS=-all
|
||||
if [ "$POCO_BASE" = "" ] ; then
|
||||
POCO_BASE=`pwd`
|
||||
fi
|
||||
|
||||
TESTRUNNER=./testrunner
|
||||
|
||||
if [ "$1" = "" ] ; then
|
||||
components=`cat $POCO_BASE/components`
|
||||
else
|
||||
components=$1
|
||||
fi
|
||||
|
||||
if [ "$2" = "" ] ; then
|
||||
TESTRUNNERARGS=-all
|
||||
else
|
||||
TESTRUNNERARGS=$2
|
||||
fi
|
||||
|
||||
|
||||
if [ "$OSNAME" = "" ] ; then
|
||||
OSNAME=`uname`
|
||||
|
Loading…
Reference in New Issue
Block a user