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

Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> We've often talked about the problem that we have no regression test
>> coverage for psql's tab completion code.  I got interested in this
>> issue while messing with the filename completion logic therein [1],
>> so here is a draft patch that adds some testing for that code.

> After you raised the issue, I submitted something last August, which did 
> not attract much attention.
>    https://commitfest.postgresql.org/26/2262/
> It covers some tab-completion stuff. It uses Expect for the interactive 
> stuff (tab completion, \h, ...).

Now that you mention it, I seem to recall looking at that and not being
happy with the additional dependency on Expect.  Expect is *not* a
standard module; on the machines I have handy, the only one in which it
appears in the default Perl installation is macOS.  (Huh, what's Apple
doing out ahead of the pack?)  I'm pretty sure that Expect also relies on
IO::Pty, so it's a strictly worse dependency than what I've got here.

Can we recast what you did into something like this patch's methods?

			regards, tom lane





view thread (12+ messages)  latest in thread

Message-ID: <7904.1577573534@sss.pgh.pa.us>
Permalink:  ../7904.1577573534@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7904.1577573534@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, coelho@cri.ensmp.fr
  Subject: Re: TAP testing for psql's tab completion code
  In-Reply-To: <7904.1577573534@sss.pgh.pa.us>
  References: <10967.1577562752@sss.pgh.pa.us> <alpine.DEB.2.21.1912282212060.24861@pseudo> <7904.1577573534@sss.pgh.pa.us>

* 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