Newsgroups: php.internals,php.qa Path: news.php.net Xref: news.php.net php.internals:55054 php.qa:65910 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17580 invoked from network); 1 Sep 2011 11:35:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2011 11:35:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:57596] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/22-03466-8FD6F5E4 for ; Thu, 01 Sep 2011 07:35:20 -0400 Received: by yxk30 with SMTP id 30so291825yxk.29 for ; Thu, 01 Sep 2011 04:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=BFxEuZhOdRJ6y1ZFGzcyZquVdb2+MTnWHhz0n3VUfI4=; b=UmQzS8LMzI4Ji76OrtuwLvkp+2GMAvzWw3krRy0s7qFhvMqteOm3bPx2gNQtaF2SSK XdBvGiwsNhleLcDiH4y9vME3yxFiOhwwL7dNkVTenkl3hZuwn0u/Uzd5qX91VbBSCT/f cWLDv60/fe2cHG5Bb3hwxTpkLHSp+Ppl9DZYY= MIME-Version: 1.0 Received: by 10.147.135.7 with SMTP id m7mr97156yan.30.1314876917979; Thu, 01 Sep 2011 04:35:17 -0700 (PDT) Sender: hannes.magnusson@gmail.com Received: by 10.147.137.17 with HTTP; Thu, 1 Sep 2011 04:35:17 -0700 (PDT) Date: Thu, 1 Sep 2011 13:35:17 +0200 X-Google-Sender-Auth: CgU0-wodQ0aqGVwZEALj-vq8wAM Message-ID: To: PHP Development , PHP QA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: New run-tests.php feature From: bjori@php.net (Hannes Magnusson) Throw qa and internals@ into the loop to. I'd also like to move the XFAIL section (printed out in the end) above the FAIL section. We have bucketloads of xfailed tests, I actually have to scroll up to see the failed tests which is really annoying and silly. Anyone have strong opinion on the printout order? -Hannes ---------- Forwarded message ---------- From: Hannes Magnusson Date: Thu, Sep 1, 2011 at 13:32 Subject: Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/run-tests.php branches/PHP_5_4/run-tests.php trunk/run-tests.php To: Pierre Joye Cc: php-cvs@lists.php.net I did want to use -v at first, but that has a completely different meaning already. Its really only useful when looking at what is going on in a single testcase to debug run-tests :] -Hannes On Thu, Sep 1, 2011 at 13:26, Pierre Joye wrote: > ah right, I miss this part of the patch. I would suggest -v instead > and add a level of verbosity (less means no output but failed tests > for example). > > On Thu, Sep 1, 2011 at 1:13 PM, Hannes Magnusson wrote: >> It is, -g >> >> so, you can either do $ SHOW_ONLY_GROUPS=3DFAIL,WARN make test >> or via run-tets, $ TEST_PHP_EXECUTABLE=3Dauto php run-tests.php -g XFAIL= ,SKIP >> >> -Hannes >> >> >> On Thu, Sep 1, 2011 at 13:06, Pierre Joye wrote: >>> good idea! >>> >>> please add it as a command line option as well, maybe using a verbose o= ption >>> >>> On Thu, Sep 1, 2011 at 1:00 PM, Hannes Magnusson wrote: >>>> bjori =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Thu, 01 Sep 2= 011 11:00:51 +0000 >>>> >>>> Revision: http://svn.php.net/viewvc?view=3Drevision&revision=3D315967 >>>> >>>> Log: >>>> Seeing thousands of PASS tests flying by is meaningless. >>>> Add an option to only print certain result groups. >>>> >>>> Changed paths: >>>> =C2=A0 =C2=A0U =C2=A0 php/php-src/branches/PHP_5_3/run-tests.php >>>> =C2=A0 =C2=A0U =C2=A0 php/php-src/branches/PHP_5_4/run-tests.php >>>> =C2=A0 =C2=A0U =C2=A0 php/php-src/trunk/run-tests.php >>>> >>>> Modified: php/php-src/branches/PHP_5_3/run-tests.php >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>> --- php/php-src/branches/PHP_5_3/run-tests.php =C2=A02011-09-01 10:16:= 21 UTC (rev 315966) >>>> +++ php/php-src/branches/PHP_5_3/run-tests.php =C2=A02011-09-01 11:00:= 51 UTC (rev 315967) >>>> @@ -207,6 +207,12 @@ >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0$DETAILED =3D 0; >>>> =C2=A0} >>>> >>>> +if (getenv('SHOW_ONLY_GROUPS')) { >>>> + =C2=A0 =C2=A0 =C2=A0 $SHOW_ONLY_GROUPS =3D explode(",", getenv('SHOW= _ONLY_GROUPS')); >>>> +} else { >>>> + =C2=A0 =C2=A0 =C2=A0 $SHOW_ONLY_GROUPS =3D array(); >>>> +} >>>> + >>>> =C2=A0// Check whether user test dirs are requested. >>>> =C2=A0if (getenv('TEST_PHP_USER')) { >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0$user_tests =3D explode (',', getenv('TEST_= PHP_USER')); >>>> @@ -560,6 +566,9 @@ >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0case 'd': >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$ini_o= verwrites[] =3D $argv[++$i]; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0break; >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 case 'g': >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 $SHOW_ON= LY_GROUPS =3D explode(",", $argv[++$i]);; >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 break; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0//case 'h' >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0case '--keep-all': >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0foreac= h($cfgfiles as $file) { >>>> @@ -675,6 +684,9 @@ >>>> =C2=A0 =C2=A0 -d foo=3Dbar =C2=A0Pass -d option to the php binary (Def= ine INI entry foo >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 with value 'ba= r'). >>>> >>>> + =C2=A0 =C2=A0-g =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Comma seperated li= st of groups to show during test run >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(e.x. FAIL,SK= IP). >>>> + >>>> =C2=A0 =C2=A0 -m =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Test for memory lea= ks with Valgrind. >>>> >>>> =C2=A0 =C2=A0 -p =C2=A0 =C2=A0Specify PHP executable to run. >>>> @@ -2426,16 +2438,24 @@ >>>> =C2=A0function show_test($test_idx, $shortname) >>>> =C2=A0{ >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0global $test_cnt; >>>> + =C2=A0 =C2=A0 =C2=A0 global $line_length; >>>> >>>> - =C2=A0 =C2=A0 =C2=A0 echo "TEST $test_idx/$test_cnt [$shortname]\r"; >>>> + =C2=A0 =C2=A0 =C2=A0 $str =3D "TEST $test_idx/$test_cnt [$shortname]= \r"; >>>> + =C2=A0 =C2=A0 =C2=A0 $line_length =3D strlen($str); >>>> + =C2=A0 =C2=A0 =C2=A0 echo $str; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0flush(); >>>> =C2=A0} >>>> >>>> =C2=A0function show_result($result, $tested, $tested_file, $extra =3D = '', $temp_filenames =3D null) >>>> =C2=A0{ >>>> - =C2=A0 =C2=A0 =C2=A0 global $html_output, $html_file, $temp_target, = $temp_urlbase; >>>> + =C2=A0 =C2=A0 =C2=A0 global $html_output, $html_file, $temp_target, = $temp_urlbase, $line_length, $SHOW_ONLY_GROUPS; >>>> >>>> - =C2=A0 =C2=A0 =C2=A0 echo "$result $tested [$tested_file] $extra\n"; >>>> + =C2=A0 =C2=A0 =C2=A0 if (!$SHOW_ONLY_GROUPS || in_array($result, $SH= OW_ONLY_GROUPS)) { >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo "$result $test= ed [$tested_file] $extra\n"; >>>> + =C2=A0 =C2=A0 =C2=A0 } else { >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // Write over the l= ast line to avoid random trailing chars on next echo >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo str_repeat(" "= , $line_length), "\r"; >>>> + =C2=A0 =C2=A0 =C2=A0 } >>>> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0if ($html_output) { >>>> >>>> >>>> Modified: php/php-src/branches/PHP_5_4/run-tests.php >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>> --- php/php-src/branches/PHP_5_4/run-tests.php =C2=A02011-09-01 10:16:= 21 UTC (rev 315966) >>>> +++ php/php-src/branches/PHP_5_4/run-tests.php =C2=A02011-09-01 11:00:= 51 UTC (rev 315967) >>>> @@ -207,6 +207,12 @@ >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0$DETAILED =3D 0; >>>> =C2=A0} >>>> >>>> +if (getenv('SHOW_ONLY_GROUPS')) { >>>> + =C2=A0 =C2=A0 =C2=A0 $SHOW_ONLY_GROUPS =3D explode(",", getenv('SHOW= _ONLY_GROUPS')); >>>> +} else { >>>> + =C2=A0 =C2=A0 =C2=A0 $SHOW_ONLY_GROUPS =3D array(); >>>> +} >>>> + >>>> =C2=A0// Check whether user test dirs are requested. >>>> =C2=A0if (getenv('TEST_PHP_USER')) { >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0$user_tests =3D explode (',', getenv('TEST_= PHP_USER')); >>>> @@ -560,6 +566,9 @@ >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0case 'd': >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$ini_o= verwrites[] =3D $argv[++$i]; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0break; >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 case 'g': >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 $SHOW_ON= LY_GROUPS =3D explode(",", $argv[++$i]);; >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 break; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0//case 'h' >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0case '--keep-all': >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0foreac= h($cfgfiles as $file) { >>>> @@ -675,6 +684,9 @@ >>>> =C2=A0 =C2=A0 -d foo=3Dbar =C2=A0Pass -d option to the php binary (Def= ine INI entry foo >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 with value 'ba= r'). >>>> >>>> + =C2=A0 =C2=A0-g =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Comma seperated li= st of groups to show during test run >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(e.x. FAIL,SK= IP). >>>> + >>>> =C2=A0 =C2=A0 -m =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Test for memory lea= ks with Valgrind. >>>> >>>> =C2=A0 =C2=A0 -p =C2=A0 =C2=A0Specify PHP executable to run. >>>> @@ -2426,16 +2438,24 @@ >>>> =C2=A0function show_test($test_idx, $shortname) >>>> =C2=A0{ >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0global $test_cnt; >>>> + =C2=A0 =C2=A0 =C2=A0 global $line_length; >>>> >>>> - =C2=A0 =C2=A0 =C2=A0 echo "TEST $test_idx/$test_cnt [$shortname]\r"; >>>> + =C2=A0 =C2=A0 =C2=A0 $str =3D "TEST $test_idx/$test_cnt [$shortname]= \r"; >>>> + =C2=A0 =C2=A0 =C2=A0 $line_length =3D strlen($str); >>>> + =C2=A0 =C2=A0 =C2=A0 echo $str; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0flush(); >>>> =C2=A0} >>>> >>>> =C2=A0function show_result($result, $tested, $tested_file, $extra =3D = '', $temp_filenames =3D null) >>>> =C2=A0{ >>>> - =C2=A0 =C2=A0 =C2=A0 global $html_output, $html_file, $temp_target, = $temp_urlbase; >>>> + =C2=A0 =C2=A0 =C2=A0 global $html_output, $html_file, $temp_target, = $temp_urlbase, $line_length, $SHOW_ONLY_GROUPS; >>>> >>>> - =C2=A0 =C2=A0 =C2=A0 echo "$result $tested [$tested_file] $extra\n"; >>>> + =C2=A0 =C2=A0 =C2=A0 if (!$SHOW_ONLY_GROUPS || in_array($result, $SH= OW_ONLY_GROUPS)) { >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo "$result $test= ed [$tested_file] $extra\n"; >>>> + =C2=A0 =C2=A0 =C2=A0 } else { >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // Write over the l= ast line to avoid random trailing chars on next echo >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo str_repeat(" "= , $line_length), "\r"; >>>> + =C2=A0 =C2=A0 =C2=A0 } >>>> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0if ($html_output) { >>>> >>>> >>>> Modified: php/php-src/trunk/run-tests.php >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>> --- php/php-src/trunk/run-tests.php =C2=A0 =C2=A0 2011-09-01 10:16:21 = UTC (rev 315966) >>>> +++ php/php-src/trunk/run-tests.php =C2=A0 =C2=A0 2011-09-01 11:00:51 = UTC (rev 315967) >>>> @@ -207,6 +207,12 @@ >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0$DETAILED =3D 0; >>>> =C2=A0} >>>> >>>> +if (getenv('SHOW_ONLY_GROUPS')) { >>>> + =C2=A0 =C2=A0 =C2=A0 $SHOW_ONLY_GROUPS =3D explode(",", getenv('SHOW= _ONLY_GROUPS')); >>>> +} else { >>>> + =C2=A0 =C2=A0 =C2=A0 $SHOW_ONLY_GROUPS =3D array(); >>>> +} >>>> + >>>> =C2=A0// Check whether user test dirs are requested. >>>> =C2=A0if (getenv('TEST_PHP_USER')) { >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0$user_tests =3D explode (',', getenv('TEST_= PHP_USER')); >>>> @@ -560,6 +566,9 @@ >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0case 'd': >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$ini_o= verwrites[] =3D $argv[++$i]; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0break; >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 case 'g': >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 $SHOW_ON= LY_GROUPS =3D explode(",", $argv[++$i]);; >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 break; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0//case 'h' >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0case '--keep-all': >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0foreac= h($cfgfiles as $file) { >>>> @@ -675,6 +684,9 @@ >>>> =C2=A0 =C2=A0 -d foo=3Dbar =C2=A0Pass -d option to the php binary (Def= ine INI entry foo >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 with value 'ba= r'). >>>> >>>> + =C2=A0 =C2=A0-g =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Comma seperated li= st of groups to show during test run >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(e.x. FAIL,SK= IP). >>>> + >>>> =C2=A0 =C2=A0 -m =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Test for memory lea= ks with Valgrind. >>>> >>>> =C2=A0 =C2=A0 -p =C2=A0 =C2=A0Specify PHP executable to run. >>>> @@ -2426,16 +2438,24 @@ >>>> =C2=A0function show_test($test_idx, $shortname) >>>> =C2=A0{ >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0global $test_cnt; >>>> + =C2=A0 =C2=A0 =C2=A0 global $line_length; >>>> >>>> - =C2=A0 =C2=A0 =C2=A0 echo "TEST $test_idx/$test_cnt [$shortname]\r"; >>>> + =C2=A0 =C2=A0 =C2=A0 $str =3D "TEST $test_idx/$test_cnt [$shortname]= \r"; >>>> + =C2=A0 =C2=A0 =C2=A0 $line_length =3D strlen($str); >>>> + =C2=A0 =C2=A0 =C2=A0 echo $str; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0flush(); >>>> =C2=A0} >>>> >>>> =C2=A0function show_result($result, $tested, $tested_file, $extra =3D = '', $temp_filenames =3D null) >>>> =C2=A0{ >>>> - =C2=A0 =C2=A0 =C2=A0 global $html_output, $html_file, $temp_target, = $temp_urlbase; >>>> + =C2=A0 =C2=A0 =C2=A0 global $html_output, $html_file, $temp_target, = $temp_urlbase, $line_length, $SHOW_ONLY_GROUPS; >>>> >>>> - =C2=A0 =C2=A0 =C2=A0 echo "$result $tested [$tested_file] $extra\n"; >>>> + =C2=A0 =C2=A0 =C2=A0 if (!$SHOW_ONLY_GROUPS || in_array($result, $SH= OW_ONLY_GROUPS)) { >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo "$result $test= ed [$tested_file] $extra\n"; >>>> + =C2=A0 =C2=A0 =C2=A0 } else { >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // Write over the l= ast line to avoid random trailing chars on next echo >>>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo str_repeat(" "= , $line_length), "\r"; >>>> + =C2=A0 =C2=A0 =C2=A0 } >>>> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0if ($html_output) { >>>> >>>> >>>> >>>> -- >>>> PHP CVS Mailing List (http://www.php.net/) >>>> To unsubscribe, visit: http://www.php.net/unsub.php >>>> >>> >>> >>> >>> -- >>> Pierre >>> >>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org >>> >> > > > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >