Move Perl test modules to a better namespace

Andrew Dunstan <andrew@dunslane.net>

Commit: b3b4d8e68ae83f432f43f035c7eb481ef93e1583
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2021-10-24T14:28:19Z
Releases: 15.0
Move Perl test modules to a better namespace

The five modules in our TAP test framework all had names in the top
level namespace. This is unwise because, even though we're not
exporting them to CPAN, the names can leak, for example if they are
exported by the RPM build process. We therefore move the modules to the
PostgreSQL::Test namespace. In the process PostgresNode is renamed to
Cluster, and TestLib is renamed to Utils. PostgresVersion becomes simply
PostgreSQL::Version, to avoid possible confusion about what it's the
version of.

Discussion: https://postgr.es/m/aede93a4-7d92-ef26-398f-5094944c2504@dunslane.net

Reviewed by Erik Rijkers and Michael Paquier

Files

PathChange+/−
contrib/amcheck/t/001_verify_heapam.pl modified +3 −3
contrib/amcheck/t/002_cic.pl modified +3 −3
contrib/amcheck/t/003_cic_2pc.pl modified +3 −3
contrib/auto_explain/t/001_auto_explain.pl modified +3 −3
contrib/bloom/t/001_wal.pl modified +4 −4
contrib/oid2name/t/001_basic.pl modified +1 −1
contrib/test_decoding/t/001_repl_stats.pl modified +3 −3
contrib/vacuumlo/t/001_basic.pl modified +1 −1
src/bin/initdb/t/001_initdb.pl modified +3 −3
src/bin/pg_amcheck/t/001_basic.pl modified +1 −1
src/bin/pg_amcheck/t/002_nonesuch.pl modified +3 −3
src/bin/pg_amcheck/t/003_check.pl modified +4 −4
src/bin/pg_amcheck/t/004_verify_heapam.pl modified +3 −3
src/bin/pg_amcheck/t/005_opclass_damage.pl modified +3 −3
src/bin/pg_archivecleanup/t/010_pg_archivecleanup.pl modified +2 −2
src/bin/pg_basebackup/t/010_pg_basebackup.pl modified +9 −9
src/bin/pg_basebackup/t/020_pg_receivewal.pl modified +3 −3
src/bin/pg_basebackup/t/030_pg_recvlogical.pl modified +3 −3
src/bin/pgbench/t/001_pgbench_with_server.pl modified +7 −7
src/bin/pgbench/t/002_pgbench_no_server.pl modified +2 −2
src/bin/pg_checksums/t/001_basic.pl modified +1 −1
src/bin/pg_checksums/t/002_actions.pl modified +4 −4
src/bin/pg_config/t/001_pg_config.pl modified +1 −1
src/bin/pg_controldata/t/001_pg_controldata.pl modified +3 −3
src/bin/pg_ctl/t/001_start_stop.pl modified +7 −7
src/bin/pg_ctl/t/002_status.pl modified +4 −4
src/bin/pg_ctl/t/003_promote.pl modified +6 −6
src/bin/pg_ctl/t/004_logrotate.pl modified +3 −3
src/bin/pg_dump/t/001_basic.pl modified +3 −3
src/bin/pg_dump/t/002_pg_dump.pl modified +5 −5
src/bin/pg_dump/t/003_pg_dump_with_server.pl modified +4 −4
src/bin/pg_dump/t/010_dump_connstr.pl modified +8 −8
src/bin/pg_resetwal/t/001_basic.pl modified +3 −3
src/bin/pg_resetwal/t/002_corrupted.pl modified +3 −3
src/bin/pg_rewind/t/001_basic.pl modified +1 −1
src/bin/pg_rewind/t/002_databases.pl modified +1 −1
src/bin/pg_rewind/t/003_extrafiles.pl modified +1 −1
src/bin/pg_rewind/t/004_pg_xlog_symlink.pl modified +2 −2
src/bin/pg_rewind/t/005_same_timeline.pl modified +1 −1
src/bin/pg_rewind/t/006_options.pl modified +3 −3
src/bin/pg_rewind/t/007_standby_source.pl modified +5 −5
src/bin/pg_rewind/t/008_min_recovery_point.pl modified +6 −6
src/bin/pg_rewind/t/RewindTest.pm modified +7 −7
src/bin/pg_test_fsync/t/001_basic.pl modified +1 −1
src/bin/pg_test_timing/t/001_basic.pl modified +1 −1
src/bin/pg_verifybackup/t/001_basic.pl modified +2 −2
src/bin/pg_verifybackup/t/002_algorithm.pl modified +3 −3
src/bin/pg_verifybackup/t/003_corruption.pl modified +5 −5
src/bin/pg_verifybackup/t/004_options.pl modified +3 −3
src/bin/pg_verifybackup/t/005_bad_manifest.pl modified +3 −3
src/bin/pg_verifybackup/t/006_encoding.pl modified +3 −3
src/bin/pg_verifybackup/t/007_wal.pl modified +3 −3
src/bin/pg_waldump/t/001_basic.pl modified +1 −1
src/bin/psql/t/001_basic.pl modified +3 −3
src/bin/psql/t/010_tab_completion.pl modified +4 −4
src/bin/psql/t/020_cancel.pl modified +5 −5
src/bin/scripts/t/010_clusterdb.pl modified +3 −3
src/bin/scripts/t/011_clusterdb_all.pl modified +3 −3
src/bin/scripts/t/020_createdb.pl modified +3 −3
src/bin/scripts/t/040_createuser.pl modified +3 −3
src/bin/scripts/t/050_dropdb.pl modified +3 −3
src/bin/scripts/t/070_dropuser.pl modified +3 −3
src/bin/scripts/t/080_pg_isready.pl modified +3 −3
src/bin/scripts/t/090_reindexdb.pl modified +4 −4
src/bin/scripts/t/091_reindexdb_all.pl modified +2 −2
src/bin/scripts/t/100_vacuumdb.pl modified +3 −3
src/bin/scripts/t/101_vacuumdb_all.pl modified +2 −2
src/bin/scripts/t/102_vacuumdb_stages.pl modified +2 −2
src/bin/scripts/t/200_connstr.pl modified +3 −3
src/test/authentication/t/001_password.pl modified +4 −4
src/test/authentication/t/002_saslprep.pl modified +3 −3
src/test/kerberos/t/001_auth.pl modified +12 −12
src/test/ldap/t/001_auth.pl modified +12 −12
src/test/modules/brin/t/01_workitems.pl modified +3 −3
src/test/modules/commit_ts/t/001_base.pl modified +3 −3
src/test/modules/commit_ts/t/002_standby.pl modified +4 −4
src/test/modules/commit_ts/t/003_standby_2.pl modified +4 −4
src/test/modules/commit_ts/t/004_restart.pl modified +3 −3
src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl modified +5 −5
src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl modified +4 −4
src/test/modules/test_misc/t/001_constraint_validation.pl modified +3 −3
src/test/modules/test_pg_dump/t/001_base.pl modified +5 −5
src/test/perl/Makefile modified +11 −11
src/test/perl/PostgreSQL/Test/Cluster.pm (from src/test/perl/PostgresNode.pm) renamed +77 −77
src/test/perl/PostgreSQL/Test/RecursiveCopy.pm (from src/test/perl/RecursiveCopy.pm) renamed +6 −6
src/test/perl/PostgreSQL/Test/SimpleTee.pm (from src/test/perl/SimpleTee.pm) renamed +1 −1
src/test/perl/PostgreSQL/Test/Utils.pm (from src/test/perl/TestLib.pm) renamed +11 −11
src/test/perl/PostgreSQL/Version.pm (from src/test/perl/PostgresVersion.pm) renamed +9 −9
src/test/perl/README modified +4 −4
src/test/recovery/t/001_stream_rep.pl modified +5 −5
src/test/recovery/t/002_archiving.pl modified +5 −5
src/test/recovery/t/003_recovery_targets.pl modified +6 −6
src/test/recovery/t/004_timeline_switch.pl modified +7 −7
src/test/recovery/t/005_replay_delay.pl modified +5 −5
src/test/recovery/t/006_logical_decoding.pl modified +3 −3
src/test/recovery/t/007_sync_rep.pl modified +7 −7
src/test/recovery/t/008_fsm_truncation.pl modified +4 −4
src/test/recovery/t/009_twophase.pl modified +4 −4
src/test/recovery/t/010_logical_decoding_timelines.pl modified +4 −4
src/test/recovery/t/011_crash_recovery.pl modified +3 −3
src/test/recovery/t/012_subtransactions.pl modified +4 −4
src/test/recovery/t/013_crash_restart.pl modified +6 −6
src/test/recovery/t/014_unlogged_reinit.pl modified +5 −5
src/test/recovery/t/015_promotion_pages.pl modified +4 −4
src/test/recovery/t/016_min_consistency.pl modified +4 −4
src/test/recovery/t/017_shm.pl modified +6 −6
src/test/recovery/t/018_wal_optimize.pl modified +6 −6
src/test/recovery/t/019_replslot_limit.pl modified +11 −11
src/test/recovery/t/020_archive_status.pl modified +6 −6
src/test/recovery/t/021_row_visibility.pl modified +5 −5
src/test/recovery/t/022_crash_temp_files.pl modified +6 −6
src/test/recovery/t/023_pitr_prepared_xact.pl modified +4 −4
src/test/recovery/t/024_archive_recovery.pl modified +4 −4
src/test/recovery/t/025_stuck_on_old_timeline.pl modified +8 −8
src/test/recovery/t/026_overwrite_contrecord.pl modified +4 −4
src/test/regress/pg_regress.c modified +1 −1
src/test/ssl/t/001_ssltests.pl modified +3 −3
src/test/ssl/t/002_scram.pl modified +3 −3
src/test/ssl/t/SSLServer.pm modified +2 −2
src/test/subscription/t/001_rep_changes.pl modified +4 −4
src/test/subscription/t/002_types.pl modified +4 −4
src/test/subscription/t/003_constraints.pl modified +4 −4
src/test/subscription/t/004_sync.pl modified +4 −4
src/test/subscription/t/005_encoding.pl modified +4 −4
src/test/subscription/t/006_rewrite.pl modified +4 −4
src/test/subscription/t/007_ddl.pl modified +4 −4
src/test/subscription/t/008_diff_schema.pl modified +4 −4
src/test/subscription/t/009_matviews.pl modified +4 −4
src/test/subscription/t/010_truncate.pl modified +4 −4
src/test/subscription/t/011_generated.pl modified +4 −4
src/test/subscription/t/012_collation.pl modified +4 −4
src/test/subscription/t/013_partition.pl modified +5 −5
src/test/subscription/t/014_binary.pl modified +4 −4
src/test/subscription/t/015_stream.pl modified +4 −4
src/test/subscription/t/016_stream_subxact.pl modified +4 −4
src/test/subscription/t/017_stream_ddl.pl modified +4 −4
src/test/subscription/t/018_stream_subxact_abort.pl modified +4 −4
src/test/subscription/t/019_stream_subxact_ddl_abort.pl modified +4 −4
src/test/subscription/t/020_messages.pl modified +4 −4
src/test/subscription/t/021_twophase.pl modified +4 −4
src/test/subscription/t/022_twophase_cascade.pl modified +5 −5
src/test/subscription/t/023_twophase_stream.pl modified +4 −4
src/test/subscription/t/024_add_drop_pub.pl modified +4 −4
src/test/subscription/t/100_bugs.pl modified +9 −9