Support new perl module namespace in stable branches
authorAndrew Dunstan
Thu, 21 Apr 2022 11:39:25 +0000 (07:39 -0400)
committerAndrew Dunstan
Thu, 21 Apr 2022 13:01:26 +0000 (09:01 -0400)
commitb235d41d9646c531864ecc680fd9ec5da9217051
tree35496686b2e8fab2b04e296db23a82338b8689cb
parent89d349b0a0239504325e5f63755f3bc1e1742478
Support new perl module namespace in stable branches

Commit b3b4d8e68a moved our perl test modules to a better namespace
structure, but this has made life hard for people wishing to backpatch
improvements in the TAP tests. Here we alleviate much of that difficulty
by implementing the new module names on top of the old modules, mostly
by using a little perl typeglob aliasing magic, so that we don't have a
dual maintenance burden. This should work both for the case where a new
test is backpatched and the case where a fix to an existing test that
uses the new namespace is backpatched.

Reviewed by Michael Paquier

Per complaint from Andres Freund

Discussion: https://postgr.es/m/20220418141530[email protected]

Applied to branches 10 through 14
src/test/perl/PostgreSQL/Test/Cluster.pm [new file with mode: 0644]
src/test/perl/PostgreSQL/Test/Utils.pm [new file with mode: 0644]
src/test/perl/PostgresNode.pm
src/test/perl/TestLib.pm