pgsql: Add custom filtering rules to the TAP tests of pg_upgrade - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Add custom filtering rules to the TAP tests of pg_upgrade
Date
Msg-id E1pA2ea-000cfJ-6z@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add custom filtering rules to the TAP tests of pg_upgrade

002_pg_upgrade.pl gains support for a new environment variable called
"filter_rules", that can be used to point to a file that includes a
set of custom regular expressions that would be applied to the dumps of
the origin and target clusters when doing a cross-version test (aka when
defining olddump and oldinstall), to give the possibility to reshape
dynamically the dumps in the same way as the internals of the buildfarm
code so as the tests are able to pass in scenarios where one expects
them to even if pg_dump generates slightly-different outputs depending
on the versions involved.

This option is not used when pg_upgrade runs with the same version for
the origin and target clusters, and it is the last piece I see as
required to be able to plug-in more efficiently the TAP tests of
pg_upgrade with the buildfarm or just a CI.

Author: Anton A. Melnikov
Discussion: https://postgr.es/m/49f389ba-95ce-8a9b-09ae-f60650c0e7c7@inbox.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9814ff550046f825b751803191b29a2fbbc79283

Modified Files
--------------
src/bin/pg_upgrade/TESTING             | 15 +++++++++++++++
src/bin/pg_upgrade/t/002_pg_upgrade.pl | 25 +++++++++++++++++++++++++
2 files changed, 40 insertions(+)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix incorrect copy-pasto in error message of pg_waldump.c
Next
From: Peter Geoghegan
Date:
Subject: pgsql: Remove overzealous MultiXact freeze assertion.