pgsql: pg_regress: Emit TAP compliant output

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_regress: Emit TAP compliant output
Date: 2023-03-31 11:02:09
Message-ID: E1piCWG-000dU0-8R@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_regress: Emit TAP compliant output

This converts pg_regress output format to emit TAP compliant output
while keeping it as human readable as possible for use without TAP
test harnesses. As verbose harness related information isn't really
supported by TAP this also reduces the verbosity of pg_regress runs
which makes scrolling through log output in buildfarm/CI runs a bit
easier as well.

As the meson TAP parser conumes whitespace, the leading indentation
for differentiating parallel tests from sequential tests has been
changed to a single character prefix.

This patch has been around for an extended period of time, reviewers
listed below may have been involved in reviewing a version quite
different from the version in this commit. The original idea for
this patch was a hacking session with Jinbao Chen.

TAP format testing is also enabled in meson as of this.

Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Reviewed-by: Nikolay Shaplov <dhyan(at)nataraj(dot)su>
Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
Reviewed-by: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Discussion: https://postgr.es/m/BD4B107D-7E53-4794-ACBA-275BEB4327C9@yesql.se
Discussion: https://postgr.es/m/20220221164736.rq3ornzjdkmwk2wo@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/558fff0adfa02b6db6b003c64cca75e55f5187e2

Modified Files
--------------
doc/src/sgml/regress.sgml | 8 +-
meson.build | 1 +
src/Makefile.global.in | 14 +-
src/test/regress/pg_regress.c | 564 +++++++++++++++++++++++-------------------
4 files changed, 325 insertions(+), 262 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-03-31 14:08:51 pgsql: Ensure acquire_inherited_sample_rows sets its output parameters.
Previous Message Alvaro Herrera 2023-03-31 10:58:57 pgsql: Move ExecEvalJsonConstructor new function to a more natural plac