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

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Convert src/interfaces/libpq/test to a tap test.
Date: 2022-02-27 01:13:47
Message-ID: E1nO88B-0003qB-25@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Dean Rasheed 2022-02-27 10:19:06 pgsql: Apply auto-vectorization to the inner loop of div_var_fast().
Previous Message Andres Freund 2022-02-27 00:46:24 pgsql: Fix use of wrong variable in pg_receivewal's get_destination_dir