source: git/run-xcachetest @ ad5e1b4

1.3
Last change on this file since ad5e1b4 was ad5e1b4, checked in by Xuefer <xuefer@…>, 10 years ago

merged r514-r539 from trunk

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.3@623 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

  • Property mode set to 100755
File size: 949 bytes
Line 
1#!/bin/sh
2
3# use symlink first
4if test -x ./php-cli ; then
5    php_cli=./php-cli
6elif test ! -z "$TEST_PHP_EXECUTABLE" && test -x "$TEST_PHP_EXECUTABLE"; then
7    php_cli="$TEST_PHP_EXECUTABLE"
8else
9    php_cli="`which php`"
10fi
11
12if test -x ./php-cgi ; then
13    php_cgi=./php-cgi
14else
15    php_cgi="`which php-cgi`"
16fi
17
18test -z "$PHP_SRC" && PHP_SRC=./php-src
19if test -z "$TEST_PHP_USER" ; then
20    TEST_PHP_USER="$PHP_SRC/tests"
21    for i in Zend ZendEngine2 ext/standard/tests ext/reflection/tests ext/spl/tests; do
22        if test -d "$PHP_SRC/$i" ; then
23            TEST_PHP_USER="$TEST_PHP_USER,$PHP_SRC/$i"
24        fi
25    done
26fi
27
28TEST_PHP_EXECUTABLE="$php_cli"
29TEST_PHP_CGI_EXECUTABLE="$php_cgi"
30
31export TEST_PHP_CGI_EXECUTABLE
32export TEST_PHP_EXECUTABLE
33export TEST_PHP_USER
34
35echo "XCache test running with:"
36echo "TEST_PHP_CGI_EXECUTABLE: $TEST_PHP_CGI_EXECUTABLE"
37echo "TEST_PHP_EXECUTABLE:     $TEST_PHP_EXECUTABLE"
38echo "TEST_PHP_USER:           $TEST_PHP_USER"
39
40exec "$php_cli" "$@"
Note: See TracBrowser for help on using the repository browser.