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 1nNDHw-0000Hf-Hj for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 12:32:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nNDHu-0007bM-U3 for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 12:32:02 +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 1nNDHu-0007bB-KI for pgsql-hackers@lists.postgresql.org; Thu, 24 Feb 2022 12:32:02 +0000 Received: from [66.111.4.28] (helo=out4-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNDHl-00009w-NU for pgsql-hackers@postgresql.org; Thu, 24 Feb 2022 12:32:01 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3EB415C13BB; Thu, 24 Feb 2022 07:31:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 24 Feb 2022 07:31:42 -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=5ECGhvfnJIkWcsw+kdeO1R35+AaWwGWOXhk0sLB2B PI=; b=ShecpOcwAzLHYZIgRzW2Mh/CfLNy1jAOAZDeTf3ey7792hiysB9cSCZ+2 MtUVb6xRUrFeZy8gP/EkaKulTcPp6/wpoZvhDQ/4IG2Z89iWnYEWWXec8W6Kk0j1 x1d1FS5REiSU8To9h22cZYc5+6k1j1+aI8rCfX3YJO/00qOOtVveZXB+ElJNvjXV N/oCY/DjAAhuWCwQd3CLy0Pn8at6mhXZsB8TagMOrs33WXaN49iHqM+Zg3MfS8Z8 9xOQE1ZqTVx97p07TtF3hXT1xNyvPxeXbHpjOeKR8rDjOdgYUJxUDwiYmu6wV+iS h23fjbJ3VQnGhzm8ktlHztcpcaHJA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrledvgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeefjeegheetuefhveevudel ueeftdejteeiffetvdduhfdtieefgfeutedtveeggfenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Feb 2022 07:31:41 -0500 (EST) Message-ID: Date: Thu, 24 Feb 2022 13:31:40 +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: convert libpq uri-regress tests to tap test Content-Language: en-US To: Tom Lane Cc: Andres Freund , pgsql-hackers@postgresql.org References: <20220223203031.ezrd73ohvjgfksow@alap3.anarazel.de> <1261838.1645657117@sss.pgh.pa.us> <4f4c04c2-f23c-6668-1b24-224fc6478bfd@enterprisedb.com> <1276236.1645667561@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: <1276236.1645667561@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.28 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 24.02.22 02:52, Tom Lane wrote: > Peter Eisentraut writes: >> On 23.02.22 23:58, Tom Lane wrote: >>> Peter Eisentraut writes: >>>> libpq TAP tests should be in src/interfaces/libpq/t/. > >>> 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. > >> Such things could be put under src/interfaces/libpq/test, or some other >> subdirectory. We already have src/interfaces/ecpg/test. > > OK, but then the TAP scripts are under src/interfaces/libpq/test/t, > which isn't what you said. I have no great objection to moving > src/test/modules/libpq_pipeline/ to src/interfaces/libpq/test/, > though, as long as the buildfarm will cope. I think the TAP scripts should be in src/interfaces/libpq/t/, as usual. The supporting code snippets could live in some other directory under src/interfaces/libpq/, which might be called "test" or something else, not that important. I think we should pick a layout that is proper and future-proof and then adjust the buildfarm client as necessary. The issue of writing libpq-specific tests has come up a few times recently; I think it would be worth finding a proper solution to this that would facilitate that work in the future.