Integrate PHPUNIT
Modify tester, chdir to tests directory and test binary refs #4068
This commit is contained in:
parent
4b225eccee
commit
ed24a90c1a
|
@ -4,10 +4,18 @@ set -o nounset
|
||||||
|
|
||||||
SCRIPTNAME=$(readlink -f $0)
|
SCRIPTNAME=$(readlink -f $0)
|
||||||
DIR=$(dirname $SCRIPTNAME)
|
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
|
# Make sure that the destination directory for logs and reports exists
|
||||||
mkdir -p $DIR/../../build/log
|
mkdir -p $DIR/../../build/log
|
||||||
|
|
||||||
phpunit "$@" .
|
cd $DIR
|
||||||
|
|
||||||
|
$PHPUNIT "$@" .
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue