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:
FrancisANDRE 2015-08-21 14:16:45 +02:00
parent d1a8c11f98
commit 0926c9b752

View File

@ -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`