summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-02-12 18:51:12 +0000
committerMarcus Boerger <helly@php.net>2006-02-12 18:51:12 +0000
commit9c614f8f8feb8a92e9f89d184beab3fa03facd93 (patch)
treeb5c00e9556dcff0be7191e8639a748d8065ac8d1 /run-tests.php
parent4b2b9461d48ef723154366baab9446177675c620 (diff)
downloadphp-git-9c614f8f8feb8a92e9f89d184beab3fa03facd93.tar.gz
- Synch
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php44
1 files changed, 22 insertions, 22 deletions
diff --git a/run-tests.php b/run-tests.php
index 3f711047cf..268cdb62a9 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -330,6 +330,9 @@ if (isset($argc) && $argc > 1) {
}
$pass_option_n = true;
break;
+ case 'N':
+ // this is always native
+ break;
case '--no-clean':
$no_clean = true;
break;
@@ -420,6 +423,8 @@ Options:
-m Test for memory leaks with Valgrind.
+ -N Always set (Test with unicode_semantics set off in PHP 6).
+
-s <file> Write output to <file>.
-q Quite, no user interaction (same as environment NO_INTERACTION).
@@ -1104,15 +1109,27 @@ TEST $file
}
}
+ // Default ini settings
+ $ini_settings = array();
+ // additional ini overwrites
+ //$ini_overwrites[] = 'setting=value';
+ settings2array($ini_overwrites, $ini_settings);
+
+ // Any special ini settings
+ // these may overwrite the test defaults...
+ if (array_key_exists('INI', $section_text)) {
+ if (strpos($section_text['INI'], '{PWD}') !== false) {
+ $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
+ }
+ settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
+ }
+ settings2params($ini_settings);
+
// Check if test should be skipped.
$info = '';
$warn = false;
if (array_key_exists('SKIPIF', $section_text)) {
if (trim($section_text['SKIPIF'])) {
- $skipif_params = array();
- settings2array($ini_overwrites,$skipif_params);
- settings2params($skipif_params);
-
if ($cfg['show']['skip']) {
echo "\n========SKIP========\n";
echo $section_text['SKIPIF'];
@@ -1121,7 +1138,7 @@ TEST $file
save_text($test_skipif, $section_text['SKIPIF'], $temp_skipif);
$extra = substr(PHP_OS, 0, 3) !== "WIN" ?
"unset REQUEST_METHOD; unset QUERY_STRING; unset PATH_TRANSLATED; unset SCRIPT_FILENAME; unset REQUEST_METHOD;": "";
- $output = system_with_timeout("$extra $php -q $skipif_params $test_skipif", $env);
+ $output = system_with_timeout("$extra $php -q $ini_settings $test_skipif", $env);
if (!$cfg['keep']['skip']) {
@unlink($test_skipif);
}
@@ -1207,23 +1224,6 @@ TEST $file
return 'BORKED';
}
-
- // Default ini settings
- $ini_settings = array();
- // additional ini overwrites
- //$ini_overwrites[] = 'setting=value';
- settings2array($ini_overwrites, $ini_settings);
-
- // Any special ini settings
- // these may overwrite the test defaults...
- if (array_key_exists('INI', $section_text)) {
- if (strpos($section_text['INI'], '{PWD}') !== false) {
- $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
- }
- settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
- }
- settings2params($ini_settings);
-
// We've satisfied the preconditions - run the test!
if ($cfg['show']['php']) {
echo "\n========TEST========\n";