mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-07 07:19:08 +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.
|
# A script for running the POCO testsuites.
|
||||||
#
|
#
|
||||||
# usage: runtests
|
# usage: runtests [component] [test]
|
||||||
#
|
#
|
||||||
# If the environment variable EXCLUDE_TESTS is set, containing
|
# If the environment variable EXCLUDE_TESTS is set, containing
|
||||||
# a space-separated list of project names (as found in the
|
# a space-separated list of project names (as found in the
|
||||||
# components file), these tests will be skipped.
|
# components file), these tests will be skipped.
|
||||||
#
|
#
|
||||||
|
|
||||||
TESTRUNNER=./testrunner
|
if [ "$POCO_BASE" = "" ] ; then
|
||||||
TESTRUNNERARGS=-all
|
POCO_BASE=`pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
TESTRUNNER=./testrunner
|
||||||
|
|
||||||
|
if [ "$1" = "" ] ; then
|
||||||
components=`cat $POCO_BASE/components`
|
components=`cat $POCO_BASE/components`
|
||||||
|
else
|
||||||
|
components=$1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$2" = "" ] ; then
|
||||||
|
TESTRUNNERARGS=-all
|
||||||
|
else
|
||||||
|
TESTRUNNERARGS=$2
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$OSNAME" = "" ] ; then
|
if [ "$OSNAME" = "" ] ; then
|
||||||
OSNAME=`uname`
|
OSNAME=`uname`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user