Browse Source

disable ext subdir testing unless env TEST_EXT is set

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1390 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
tags/3.1.0-rc1
Xuefer 7 years ago
parent
commit
563cbeedd2
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      run-xcachetest

+ 9
- 3
run-xcachetest View File

@@ -21,7 +21,8 @@ fi

TEST_PHP_EXECUTABLE="$php_cli"
TEST_PHP_CGI_EXECUTABLE="$php_cgi"
test -z "$TEST_PHP_SRCDIR" && TEST_PHP_SRCDIR=`getAbsolutePath ./php-src`
real_php_src=`getAbsolutePath ./php-src`;
test -z "$TEST_PHP_SRCDIR" && TEST_PHP_SRCDIR=$real_php_src

export TEST_PHP_EXECUTABLE
export TEST_PHP_CGI_EXECUTABLE
@@ -32,5 +33,10 @@ echo "TEST_PHP_CGI_EXECUTABLE: $TEST_PHP_CGI_EXECUTABLE"
echo "TEST_PHP_EXECUTABLE: $TEST_PHP_EXECUTABLE"
echo "TEST_PHP_SRCDIR: $TEST_PHP_SRCDIR"

run_tests_php=$TEST_PHP_SRCDIR/run-tests.php
exec "$php_cli" -d "open_basedir=" -d "safe_mode=0" -d "output_buffering=0" -d "memory_limit=-1" $run_tests_php "$@"
run_tests_src=$real_php_src/run-tests.php
if test -z "$TEST_EXT" ; then
sed "s#'ext',##g" < "$run_tests_src" > run-tests.php
else
cp "$run_tests_src" run-tests.php
fi
exec "$php_cli" -d "open_basedir=" -d "safe_mode=0" -d "output_buffering=0" -d "memory_limit=-1" `getAbsolutePath ./run-tests.php` "$@"

Loading…
Cancel
Save