pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Convert src/interfaces/libpq/test to a tap test.
Date: Sun, 27 Feb 2022 01:13:47 +0000
Message-ID: <E1nO88B-0003qB-25@gemulon.postgresql.org> (raw)

Convert src/interfaces/libpq/test to a tap test.

The old form of the test needed a bunch of custom infrastructure. These days
tap tests provide the necessary infrastructure to do better.

We discussed whether to move this test to src/test/modules, alongside
libpq_pipeline, but concluded that the opposite direction would be
better. libpq_pipeline will be moved at a later date, once the buildfarm and
msvc build infrastructure is ready for it.

The invocation of the tap test will be added in the next commit. It involves
just enough buildsystem changes to be worth commiting separately. Can't happen
the other way round because prove errors out when invoked without tests.

Discussion: https://postgr.es/m/20220223203031.ezrd73ohvjgfksow@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ac25173cdbc40b310a7e72d9557c45a699f1f7b3

Modified Files
--------------
src/interfaces/libpq/t/001_uri.pl      | 244 +++++++++++++++++++++++++++++++++
src/interfaces/libpq/test/.gitignore   |   2 -
src/interfaces/libpq/test/Makefile     |   7 +-
src/interfaces/libpq/test/README       |   7 -
src/interfaces/libpq/test/expected.out | 171 -----------------------
src/interfaces/libpq/test/regress.in   |  57 --------
src/interfaces/libpq/test/regress.pl   |  65 ---------
7 files changed, 246 insertions(+), 307 deletions(-)



Message-ID: <E1nO88B-0003qB-25@gemulon.postgresql.org>
Permalink:  ../E1nO88B-0003qB-25@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nO88B-0003qB-25@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Convert src/interfaces/libpq/test to a tap test.
  In-Reply-To: <E1nO88B-0003qB-25@gemulon.postgresql.org>
  References: <E1nO88B-0003qB-25@gemulon.postgresql.org>

* 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