mirror of
https://github.com/php/pecl-file_formats-yaml.git
synced 2026-03-23 23:02:08 +01:00
23 lines
420 B
Bash
Executable File
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}
|