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: Sun, 29 Dec 2019 12:53:11 -0500
Message-ID: <30270.1577641991@sss.pgh.pa.us> (raw)
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>
Fabien COELHO <coelho@cri.ensmp.fr> writes:
> 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.
No, I disagree with that. If configure thinks it built with readline,
and then the actual binary acts like it doesn't have readline, that's
a bug that we'd like the tests to detect. We don't want the test
silently deciding that things are OK if the first thing it tries
doesn't work. (For comparison, the SSL tests are also enabled by
configure's opinion not some other way -- I was mostly copying how
that works.)
> For the psql coverage patch, I was more ambitious and needed less
> assumption about the configuration, I only forced -X.
I mainly just duplicated the environment set up by PostgresNode::psql
as much as it seemed reasonable to. The -At options are kind of
irrelevant for what we're going to test here, probably, but why not
keep the default behavior the same? I did drop -q since that
suppresses prompting, and we probably want to test prompt.c using
this infrastructure.
regards, tom lane
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: <30270.1577641991@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> <alpine.DEB.2.21.1912291816440.14206@pseudo> <30270.1577641991@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