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 1nNaog-0003JL-J8 for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Feb 2022 13:39:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nNaof-0000Rz-EQ for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Feb 2022 13:39:25 +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 1nNaof-0000Rq-5F for pgsql-hackers@lists.postgresql.org; Fri, 25 Feb 2022 13:39:25 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNaob-0004h2-0h for pgsql-hackers@postgresql.org; Fri, 25 Feb 2022 13:39:24 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 4C4753201FEA; Fri, 25 Feb 2022 08:39:18 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 25 Feb 2022 08:39:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=P4qvFL2YnjmxcMBxXrIN4Af/fGjHualcimxiROjGb lA=; b=MdTk01gAoM02rVP+IZJjmhNiJl4vDLXqEkk7ZKwjbe5rau9tF3sutit6B 0wCwUERBAk2nEkA703mDZrCJLsZCD4ZnbNXnS+VSpG3dXOBhEcsp3VZi53RA4MYD pcuQ793gU9U35nvggMxrXy5in0CNF3Mq3zCsv/Flxb8mZz8nU83fbYOOyXpfHUmk ZdP8AXnIQKuVLYh8GiVh1PrlmTEa5qOzr6jyROuOextKkmM+j749yB1d2kou/PVm nA2pxRrlNPyhJE829cbyDcmwF3LyuVNC/chndPhiZVwFSQ/C7MbsmMjJ9cl2/R6x aAtFW0ssqrCK0kb4z0vQvmSoqEZuw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrleeggdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeefjeegheetuefhveevudel ueeftdejteeiffetvdduhfdtieefgfeutedtveeggfenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Feb 2022 08:39:16 -0500 (EST) Message-ID: Date: Fri, 25 Feb 2022 14:39:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: Readd use of TAP subtests Content-Language: en-US To: Andres Freund Cc: pgsql-hackers , Andrew Dunstan , Daniel Gustafsson , Tom Lane , =?UTF-8?Q?Dagfinn_Ilmari_Manns=c3=a5ker?= 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> <20220224150033.5lql2lkiv7y5kkme@alap3.anarazel.de> From: Peter Eisentraut In-Reply-To: <20220224150033.5lql2lkiv7y5kkme@alap3.anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 24.02.22 16:00, Andres Freund wrote: > 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... Ok that's good to know. What exactly happens when it tries to parse them? Does it not count them or does it fail somehow? The way the output is structured t/001_basic.pl .. # Subtest: vacuumlo --help ok 1 - exit code 0 ok 2 - goes to stdout ok 3 - nothing to stderr 1..3 ok 1 - vacuumlo --help it appears that it should be able to parse it nonetheless and should just count the non-indented lines.