Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101726 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67512 invoked from network); 29 Jan 2018 22:10:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jan 2018 22:10:57 -0000 Authentication-Results: pb1.pair.com header.from=themattficken@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=themattficken@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.179 as permitted sender) X-PHP-List-Original-Sender: themattficken@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-io0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:42329] helo=mail-io0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/5D-24062-CEB9F6A5 for ; Mon, 29 Jan 2018 17:10:56 -0500 Received: by mail-io0-f179.google.com with SMTP id 25so9302228ioj.9 for ; Mon, 29 Jan 2018 14:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tfC7B2ELemI8L681cRpmLcr7Jy9r0UFUxLk8X+D5Thg=; b=YArZXujqVtGgyH5yK94rw9zJIcZ1O7JfYutEFh73do4RDU1t5bDhpR5Cc52GgnFJep THAjOX91sknWeI3GbGvMs3qkYUTx/APYbRBuikvu8HjN8o9+j2vSBveKVO6eWReFKg8K Gr0LjqDwfjNoaEyK6oLwRdneCb7ZuUzz47s62z99KtEACQUWgWLdKGa7pLHFSDtrW0rX lec0rnVrhf3xFB/t9SFf4q3PN1c7gBBjTLEJm03R/l+NOimidI6k9otjRfjYkxtV3nkY luuNvhiFQiv4Y5ziqnq4l9gkTsR0Ytavuj0/qPoDHAlqLNlbZtX4G/hom/+EBP/sV7aR s+4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tfC7B2ELemI8L681cRpmLcr7Jy9r0UFUxLk8X+D5Thg=; b=tgPFQ6GUFy4Bagr+BbgLjIQ0njC/2bE65XliTo4j+wtuoozDKATlhLrcBOObDMzNvH B674y3Nb7vh9Jlc/gdLUbTOhX6vFhNsmWrSD2ohyH0ed0AAi3q/GTlQMm9P0n+0yNFLh yr1WGLLapgOcdyX5NjbKwE3JvEWm9G1nuZyMWhVKRDmq0awnDpXDvHUBiRsvqkvSCm0d pcCArGrdYVvybhVvtqODsZzFNieuMzQUj4zopklPl4busJqXWb7RLxA8KAIdrNgB94yY wL/E3A+NVG71yPuXT/qOxoDbOEkc4eJIaoAXdoGsmrhlwTupMP11IzdyB+oSIce4VbWo aXRA== X-Gm-Message-State: AKwxyteyFLUmoHyIMSTKgmNJSU9wrIpQ7gQwoehGAbFsXoI52OeLUxLg UQLhWDii9o/aCNam8ByxVSGf+hUodlel/kOy6Cs= X-Google-Smtp-Source: AH8x225SeFe1aurAJzq/F0VeLIyEow8MxNG5y6rSkOo2ncw4qaWDR8vq1EN97olLqrIGz4+DeWWbLBmy/ckJJv0TE94= X-Received: by 10.107.59.77 with SMTP id i74mr26101756ioa.180.1517263850448; Mon, 29 Jan 2018 14:10:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.147.195 with HTTP; Mon, 29 Jan 2018 14:10:49 -0800 (PST) In-Reply-To: References: Date: Mon, 29 Jan 2018 14:10:49 -0800 Message-ID: To: Nazar Mokrynskyi Cc: PHP Internals Content-Type: multipart/alternative; boundary="94eb2c05c48ed62b9a0563f184f2" Subject: Re: [PHP-DEV] Potential adoption of run-tests.php replacement From: themattficken@gmail.com (Matt Ficken) --94eb2c05c48ed62b9a0563f184f2 Content-Type: text/plain; charset="UTF-8" This is a reimplementation of run-test.php, not just a wrapper (so its another parser for the PHPT file format). However, its missing support for many PHPT sections (ie its PHPT format support is incomplete). See: https://github.com/nazar-pc/phpt-tests-runner/blob/master/bin/phpt-tests-runner#L117 I created PFTT as a multi-SAPI (CLI, IIS/FastCGI, CLI-WWW, Apache) multiplatform test tool reimplementing PHPT and PHPUnit(and support for other common tasks)... This may give you some clarification of what's missing http://git.php.net/?p=pftt2.git;a=blob_plain;f=src/com/mostc/pftt/model/core/EPhptSection.java;hb=refs/heads/master PFTT is a big heavyweight tool (so PFTT shouldn't be in core). run-tests.php is nice because its a lightweight tool, not overly complex and minimal to download, so I can easily do `make test` for a custom build... its just not as good at seriously pounding PHP across multiple scenarios, SAPIs, filesystems, etc... (built in part to hammer PHP on Windows to ensure it works well). Do we really need a 3rd PHPT engine? It also supports parallel execution (it tests many different scenarios, so faster execution is critical)... that's a feature that's hard to get right. -Regards -M On Mon, Jan 29, 2018 at 4:57 AM, Nazar Mokrynskyi wrote: > Hi internals, > > As most of you know, there is this script called run-tests.php which is > huge in size and hard to maintain. > > I also heard some wanted it to support parallel tests execution and > probably other things. > > There is a project I've created a long time ago and still maintaining ( > https://github.com/nazar-pc/phpt-tests-runner) that should be able to run > most of the tests without changes already with colored output and the whole > thing is a fraction of run-tests.php's size. > > How I'd like to work towards mainlining it into php-src in case there is a > desire and an agreement on such transition. > > If this seems like a good idea, it would be very useful if someone can > enumerate the list of features that are currently used/needed from > run-tests.php and which replacement should offer, alongside with features > on top that might be useful (like parallel execution). > > If there was similar discussion already and there is an accepted solution > there, let me know. > > -- > Sincerely, Nazar Mokrynskyi > github.com/nazar-pc > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --94eb2c05c48ed62b9a0563f184f2--