1
0
Fork 0

hack report_memleaks=1 for devel testing

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1401 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2013-09-26 07:35:15 +00:00
parent 44782eaf7d
commit 498f03e25b
1 changed files with 15 additions and 5 deletions

View File

@ -33,10 +33,20 @@ echo "TEST_PHP_CGI_EXECUTABLE: $TEST_PHP_CGI_EXECUTABLE"
echo "TEST_PHP_EXECUTABLE: $TEST_PHP_EXECUTABLE"
echo "TEST_PHP_SRCDIR: $TEST_PHP_SRCDIR"
patch_run_tests_ext() {
if test -z "$TEST_EXT" ; then
sed "s#'ext',##g"
else
cat
fi
}
patch_run_tests_report_leaks() {
if test -z "$TEST_REPORT_MEMLEAKS" ; then
sed "s#'report_memleaks=1',#'report_memleaks=0',#g"
else
cat
fi
}
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
patch_run_tests_ext < "$run_tests_src" | patch_run_tests_report_leaks > run-tests.php
exec "$php_cli" -d "open_basedir=" -d "safe_mode=0" -d "output_buffering=0" -d "memory_limit=-1" `getAbsolutePath ./run-tests.php` "$@"