cvs: php4 / run-tests.php

From: Date: Wed, 21 Aug 2002 23:06:39 +0000
Subject: cvs: php4 / run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13533@lists.php.net to get a copy of this message
helly Wed Aug 21 19:06:39 2002 EDT Modified files: /php4 run-tests.php Log: Added ARGS section to allow passing arguments to CLI tests Index: php4/run-tests.php diff -u php4/run-tests.php:1.52 php4/run-tests.php:1.53 --- php4/run-tests.php:1.52 Mon Aug 19 15:42:20 2002 +++ php4/run-tests.php Wed Aug 21 19:06:38 2002 @@ -273,6 +273,7 @@ 'TEST' => '(unnamed test)', 'SKIPIF' => '', 'GET' => '', + 'ARGS' => '', ); $fp = @fopen($file, "r") @@ -348,6 +349,8 @@ putenv("PATH_TRANSLATED=$tmp_file"); putenv("SCRIPT_FILENAME=$tmp_file"); + $args = $section_text['ARGS'] ? ' -- '.$section_text['ARGS'] : ''; + if (array_key_exists('POST', $section_text) && !empty($section_text['POST'])) { $post = trim($section_text['POST']); @@ -366,7 +369,7 @@ putenv("CONTENT_TYPE="); putenv("CONTENT_LENGTH="); - $cmd = "$php$ini_settings -f $tmp_file 2>&1"; + $cmd = "$php$ini_settings -f $tmp_file$args 2>&1"; }

« previous php.cvs (#13533) next »