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 1nN0bN-0007uq-0I for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Feb 2022 22:59:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nN0aq-0007h7-9d for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Feb 2022 22:58:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nN0aq-0007dn-0S for pgsql-hackers@lists.postgresql.org; Wed, 23 Feb 2022 22:58:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nN0an-0001WB-FU for pgsql-hackers@postgresql.org; Wed, 23 Feb 2022 22:58:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 21NMwbbG1261839; Wed, 23 Feb 2022 17:58:37 -0500 From: Tom Lane To: Peter Eisentraut cc: Andres Freund , pgsql-hackers@postgresql.org Subject: Re: convert libpq uri-regress tests to tap test In-reply-to: References: <20220223203031.ezrd73ohvjgfksow@alap3.anarazel.de> Comments: In-reply-to Peter Eisentraut message dated "Wed, 23 Feb 2022 23:53:17 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1261837.1645657117.1@sss.pgh.pa.us> Date: Wed, 23 Feb 2022 17:58:37 -0500 Message-ID: <1261838.1645657117@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 23.02.22 21:30, Andres Freund wrote: >> Where would we want that test to live? Right now we have the slightly odd >> convention that some tap tests live in src/test/{misc,modules,...}. But >> e.g. frontend binary ones are below src/bin/. > libpq TAP tests should be in src/interfaces/libpq/t/. > I think there were issues that the build farm wouldn't pick up a test > located there, but that should be fixed rather than worked around. That's failing to account for the fact that a libpq test can't really be a pure-perl TAP test; you need some C code to drive the library. I don't agree with intermixing such code with libpq itself, independently of any buildsystem issues (which there might well be). So I think the design of putting such tests under src/modules is fine. regards, tom lane