summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2001-04-16 23:28:58 +0000
committerStig Bakken <ssb@php.net>2001-04-16 23:28:58 +0000
commit0edbf4242f12404e5a20e298b8501e06c3210894 (patch)
treedd4175a8625b3bbd98a81ddc1eaa3f6c09d9a72e /run-tests.php
parent0b2641efa6a87d765b936ca5deebc12b554a9652 (diff)
downloadphp-git-0edbf4242f12404e5a20e298b8501e06c3210894.tar.gz
* using CGI -C option, you no longer have to specify "full" path to tests
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/run-tests.php b/run-tests.php
index 5a5af8b373..cf05f025a4 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -127,7 +127,7 @@ function initialize()
$term_bold = $term_norm = "";
}
- $windows_p = (substr(php_uname(), 0, 7) == "Windows");
+ $windows_p = (substr(PHP_OS, 0, 3) == "WIN");
if ($windows_p) {
if (file_exists('Release_TS_inline\\php.exe')) {
$php = 'Release_TS_inline\\php.exe';
@@ -137,8 +137,11 @@ function initialize()
$php=trim($windows_p ? `cd`:`pwd`).'\\php';
}
} else {
- // $php = $GLOBALS["TOP_BUILDDIR"]."/php"; // where should be the origin of this variable
- $php=trim(`pwd`).'/php';
+ if (isset($GLOBALS["TOP_BUILDDIR"])) {
+ $php = $GLOBALS["TOP_BUILDDIR"]."/php";
+ } else {
+ $php = getcwd() . '/php';
+ }
}
create_compiled_in_modules_list();