Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ilcaW-0007c6-8V for pgsql-hackers@arkaria.postgresql.org; Sun, 29 Dec 2019 17:42:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ilcaU-00019C-F6 for pgsql-hackers@arkaria.postgresql.org; Sun, 29 Dec 2019 17:42:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ilcaU-000195-5y for pgsql-hackers@lists.postgresql.org; Sun, 29 Dec 2019 17:42:46 +0000 Received: from courriel.mines-paristech.fr ([77.158.173.149] helo=antispam-1.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ilcaN-0006qw-66 for pgsql-hackers@lists.postgresql.org; Sun, 29 Dec 2019 17:42:45 +0000 Received: from smtp-5.mines-paristech.fr (smtp.mines-paristech.fr [77.158.173.146]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id 958E456569; Sun, 29 Dec 2019 18:42:37 +0100 (CET) Received: from pseudo (53.237.219.88.rev.sfr.net [88.219.237.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-5.mines-paristech.fr (Postfix) with ESMTPSA id 5D9FA20143; Sun, 29 Dec 2019 18:42:37 +0100 (CET) Date: Sun, 29 Dec 2019 18:42:36 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Tom Lane cc: PostgreSQL Developers Subject: Re: TAP testing for psql's tab completion code In-Reply-To: <28327.1577639622@sss.pgh.pa.us> Message-ID: References: <10967.1577562752@sss.pgh.pa.us> <7904.1577573534@sss.pgh.pa.us> <28327.1577639622@sss.pgh.pa.us> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: 0 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrvdeffedguddtgecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvufgjkfhffgggtgesthdtredttdervdenucfhrhhomhephfgrsghivghnucevqffgnffjqfcuoegtohgvlhhhohestghrihdrvghnshhmphdrfhhrqeenucfkphepkeekrddvudelrddvfeejrdehfeenucfrrghrrghmpehmohguvgepshhmthhpohhuth X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Tom, >> If you have to install IO::Pty anyway, ISTM you can also install Expect. > > My point is precisely that buildfarm owners *won't* have to install > IO::Pty; it comes in a default Perl install almost everywhere. > I'm afraid that's not true of Expect. Hmmm. That is a good argument. > Now in both cases we could avoid raising the bar by allowing the > script to "skip" if the module isn't there. Yep. >> IO::Pty documentation says that it is "mainly used by Expect", which is a >> clue that IO::Pty is not much better than Expect as a dependency. > > You're just guessing, not looking at facts on the ground. [...] I'm not guessing what the documentation says:-) But for the consequences, indeed I was guessing. > Well, actually, it's possible that on some of these boxes it was pulled > in by the IPC::Run package, Ah, you are guessing right, IPC::Run requires IO::Pty, so it should be available everywhere the buildfarm scripts already run. Maybe. I've looked at your PoC implementation: I'm not fan of relying on the configure stuff ("with_readline"), in my Expect version I tested if history capabilities are available from psql itself. I did not paid attention not to overwrite the psql history file, though. For the psql coverage patch, I was more ambitious and needed less assumption about the configuration, I only forced -X. -- Fabien.