source: git/run-xcachetest @ 72a34e4

1.21.33.03.13.2trunk
Last change on this file since 72a34e4 was 72a34e4, checked in by Xuefer <xuefer@…>, 14 years ago

script that help to run php test cases

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@215 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

  • Property mode set to 100755
File size: 750 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
18PHP_SRC=./php-src
19test -z "$TEST_PHP_USER" && TEST_PHP_USER="$PHP_SRC/Zend,$PHP_SRC/tests"
20
21TEST_PHP_EXECUTABLE="$php_cli"
22TEST_PHP_CGI_EXECUTABLE="$php_cgi"
23
24export TEST_PHP_CGI_EXECUTABLE
25export TEST_PHP_EXECUTABLE
26export TEST_PHP_USER
27
28echo "XCache test running with:"
29echo "TEST_PHP_CGI_EXECUTABLE: $TEST_PHP_CGI_EXECUTABLE"
30echo "TEST_PHP_EXECUTABLE:     $TEST_PHP_EXECUTABLE"
31echo "TEST_PHP_USER:           $TEST_PHP_USER"
32
33exec "$php_cli" "$@"
Note: See TracBrowser for help on using the repository browser.