Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101605 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65260 invoked from network); 17 Jan 2018 17:35:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2018 17:35:16 -0000 Authentication-Results: pb1.pair.com header.from=mail@pmmaga.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mail@pmmaga.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain pmmaga.net designates 149.210.149.73 as permitted sender) X-PHP-List-Original-Sender: mail@pmmaga.net X-Host-Fingerprint: 149.210.149.73 outbound2.mail.transip.nl Received: from [149.210.149.73] ([149.210.149.73:45336] helo=outbound2.mail.transip.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/5E-12394-2598F5A5 for ; Wed, 17 Jan 2018 12:35:16 -0500 Received: from submission4.mail.transip.nl (submission4.mail.transip.nl [149.210.149.124]) by outbound2.mail.transip.nl (Postfix) with ESMTP id 3zMDkR4Kcbz16Lnm for ; Wed, 17 Jan 2018 18:35:11 +0100 (CET) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by submission4.mail.transip.nl (Postfix) with ESMTPA id 3zMDkP71c2znVQn for ; Wed, 17 Jan 2018 18:35:09 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id g1so16737811wmg.2 for ; Wed, 17 Jan 2018 09:35:09 -0800 (PST) X-Gm-Message-State: AKwxytftZKmW3TnEDOXESkH+YL+eEnNp7WLuqqsHMt2Lv9VXqkXYkMjZ 1gpym3/C6jis1BUA/XwXhBE8JfgJOkoaPLHSgOM= X-Google-Smtp-Source: ACJfBovWUAk2rrdWmSZDNu7oHpa3KIj3JASqmc9Sul91lM3cvMLsXE4sv7haySiwrjnmdxCsX4hqSU9hAuh0BHejESw= X-Received: by 10.80.133.33 with SMTP id 30mr4093426edr.24.1516210509859; Wed, 17 Jan 2018 09:35:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.154.129 with HTTP; Wed, 17 Jan 2018 09:34:49 -0800 (PST) In-Reply-To: References: Date: Wed, 17 Jan 2018 17:34:49 +0000 X-Gmail-Original-Message-ID: Message-ID: To: Nikita Popov Cc: Sam Ding , PHP internals Content-Type: multipart/alternative; boundary="f403045c8b5cd8512b0562fc44f8" X-Scanned-By: ClueGetter at submission4.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=pmmaga.net; t=1516210511; h=from:reply-to:subject:to: cc:references:in-reply-to:date:mime-version:content-type; bh=z0ilVh2kaoKa/8x213BcS7wEUgcnGdnRe7r0nFJs8BM=; b=veXIR+lyBIN8yToXko3lIAANaCABmUYO+yLo6RkNH1mvg1E5rrdFAl0Sg07ZjA4+9oyef2 Eat2HP4loRlgydbIL5JddwF+vsYgM06oG+hm+q31370dgLeQ7Ko0wGOldjcJbBbCIATAS0 MWv2y8DwqdWGs3hnJZ5fCK9lStWJ8iWeamZQbd0e9WeCftZyt1PdkOmAXvogYj5GNTO7nB zSq45BKcLGy6fVAPlwCrO4iN3sSxeWyj3kR5NBVLZXJAmv9RaKd3UEtmp56iz3GP0l0IxB MJhxgICtbzWimI+IhyaFfotZJ86jRX5GJQtKSId6LFwhV5oLT1F/R3gCxbPDPQ== X-Report-Abuse-To: abuse@transip.nl Subject: Re: [PHP-DEV] unit test a single case From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --f403045c8b5cd8512b0562fc44f8 Content-Type: text/plain; charset="UTF-8" On Wed, Jan 17, 2018 at 4:50 PM, Nikita Popov wrote: > On Wed, Jan 17, 2018 at 5:40 PM, Sam Ding wrote: > > > > > Hi PHP developers, > > > > I am new and try to porting php v7.2.1 on IBM s390x, after building and > > run unit test "make test", there are > > some failed cases. Is there any way I can run a single case and get the > > result? > > Further how to debug a php unit case code? > > > > You can use one of > > make test TESTS=dir > sapi/cli/php run-tests.php -P dir > > to run tests in a certain directory, or a specific test file. > > The first step for debugging would be to look at the .out or .diff file for > the failing .phpt. There will also be a .php file, which can be used to run > the test file directly. > > Nikita > To add to what Nikita said, there will also be a .sh file next to the failing test that you can use to repeat that test only. Regards, Pedro --f403045c8b5cd8512b0562fc44f8--