Integrate PHPUNIT

Modify tester, chdir to tests directory and test binary

refs #4068
This commit is contained in:
Marius Hein 2013-06-04 11:16:09 +02:00
parent 4b225eccee
commit ed24a90c1a
1 changed files with 9 additions and 1 deletions

View File

@ -4,10 +4,18 @@ set -o nounset
SCRIPTNAME=$(readlink -f $0)
DIR=$(dirname $SCRIPTNAME)
PHPUNIT=$(which phpunit)
if [[ ! -x $PHPUNIT ]]; then
echo "PHPUnit not found!"
exit 1
fi
# Make sure that the destination directory for logs and reports exists
mkdir -p $DIR/../../build/log
phpunit "$@" .
cd $DIR
$PHPUNIT "$@" .
exit 0