mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-02 07:31:37 +02:00
Add POCO_BUILD for running tests from a build directory.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
parent
9b63ddfc93
commit
2f2cb3bfc0
@ -22,11 +22,15 @@
|
|||||||
# 5/ run the Foundation tests: build/script/runtests.sh Foundation
|
# 5/ run the Foundation tests: build/script/runtests.sh Foundation
|
||||||
#
|
#
|
||||||
|
|
||||||
|
TESTRUNNER=./testrunner
|
||||||
|
|
||||||
if [ "$POCO_BASE" = "" ] ; then
|
if [ "$POCO_BASE" = "" ] ; then
|
||||||
POCO_BASE=`pwd`
|
POCO_BASE=`pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TESTRUNNER=./testrunner
|
if [ "$POCO_BUILD" = "" ] ; then
|
||||||
|
POCO_BUILD=$POCO_BASE
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$1" = "" ] ; then
|
if [ "$1" = "" ] ; then
|
||||||
components=`cat $POCO_BASE/components`
|
components=`cat $POCO_BASE/components`
|
||||||
@ -40,21 +44,22 @@ else
|
|||||||
TESTRUNNERARGS=$2
|
TESTRUNNERARGS=$2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$OSARCH" = "" ] ; then
|
||||||
|
OSARCH=`uname -m | tr ' /' _-`
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$OSNAME" = "" ] ; then
|
if [ "$OSNAME" = "" ] ; then
|
||||||
OSNAME=`uname`
|
OSNAME=`uname`
|
||||||
case $OSNAME in
|
case $OSNAME in
|
||||||
CYGWIN*)
|
CYGWIN*)
|
||||||
OSNAME=CYGWIN
|
OSNAME=Cygwin
|
||||||
TESTRUNNER=$TESTRUNNER.exe
|
TESTRUNNER=$TESTRUNNER.exe
|
||||||
|
PATH=$POCO_BUILD/lib/$OSNAME/$OSARCH:$PATH
|
||||||
;;
|
;;
|
||||||
MINGW*)
|
MINGW*)
|
||||||
OSNAME=MinGW ;;
|
OSNAME=MinGW ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if [ "$OSARCH" = "" ] ; then
|
|
||||||
OSARCH=`uname -m | tr ' /' _-`
|
|
||||||
fi
|
|
||||||
BINDIR="bin/$OSNAME/$OSARCH/"
|
BINDIR="bin/$OSNAME/$OSARCH/"
|
||||||
|
|
||||||
runs=0
|
runs=0
|
||||||
@ -72,8 +77,8 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ $excluded -eq 0 ] ; then
|
if [ $excluded -eq 0 ] ; then
|
||||||
if [ -d "$POCO_BASE/$comp/testsuite/$BINDIR" ] ; then
|
if [ -d "$POCO_BUILD/$comp/testsuite/$BINDIR" ] ; then
|
||||||
if [ -x "$POCO_BASE/$comp/testsuite/$BINDIR/$TESTRUNNER" ] ; then
|
if [ -x "$POCO_BUILD/$comp/testsuite/$BINDIR/$TESTRUNNER" ] ; then
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo "****************************************"
|
echo "****************************************"
|
||||||
@ -82,7 +87,7 @@ do
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
runs=`expr $runs + 1`
|
runs=`expr $runs + 1`
|
||||||
sh -c "cd $POCO_BASE/$comp/testsuite/$BINDIR && $TESTRUNNER $TESTRUNNERARGS"
|
sh -c "cd $POCO_BUILD/$comp/testsuite/$BINDIR && $TESTRUNNER $TESTRUNNERARGS"
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
failures=`expr $failures + 1`
|
failures=`expr $failures + 1`
|
||||||
failedTests="$failedTests $comp"
|
failedTests="$failedTests $comp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user