script that help to run php test cases
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@215 c26eb9a1-5813-0410-bd6c-c2e55f420ca71.2
parent
643ed26444
commit
72a34e48f6
|
@ -36,3 +36,8 @@ xcache.lo: $(XCACHE_PROC_H) $(srcdir)/xc_shm.h $(srcdir)/stack.h $(srcdir)/xcach
|
|||
|
||||
xcachesvnclean: clean
|
||||
cat $(srcdir)/.cvsignore | grep -v Makefile | xargs rm -rf
|
||||
|
||||
xcachetest:
|
||||
TEST_PHP_SRCDIR=$(top_srcdir) \
|
||||
CC="$(CC)" \
|
||||
$(srcdir)/run-xcachetest -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php $(TESTS) -c xcache-test.ini
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/sh
|
||||
|
||||
# use symlink first
|
||||
if test -x ./php-cli ; then
|
||||
php_cli=./php-cli
|
||||
elif test ! -z "$TEST_PHP_EXECUTABLE" && test -x "$TEST_PHP_EXECUTABLE"; then
|
||||
php_cli="$TEST_PHP_EXECUTABLE"
|
||||
else
|
||||
php_cli="which php"
|
||||
fi
|
||||
|
||||
if test -x ./php-cgi ; then
|
||||
php_cgi=./php-cgi
|
||||
else
|
||||
php_cgi="which php-cgi"
|
||||
fi
|
||||
|
||||
PHP_SRC=./php-src
|
||||
test -z "$TEST_PHP_USER" && TEST_PHP_USER="$PHP_SRC/Zend,$PHP_SRC/tests"
|
||||
|
||||
TEST_PHP_EXECUTABLE="$php_cli"
|
||||
TEST_PHP_CGI_EXECUTABLE="$php_cgi"
|
||||
|
||||
export TEST_PHP_CGI_EXECUTABLE
|
||||
export TEST_PHP_EXECUTABLE
|
||||
export TEST_PHP_USER
|
||||
|
||||
echo "XCache test running with:"
|
||||
echo "TEST_PHP_CGI_EXECUTABLE: $TEST_PHP_CGI_EXECUTABLE"
|
||||
echo "TEST_PHP_EXECUTABLE: $TEST_PHP_EXECUTABLE"
|
||||
echo "TEST_PHP_USER: $TEST_PHP_USER"
|
||||
|
||||
exec "$php_cli" "$@"
|
|
@ -0,0 +1,26 @@
|
|||
display_error = On
|
||||
error_reporting = E_ALL
|
||||
auto_globals_jit = On
|
||||
|
||||
[xcache]
|
||||
zend_extension_debug_ts=./modules/xcache.so
|
||||
zend_extension_debug=./modules/xcache.so
|
||||
zend_extension_ts=./modules/xcache.so
|
||||
zend_extension=./modules/xcache.so
|
||||
xcache.cacher = On
|
||||
xcache.test=1
|
||||
xcache.size = 1M
|
||||
xcache.count = 1
|
||||
xcache.var_size = 1M
|
||||
xcache.var_count = 1
|
||||
xcache.var_slots = 1000
|
||||
; xcache.mmap_path = "/dev/zero"
|
||||
xcache.mmap_path = "/tmp/xcache"
|
||||
xcache.readonly_protection = Off
|
||||
xcache.optimizer = Off
|
||||
xcache.coredump_directory = "/tmp/"
|
||||
;xcache.coveragedump_directory = "/tmp/pcov/"
|
||||
xcache.coverager = On
|
||||
|
||||
xcache.admin.user = "test"
|
||||
xcache.admin.pass = "098f6bcd4621d373cade4e832627b4f6"
|
Loading…
Reference in New Issue