Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNFiY-0007Hd-4g for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 15:07:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nNFiW-0005Qf-W7 for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 15:07:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNFiW-0005QV-NH for pgsql-hackers@lists.postgresql.org; Thu, 24 Feb 2022 15:07:40 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNFiU-0001V6-0n for pgsql-hackers@postgresql.org; Thu, 24 Feb 2022 15:07:40 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 789323200F9C; Thu, 24 Feb 2022 10:07:35 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 24 Feb 2022 10:07:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=YnGtcWBudZQEgZWv8DlkvXePQcpz9P1+fTUBv+ yeX7Y=; b=IikjDSFdc64+hLa8RWa4kGlKat0tcKLuVdq8m6kNTuyen9BPb7ViTG WZpiLvaLmFiXYWqz0z1BgXRi0IAoDs/L9RV7QUsF7s6rNPS/KNNOsobfiSG0zjHF kX1EODrggYf0iOrRXeRBI2bw2ml2b+0DMVEsfaw15eiEed9TKpjbmW8dmCJMylbV HK+SZLVzsqT4AydOJE4hYawbEYccIeF3HHm4yAN2vXSHxYGhPTcLyD1e5kXvFUkM SDaPraYsM0tJHK98f8PXM1eATLkyG7vAc0VdQbEVCHcBmhEYa0j7Q+x2jFCEByyW Tbt1iBd2nN8FAXVDEXhkmBcaNfhdv0bQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=YnGtcWBudZQEgZWv8 DlkvXePQcpz9P1+fTUBv+yeX7Y=; b=BRf5if8Ru2oGoNjJ9ZTaTvjY0XmJ1moiJ LSyLJfkZKsvYTh05CQfTSFi0U6WShB3o0orvRnfRa4oNe/5UDf5pNYEFk1jvlyzU 2MC4V5+Hjt9ylH8YXEHfBAJVMQMiRCs4yviu6BhnFs4l2Pi+s6D7wKq3KNuvJlOd jdDKo3TGgJ4Ia7NxrJsb6AFyoAKx54qIfeRqZLRb82i6CUt5lS6/gsuV30EPiehj IBd0DMYxPyL8vsn3ms6KPnoxO8ETWsu41dqQIG0uVt0+AGv54vp7CgzBLXY5ewEC hceiOz/3DieWa1BcLSw0b55RfUYiagutkcliYiTpUXr2dtnaddsgg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrledvgdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepveffjefhuefgveeivdfffedugfejieetveehtdefleeiteetiedviedulefg gfegnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdgu vg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Feb 2022 10:07:34 -0500 (EST) Date: Thu, 24 Feb 2022 07:00:33 -0800 From: Andres Freund To: Peter Eisentraut Cc: pgsql-hackers , Andrew Dunstan , Daniel Gustafsson , Tom Lane , Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?= Subject: Re: Readd use of TAP subtests Message-ID: <20220224150033.5lql2lkiv7y5kkme@alap3.anarazel.de> References: <9878e1e2-2ce3-6df0-3498-07d967534f5e@enterprisedb.com> <87zgpbnr59.fsf@wibble.ilmari.org> <6131CFD1-EC47-41ED-999E-AB28B40DDEAA@yesql.se> <87wnkfnq9m.fsf@wibble.ilmari.org> <7e67b831-9eae-cd19-c96c-c1e59d916498@dunslane.net> <87tufjnodg.fsf@wibble.ilmari.org> <3662434.1638984660@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-02-24 11:16:03 +0100, Peter Eisentraut wrote: > Now that we have switched everything to done_testing(), the subtests feature > isn't that relevant anymore, but it might still be useful to get better > output when running with PROVE_FLAGS=--verbose. I've incidentally played with subtests yesterdays, when porting src/interfaces/libpq/test/regress.pl to a tap test. Unfortunately it seems that subtests aren't actually specified in the tap format, and that different libraries generate different output formats. The reason this matters somewhat is that meson's testrunner can parse tap and give nicer progress / error reports. But since subtests aren't in the spec it can't currently parse them... Open issue since 2015: https://github.com/TestAnything/Specification/issues/2 The perl ecosystem is so moribund :(. > t/001_basic.pl .. > # Subtest: vacuumlo --help > ok 1 - exit code 0 > ok 2 - goes to stdout > ok 3 - nothing to stderr > 1..3 It's clearly better. We can approximate some of it by using is_deeply() and comparing exit, stdout, stderr at once. Particularly for helpers like program_help() that are used in a lot of places. Greetings, Andres Freund