From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow pg_regress.c wrappers to postprocess test result files.
Date: Mon, 11 Jan 2021 19:12:41 +0000
Message-ID: <E1kz2cL-0006Ve-T5@gemulon.postgresql.org> (raw)
Allow pg_regress.c wrappers to postprocess test result files.
Add an optional callback to regression_main() that, if provided,
is invoked on each test output file before we try to compare it
to the expected-result file.
The main and isolation test programs don't need this (yet).
In pg_regress_ecpg, add a filter that eliminates target-host
details from "could not connect" error reports. This filter
doesn't do anything as of this commit, but it will be needed
by the next one.
In the long run we might want to provide some more general,
perhaps pattern-based, filtering mechanism for test output.
For now, this will solve the immediate problem.
Discussion: https://postgr.es/m/BN6PR05MB3492948E4FD76C156E747E8BC9160@BN6PR05MB3492.namprd05.prod.outlook.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/800d93f314b0f7c10193e48b259f87800cb85d84
Modified Files
--------------
src/interfaces/ecpg/test/pg_regress_ecpg.c | 95 +++++++++++++++++++++++++++---
src/test/isolation/isolation_main.c | 5 +-
src/test/regress/pg_regress.c | 29 +++++----
src/test/regress/pg_regress.h | 24 ++++++--
src/test/regress/pg_regress_main.c | 5 +-
5 files changed, 134 insertions(+), 24 deletions(-)
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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Allow pg_regress.c wrappers to postprocess test result files.
In-Reply-To: <E1kz2cL-0006Ve-T5@gemulon.postgresql.org>
References: <E1kz2cL-0006Ve-T5@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