summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-12-07 11:28:58 +0000
committerfoobar <sniper@php.net>2005-12-07 11:28:58 +0000
commitbfa084ddba6d6f61fddd57dd97beed1ecd1c555e (patch)
tree0ad21d05b888c8a9a62ac58915db290b94e77fcd /run-tests.php
parent241659ff70e13a1f327fb010253f12101439c267 (diff)
downloadphp-git-bfa084ddba6d6f61fddd57dd97beed1ecd1c555e.tar.gz
MFH:- Made tests that require CGI skipped if it is not available
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/run-tests.php b/run-tests.php
index 3678ff8121..b67d6dc177 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -814,6 +814,7 @@ TEST $file
'TEST' => '',
'SKIPIF' => '',
'GET' => '',
+ 'POST' => '',
'ARGS' => '',
);
@@ -883,17 +884,20 @@ TEST $file
return 'BORKED';
}
+ $shortname = str_replace($cwd.'/', '', $file);
+ $tested = trim($section_text['TEST'])." [$shortname]";
+
/* For GET/POST tests, check if cgi sapi is available and if it is, use it. */
if ((!empty($section_text['GET']) || !empty($section_text['POST']))) {
if (file_exists("./sapi/cgi/php")) {
$old_php = $php;
$php = realpath("./sapi/cgi/php") . ' -C ';
+ } else {
+ show_result("SKIP", $tested, $file, "reason: CGI not available");
+ return 'SKIPPED';
}
}
- $shortname = str_replace($cwd.'/', '', $file);
- $tested = trim($section_text['TEST'])." [$shortname]";
-
show_test($test_idx, $shortname);
if (is_array($IN_REDIRECT)) {