Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55623 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78385 invoked from network); 24 Sep 2011 17:50:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Sep 2011 17:50:42 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:64821] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/00-12016-1781E7E4 for ; Sat, 24 Sep 2011 13:50:42 -0400 Received: by ywa8 with SMTP id 8so4049250ywa.29 for ; Sat, 24 Sep 2011 10:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=yi09xmgauNDOT45xzKtIBqrbfBigYI2mA6iaNAzmlqc=; b=YVtMwwLsqqO5JiyjR5Ybul0pl3FtmnyKuQLKHqUAmPn0NqAsXu8g74nRIK4tCTNHCE hnBw1kONRp9KnGWHH13B/RJq7Qp2/FeDN5L13xyFZ2oghSsf3mBUXQRa89EAKCYUcWhC JIfa/LwmTjq3JpwPkWzuCX5n3Z3/IdK2nHecs= Received: by 10.68.19.34 with SMTP id b2mr1819466pbe.60.1316886638084; Sat, 24 Sep 2011 10:50:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.110.12 with HTTP; Sat, 24 Sep 2011 10:50:18 -0700 (PDT) In-Reply-To: References: Date: Sat, 24 Sep 2011 14:50:18 -0300 Message-ID: To: Alexey Shein Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [PATCH] Autoguessing TEST_PHP_EXECUTABLE if none is provided in run-tests.php From: felipensp@gmail.com (Felipe Pena) 2011/9/8 Alexey Shein : > Hello! > I've made some improvements to run-tests.php: > 1) Autoguessing TEST_PHP_EXECUTABLE and TEST_PHP_CGI_EXECUTABLE if > they're not provided, i.e. assume they have value 'auto'. You can > still pass your own value as usual. > 2) Added option -n (use no php.ini) to the shebang line > (#!/usr/bin/php -n) so it would run more reliably on some hosts. My > Ubuntu setup did not have E letter in variables_order (i.e. > variables_order=GPCS) so $_ENV array was empty and some tests were > skipped when they could be run. > 3) Some better error handling of wrong paths > > So now you can run run-tests.php with just > $ ./run-tests.php ext > instead of > $ TEST_PHP_EXECUTABLE=auto php -n run-tests.php ext > > You can also run run-tests.php from sub-dir, it will correctly guess > 'auto' as well: > $ cd ext/ > $ ../run-tests.php zlib > > Please, review this patch and, if there's no objections, I will > prepare 5.4 and 5.3 versions too. > > -- > Regards, > Shein Alexey > +1 I have no tried the patch, but the additions sounds good to me. -- Regards, Felipe Pena