source: trunk/run-xcachetest @ 863

Last change on this file since 863 was 863, checked in by moo, 2 years ago

recover removed by mistake

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1005 bytes
RevLine 
[215]1#!/bin/sh
2
[590]3getAbsolutePath() {
4    which readlink >/dev/null 2>&1 && readlink -f "$@" || echo "$@"
5}
6
[215]7# use symlink first
8if test -x ./php-cli ; then
[590]9    php_cli=`getAbsolutePath ./php-cli`
[215]10elif test ! -z "$TEST_PHP_EXECUTABLE" && test -x "$TEST_PHP_EXECUTABLE"; then
11    php_cli="$TEST_PHP_EXECUTABLE"
12else
[271]13    php_cli="`which php`"
[215]14fi
15
16if test -x ./php-cgi ; then
[590]17    php_cgi=`getAbsolutePath ./php-cgi`
[215]18else
[271]19    php_cgi="`which php-cgi`"
[215]20fi
21
22TEST_PHP_EXECUTABLE="$php_cli"
23TEST_PHP_CGI_EXECUTABLE="$php_cgi"
[858]24test -z "$TEST_PHP_SRCDIR" && TEST_PHP_SRCDIR=`getAbsolutePath ./php-src`
[215]25
26export TEST_PHP_EXECUTABLE
[590]27export TEST_PHP_CGI_EXECUTABLE
28export TEST_PHP_SRCDIR
[215]29
30echo "XCache test running with:"
31echo "TEST_PHP_CGI_EXECUTABLE: $TEST_PHP_CGI_EXECUTABLE"
32echo "TEST_PHP_EXECUTABLE:     $TEST_PHP_EXECUTABLE"
[863]33echo "TEST_PHP_SRCDIR:         $TEST_PHP_SRCDIR"
[215]34
[831]35run_tests_php=$TEST_PHP_SRCDIR/run-tests.php
36exec "$php_cli" -d "open_basedir=" -d "safe_mode=0" -d "output_buffering=0" -d "memory_limit=-1" $run_tests_php "$@"
Note: See TracBrowser for help on using the repository browser.