Files
Bryan Davis 2da08fff7a Fix TEST_PHP_EXECUTABLE guessing.
The old code always assumed /usr/bin/php. Changed to use `which php`.
2013-04-23 16:53:22 -06:00

23 lines
420 B
Bash
Executable File

#!/usr/bin/env bash
# Run phpt tests
#
set -e
set -u
BASENAME=${0}
TOOLS_DIR=$(dirname ${BASENAME})
WORK_DIR="${TOOLS_DIR}/.."
cd "${WORK_DIR}"
TEST=${1:-tests/}
USE_PHP=${TEST_PHP_EXECUTABLE:-$(which php)}
TEST_PHP_EXECUTABLE=${USE_PHP} \
REPORT_EXIT_STATUS=1 \
${USE_PHP} \
-n -d open_basedir= -d output_buffering=0 -d memory_limit=-1 \
run-tests.php -n -d extension_dir=modules -d extension=yaml.so ${TEST}