pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: TAP testing for psql's tab completion code
Date: Sun, 29 Dec 2019 18:42:36 +0100 (CET)
Message-ID: <alpine.DEB.2.21.1912291816440.14206@pseudo> (raw)
In-Reply-To: <28327.1577639622@sss.pgh.pa.us>
References: <10967.1577562752@sss.pgh.pa.us>
	<alpine.DEB.2.21.1912282212060.24861@pseudo>
	<7904.1577573534@sss.pgh.pa.us>
	<alpine.DEB.2.21.1912290748020.889@pseudo>
	<28327.1577639622@sss.pgh.pa.us>


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.





view thread (12+ messages)  latest in thread

Message-ID: <alpine.DEB.2.21.1912291816440.14206@pseudo>
Permalink:  ../alpine.DEB.2.21.1912291816440.14206@pseudo/
Also on:    postgresql.org/message-id/alpine.DEB.2.21.1912291816440.14206@pseudo

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: coelho@cri.ensmp.fr, tgl@sss.pgh.pa.us
  Subject: Re: TAP testing for psql's tab completion code
  In-Reply-To: <alpine.DEB.2.21.1912291816440.14206@pseudo>
  References: <10967.1577562752@sss.pgh.pa.us> <alpine.DEB.2.21.1912282212060.24861@pseudo> <7904.1577573534@sss.pgh.pa.us> <alpine.DEB.2.21.1912290748020.889@pseudo> <28327.1577639622@sss.pgh.pa.us> <alpine.DEB.2.21.1912291816440.14206@pseudo>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox