Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31291 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51961 invoked by uid 1010); 27 Jul 2007 04:00:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51944 invoked from network); 27 Jul 2007 04:00:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2007 04:00:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:59082] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/53-29409-EDD69A64 for ; Fri, 27 Jul 2007 00:00:37 -0400 Received: from trainburn-lm-corp-yahoo-com.local (static-64-65-140-161.dsl.pdx.eschelon.com [64.65.140.161]) (authenticated bits=0) by mail.lerdorf.com (8.14.1/8.14.1/Debian-7) with ESMTP id l6R3xtJL002309 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 26 Jul 2007 20:59:57 -0700 Message-ID: <46A96DAF.10507@lerdorf.com> Date: Thu, 26 Jul 2007 20:59:43 -0700 User-Agent: Thunderbird 2.0.0.5 (Macintosh/20070716) MIME-Version: 1.0 To: ceo@l-i-e.com CC: Andrey Hristov , Antony Dovgal , Nuno Lopes , internals@lists.php.net References: <000301c7ce41$5fc5e7b0$0100a8c0@pc07653> <46A770C0.9090801@zend.com> <46A78A7A.60306@hristov.com> <2769.24.12.13.192.1185508570.squirrel@www.l-i-e.com> In-Reply-To: <2769.24.12.13.192.1185508570.squirrel@www.l-i-e.com> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.1/3779/Thu Jul 26 12:33:22 2007 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] Re: multi-threaded run-tests.php From: rasmus@lerdorf.com (Rasmus Lerdorf) Richard Lynch wrote: > On Wed, July 25, 2007 12:38 pm, Andrey Hristov wrote: >> Hi Tony, >> Antony Dovgal wrote: >>> On 25.07.2007 19:37, Nuno Lopes wrote: >>>> So here it is my first attempt: >>>> http://gcov.php.net/~nlopess/multi_threaded_run_tests.txt >>>> WARNING: The patch is ugly and the output of the script isn't the >>>> prettiest. >>>> >>>> Anyway, for automated testing seems to be good enough. >>>> >>>> Nuno >>>> >>>> P.S.: after this little hack, I also start to feel that >>>> run-tests.php >>>> should be rewritten :P >>> Unfortunately, this is 100% truth, Sebastian have had some ideas >>> about it. >>> >> I also have a hack, that makes it possible to re-run a test few times. >> I >> call it iteration. For every iteration there is >> $_ENV['TEST_ITERATION']. >> Based on which different consts are defined by the pre-include script. >> I >> am using it for testing mysqlnd against a bunch of MySQL Server, the >> minimalistic configuration is doing 3 iterations against 4.1, 5.0 and >> 5.1 Server. Not sure that other extensions could benefit from it, but >> at >> least the DB connectivity ones..like testing OCI8.... > > FWIW: > > I spent about 10 to 20 minutes trying to figure out if it was possible > to easily run just a subset of tests and failed. > > I dunno if that indicates that it's a feature to be added, one to be > better documented, or that I'm just being stupid (again), but there it > is. :-) make test TESTS=ext/foo Or, add this little shell script which I call phpt: #!/bin/bash TEST_PHP_EXECUTABLE=/usr/local/bin/php php /usr/local/lib/php/build/run-tests.php $1 Then cd into whatever directory has your tests and type: phpt . -Rasmus -Rasmus