icingaweb2/test/php/runtests.sh
Marius Hein a221568a84 Integrate regression tests
Add regression testing for php: structure and bogus test.

refs #4102
2013-06-04 15:55:44 +02:00

22 lines
317 B
Bash
Executable File

#!/bin/sh
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
cd $DIR
$PHPUNIT "$@"
exit 0