From c31da3f961b9494cb8f8f351d8a4cf7f22557062 Mon Sep 17 00:00:00 2001 From: David Steele Date: Fri, 12 May 2017 16:43:04 -0400 Subject: [PATCH] Moved test and env modules to new directories to avoid namespace conflicts with common tests. --- .travis.yml | 12 ++++----- doc/xml/release.xml | 4 +++ test/lib/pgBackRestTest/Common/DefineTest.pm | 27 ++++++++++++------- test/lib/pgBackRestTest/Common/FileTest.pm | 6 ++--- test/lib/pgBackRestTest/Common/RunTest.pm | 3 ++- .../{Config => Env}/ConfigEnvTest.pm | 2 +- .../{Expire => Env}/ExpireEnvTest.pm | 6 ++--- .../{Common => Env}/Host/HostBackupTest.pm | 6 ++--- .../{Common => Env}/Host/HostBaseTest.pm | 2 +- .../{Common => Env}/Host/HostDbCommonTest.pm | 8 +++--- .../Host/HostDbSyntheticTest.pm | 10 +++---- .../{Common => Env}/Host/HostDbTest.pm | 10 +++---- .../Env/EnvHostTest.pm => Env/HostEnvTest.pm} | 22 +++++++-------- .../{ => Module}/Archive/ArchiveGetTest.pm | 6 ++--- .../{ => Module}/Archive/ArchivePushTest.pm | 6 ++--- .../Archive/ArchivePushUnitTest.pm | 8 +++--- .../{ => Module}/Archive/ArchiveStopTest.pm | 6 ++--- .../{ => Module}/Archive/ArchiveUnitTest.pm | 6 ++--- .../{ => Module}/Backup/BackupInfoUnitTest.pm | 8 +++--- .../{ => Module}/Backup/BackupUnitTest.pm | 6 ++--- .../Common/CommonIniTest.pm} | 2 +- .../{ => Module}/Config/ConfigConfigTest.pm | 4 +-- .../{ => Module}/Config/ConfigOptionTest.pm | 4 +-- .../{ => Module}/Config/ConfigUnitTest.pm | 4 +-- .../{ => Module}/Expire/ExpireExpireTest.pm | 12 ++++----- .../{ => Module}/File/FileCommonTest.pm | 4 +-- .../{ => Module}/File/FileCompressTest.pm | 4 +-- .../{ => Module}/File/FileCopyTest.pm | 4 +-- .../{ => Module}/File/FileExistsTest.pm | 4 +-- .../{ => Module}/File/FileHashTest.pm | 4 +-- .../{ => Module}/File/FileLinkTest.pm | 4 +-- .../{ => Module}/File/FileListTest.pm | 4 +-- .../{ => Module}/File/FileManifestTest.pm | 4 +-- .../{ => Module}/File/FileMoveTest.pm | 4 +-- .../{ => Module}/File/FileOwnerTest.pm | 4 +-- .../{ => Module}/File/FilePathCreateTest.pm | 4 +-- .../{ => Module}/File/FileRemoveTest.pm | 4 +-- .../{ => Module}/File/FileStatTest.pm | 4 +-- .../{ => Module}/File/FileUnitTest.pm | 4 +-- .../{ => Module}/File/FileWaitTest.pm | 4 +-- .../{ => Module}/Full/FullRealTest.pm | 12 ++++----- .../{ => Module}/Full/FullSyntheticTest.pm | 8 +++--- .../{ => Module}/Help/HelpHelpTest.pm | 4 +-- .../{ => Module}/Info/InfoUnitTest.pm | 12 ++++----- .../{ => Module}/Stanza/StanzaCreateTest.pm | 6 ++--- .../{ => Module}/Stanza/StanzaUnitTest.pm | 8 +++--- .../{ => Module}/Stanza/StanzaUpgradeTest.pm | 6 ++--- 47 files changed, 160 insertions(+), 146 deletions(-) rename test/lib/pgBackRestTest/{Config => Env}/ConfigEnvTest.pm (99%) rename test/lib/pgBackRestTest/{Expire => Env}/ExpireEnvTest.pm (99%) rename test/lib/pgBackRestTest/{Common => Env}/Host/HostBackupTest.pm (99%) rename test/lib/pgBackRestTest/{Common => Env}/Host/HostBaseTest.pm (98%) rename test/lib/pgBackRestTest/{Common => Env}/Host/HostDbCommonTest.pm (99%) rename test/lib/pgBackRestTest/{Common => Env}/Host/HostDbSyntheticTest.pm (99%) rename test/lib/pgBackRestTest/{Common => Env}/Host/HostDbTest.pm (98%) rename test/lib/pgBackRestTest/{Common/Env/EnvHostTest.pm => Env/HostEnvTest.pm} (93%) rename test/lib/pgBackRestTest/{ => Module}/Archive/ArchiveGetTest.pm (97%) rename test/lib/pgBackRestTest/{ => Module}/Archive/ArchivePushTest.pm (99%) rename test/lib/pgBackRestTest/{ => Module}/Archive/ArchivePushUnitTest.pm (99%) rename test/lib/pgBackRestTest/{ => Module}/Archive/ArchiveStopTest.pm (97%) rename test/lib/pgBackRestTest/{ => Module}/Archive/ArchiveUnitTest.pm (98%) rename test/lib/pgBackRestTest/{ => Module}/Backup/BackupInfoUnitTest.pm (95%) rename test/lib/pgBackRestTest/{ => Module}/Backup/BackupUnitTest.pm (98%) rename test/lib/pgBackRestTest/{Info/InfoIniUnitTest.pm => Module/Common/CommonIniTest.pm} (99%) rename test/lib/pgBackRestTest/{ => Module}/Config/ConfigConfigTest.pm (99%) rename test/lib/pgBackRestTest/{ => Module}/Config/ConfigOptionTest.pm (99%) rename test/lib/pgBackRestTest/{ => Module}/Config/ConfigUnitTest.pm (97%) rename test/lib/pgBackRestTest/{ => Module}/Expire/ExpireExpireTest.pm (96%) rename test/lib/pgBackRestTest/{ => Module}/File/FileCommonTest.pm (97%) rename test/lib/pgBackRestTest/{ => Module}/File/FileCompressTest.pm (96%) rename test/lib/pgBackRestTest/{ => Module}/File/FileCopyTest.pm (98%) rename test/lib/pgBackRestTest/{ => Module}/File/FileExistsTest.pm (95%) rename test/lib/pgBackRestTest/{ => Module}/File/FileHashTest.pm (96%) rename test/lib/pgBackRestTest/{ => Module}/File/FileLinkTest.pm (95%) rename test/lib/pgBackRestTest/{ => Module}/File/FileListTest.pm (97%) rename test/lib/pgBackRestTest/{ => Module}/File/FileManifestTest.pm (99%) rename test/lib/pgBackRestTest/{ => Module}/File/FileMoveTest.pm (97%) rename test/lib/pgBackRestTest/{ => Module}/File/FileOwnerTest.pm (97%) rename test/lib/pgBackRestTest/{ => Module}/File/FilePathCreateTest.pm (96%) rename test/lib/pgBackRestTest/{ => Module}/File/FileRemoveTest.pm (96%) rename test/lib/pgBackRestTest/{ => Module}/File/FileStatTest.pm (96%) rename test/lib/pgBackRestTest/{ => Module}/File/FileUnitTest.pm (98%) rename test/lib/pgBackRestTest/{ => Module}/File/FileWaitTest.pm (95%) rename test/lib/pgBackRestTest/{ => Module}/Full/FullRealTest.pm (99%) rename test/lib/pgBackRestTest/{ => Module}/Full/FullSyntheticTest.pm (99%) rename test/lib/pgBackRestTest/{ => Module}/Help/HelpHelpTest.pm (95%) rename test/lib/pgBackRestTest/{ => Module}/Info/InfoUnitTest.pm (96%) rename test/lib/pgBackRestTest/{ => Module}/Stanza/StanzaCreateTest.pm (98%) rename test/lib/pgBackRestTest/{ => Module}/Stanza/StanzaUnitTest.pm (97%) rename test/lib/pgBackRestTest/{ => Module}/Stanza/StanzaUpgradeTest.pm (98%) diff --git a/.travis.yml b/.travis.yml index b9f719ea5..a70b2000d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,25 +13,25 @@ services: - docker env: - - PGB_TEST_VM="co6" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire" + - PGB_TEST_VM="co6" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=common --module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire" - PGB_TEST_VM="co6" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=full --test=synthetic --no-lint --no-package" - PGB_TEST_VM="co6" PGB_BUILD_PARAM="--db=9.1" PGB_TEST_PARAM="--module=full --test=real --db=9.1 --process-max=2 --no-lint --no-package" - PGB_TEST_VM="co6" PGB_BUILD_PARAM="--db=9.0" PGB_TEST_PARAM="--module=full --test=real --db=9.0 --process-max=2 --no-lint --no-package" - - PGB_TEST_VM="u16" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire --no-lint" + - PGB_TEST_VM="u16" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=common --module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire --no-lint" - PGB_TEST_VM="u16" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=full --test=synthetic --no-lint --no-package" - PGB_TEST_VM="u16" PGB_BUILD_PARAM="--db=9.4" PGB_TEST_PARAM="--module=full --test=real --db=9.4 --process-max=2 --no-lint --no-package" - - PGB_TEST_VM="d8" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire --no-lint" + - PGB_TEST_VM="d8" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=common --module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire --no-lint" - PGB_TEST_VM="d8" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=full --test=synthetic --no-lint --no-package" - PGB_TEST_VM="d8" PGB_BUILD_PARAM="--db=9.3" PGB_TEST_PARAM="--module=full --test=real --db=9.3 --process-max=2 --no-lint --no-package" - PGB_TEST_VM="d8" PGB_BUILD_PARAM="--db=8.4" PGB_TEST_PARAM="--module=full --test=real --db=8.4 --process-max=2 --no-lint --no-package" - - PGB_TEST_VM="co7" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire --no-lint" + - PGB_TEST_VM="co7" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=common --module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire --no-lint" - PGB_TEST_VM="co7" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=full --test=synthetic --no-lint --no-package" - PGB_TEST_VM="co7" PGB_BUILD_PARAM="--db=9.6" PGB_TEST_PARAM="--module=full --test=real --db=9.6 --process-max=2 --no-lint --no-package" - PGB_TEST_VM="co7" PGB_BUILD_PARAM="--db=9.5" PGB_TEST_PARAM="--module=full --test=real --db=9.5 --process-max=2 --no-lint --no-package" - - PGB_TEST_VM="u14" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire --no-lint" + - PGB_TEST_VM="u14" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=common --module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire --no-lint" - PGB_TEST_VM="u14" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=full --test=synthetic --no-lint --no-package" - PGB_TEST_VM="u14" PGB_BUILD_PARAM="--db=9.2" PGB_TEST_PARAM="--module=full --test=real --db=9.2 --process-max=2 --no-lint --no-package" - - PGB_TEST_VM="u12" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire --no-lint" + - PGB_TEST_VM="u12" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=common --module=help --module=config --module=file --module=info --module=stanza --module=archive --module=backup --module=expire --no-lint" - PGB_TEST_VM="u12" PGB_BUILD_PARAM="--db=none" PGB_TEST_PARAM="--module=full --test=synthetic --no-lint --no-package" - PGB_TEST_VM="u12" PGB_BUILD_PARAM="--db=8.3" PGB_TEST_PARAM="--module=full --test=real --db=8.3 --process-max=2 --no-lint --no-package" diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 76ae77535..4995aba75 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -190,6 +190,10 @@ + +

Moved test and env modules to new directories to avoid namespace conflicts with common tests.

+
+

Set --vm-max=2 for CI.

diff --git a/test/lib/pgBackRestTest/Common/DefineTest.pm b/test/lib/pgBackRestTest/Common/DefineTest.pm index 21293c39a..04cb8f861 100644 --- a/test/lib/pgBackRestTest/Common/DefineTest.pm +++ b/test/lib/pgBackRestTest/Common/DefineTest.pm @@ -98,6 +98,24 @@ my $oTestDef = { &TESTDEF_MODULE => [ + # Common tests + { + &TESTDEF_NAME => 'common', + &TESTDEF_CONTAINER => true, + + &TESTDEF_TEST => + [ + { + &TESTDEF_NAME => 'ini', + &TESTDEF_TOTAL => 10, + + &TESTDEF_COVERAGE => + { + &TESTDEF_MODULE_COMMON_INI => TESTDEF_COVERAGE_FULL, + }, + }, + ] + }, # Help tests { &TESTDEF_NAME => 'help', @@ -211,15 +229,6 @@ my $oTestDef = &TESTDEF_TEST => [ - { - &TESTDEF_NAME => 'ini-unit', - &TESTDEF_TOTAL => 10, - - &TESTDEF_COVERAGE => - { - &TESTDEF_MODULE_COMMON_INI => TESTDEF_COVERAGE_FULL, - }, - }, { &TESTDEF_NAME => 'unit', &TESTDEF_TOTAL => 1, diff --git a/test/lib/pgBackRestTest/Common/FileTest.pm b/test/lib/pgBackRestTest/Common/FileTest.pm index 299eb5054..bd9f70df4 100644 --- a/test/lib/pgBackRestTest/Common/FileTest.pm +++ b/test/lib/pgBackRestTest/Common/FileTest.pm @@ -32,9 +32,9 @@ use pgBackRest::Manifest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::LogTest; use pgBackRestTest::Common::VmTest; -use pgBackRestTest::Common::Host::HostBackupTest; -use pgBackRestTest::Common::Host::HostDbCommonTest; -use pgBackRestTest::Common::Host::HostDbTest; +use pgBackRestTest::Env::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostDbCommonTest; +use pgBackRestTest::Env::Host::HostDbTest; #################################################################################################################################### # testLinkCreate diff --git a/test/lib/pgBackRestTest/Common/RunTest.pm b/test/lib/pgBackRestTest/Common/RunTest.pm index 9ea4c1a42..a64f67d46 100644 --- a/test/lib/pgBackRestTest/Common/RunTest.pm +++ b/test/lib/pgBackRestTest/Common/RunTest.pm @@ -474,7 +474,8 @@ sub testRun } my $strModuleName = - 'pgBackRestTest::' . testRunName($strModule) . '::' . testRunName($strModule) . testRunName($strModuleTest) . 'Test'; + 'pgBackRestTest::Module::' . testRunName($strModule) . '::' . testRunName($strModule) . testRunName($strModuleTest) . + 'Test'; $oTestRun = eval( ## no critic (BuiltinFunctions::ProhibitStringyEval) "require ${strModuleName}; ${strModuleName}->import(); return new ${strModuleName}();") diff --git a/test/lib/pgBackRestTest/Config/ConfigEnvTest.pm b/test/lib/pgBackRestTest/Env/ConfigEnvTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Config/ConfigEnvTest.pm rename to test/lib/pgBackRestTest/Env/ConfigEnvTest.pm index 7910aae65..122493e91 100644 --- a/test/lib/pgBackRestTest/Config/ConfigEnvTest.pm +++ b/test/lib/pgBackRestTest/Env/ConfigEnvTest.pm @@ -1,7 +1,7 @@ #################################################################################################################################### # ConfigCommonTest.pm - Common code for Config unit tests #################################################################################################################################### -package pgBackRestTest::Config::ConfigEnvTest; +package pgBackRestTest::Env::ConfigEnvTest; use parent 'pgBackRestTest::Common::RunTest'; #################################################################################################################################### diff --git a/test/lib/pgBackRestTest/Expire/ExpireEnvTest.pm b/test/lib/pgBackRestTest/Env/ExpireEnvTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Expire/ExpireEnvTest.pm rename to test/lib/pgBackRestTest/Env/ExpireEnvTest.pm index c0a9c21dd..f572c2771 100644 --- a/test/lib/pgBackRestTest/Expire/ExpireEnvTest.pm +++ b/test/lib/pgBackRestTest/Env/ExpireEnvTest.pm @@ -1,7 +1,7 @@ #################################################################################################################################### # ExpireCommonTest.pm - Common code for expire tests #################################################################################################################################### -package pgBackRestTest::Expire::ExpireEnvTest; +package pgBackRestTest::Env::ExpireEnvTest; use parent 'pgBackRestTest::Common::RunTest'; #################################################################################################################################### @@ -24,8 +24,8 @@ use pgBackRest::Manifest; use pgBackRest::Stanza; use pgBackRest::Version; -use pgBackRestTest::Common::Env::EnvHostTest; -use pgBackRestTest::Common::Host::HostBaseTest; +use pgBackRestTest::Env::HostEnvTest; +use pgBackRestTest::Env::Host::HostBaseTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::FileTest; diff --git a/test/lib/pgBackRestTest/Common/Host/HostBackupTest.pm b/test/lib/pgBackRestTest/Env/Host/HostBackupTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Common/Host/HostBackupTest.pm rename to test/lib/pgBackRestTest/Env/Host/HostBackupTest.pm index 6533ae259..43bca990b 100644 --- a/test/lib/pgBackRestTest/Common/Host/HostBackupTest.pm +++ b/test/lib/pgBackRestTest/Env/Host/HostBackupTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # HostBackupTest.pm - Backup host #################################################################################################################################### -package pgBackRestTest::Common::Host::HostBackupTest; -use parent 'pgBackRestTest::Common::Host::HostBaseTest'; +package pgBackRestTest::Env::Host::HostBackupTest; +use parent 'pgBackRestTest::Env::Host::HostBaseTest'; #################################################################################################################################### # Perl includes @@ -26,7 +26,7 @@ use pgBackRest::FileCommon; use pgBackRest::Manifest; use pgBackRest::Version; -use pgBackRestTest::Common::Host::HostBaseTest; +use pgBackRestTest::Env::Host::HostBaseTest; use pgBackRestTest::Common::ContainerTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::HostGroupTest; diff --git a/test/lib/pgBackRestTest/Common/Host/HostBaseTest.pm b/test/lib/pgBackRestTest/Env/Host/HostBaseTest.pm similarity index 98% rename from test/lib/pgBackRestTest/Common/Host/HostBaseTest.pm rename to test/lib/pgBackRestTest/Env/Host/HostBaseTest.pm index f309adcfb..f06c339d3 100644 --- a/test/lib/pgBackRestTest/Common/Host/HostBaseTest.pm +++ b/test/lib/pgBackRestTest/Env/Host/HostBaseTest.pm @@ -1,7 +1,7 @@ #################################################################################################################################### # HostBackupTest.pm - Backup host #################################################################################################################################### -package pgBackRestTest::Common::Host::HostBaseTest; +package pgBackRestTest::Env::Host::HostBaseTest; use parent 'pgBackRestTest::Common::HostTest'; #################################################################################################################################### diff --git a/test/lib/pgBackRestTest/Common/Host/HostDbCommonTest.pm b/test/lib/pgBackRestTest/Env/Host/HostDbCommonTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Common/Host/HostDbCommonTest.pm rename to test/lib/pgBackRestTest/Env/Host/HostDbCommonTest.pm index 7e0f77614..a88e920d6 100644 --- a/test/lib/pgBackRestTest/Common/Host/HostDbCommonTest.pm +++ b/test/lib/pgBackRestTest/Env/Host/HostDbCommonTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # HostDbTest.pm - Database host #################################################################################################################################### -package pgBackRestTest::Common::Host::HostDbCommonTest; -use parent 'pgBackRestTest::Common::Host::HostBackupTest'; +package pgBackRestTest::Env::Host::HostDbCommonTest; +use parent 'pgBackRestTest::Env::Host::HostBackupTest'; #################################################################################################################################### # Perl includes @@ -30,8 +30,8 @@ use pgBackRest::FileCommon; use pgBackRest::Manifest; use pgBackRest::Version; -use pgBackRestTest::Common::Host::HostBackupTest; -use pgBackRestTest::Common::Host::HostBaseTest; +use pgBackRestTest::Env::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBaseTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::HostGroupTest; diff --git a/test/lib/pgBackRestTest/Common/Host/HostDbSyntheticTest.pm b/test/lib/pgBackRestTest/Env/Host/HostDbSyntheticTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Common/Host/HostDbSyntheticTest.pm rename to test/lib/pgBackRestTest/Env/Host/HostDbSyntheticTest.pm index 79263c46a..663c1e260 100644 --- a/test/lib/pgBackRestTest/Common/Host/HostDbSyntheticTest.pm +++ b/test/lib/pgBackRestTest/Env/Host/HostDbSyntheticTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # HostDbTest.pm - Database host #################################################################################################################################### -package pgBackRestTest::Common::Host::HostDbSyntheticTest; -use parent 'pgBackRestTest::Common::Host::HostDbCommonTest'; +package pgBackRestTest::Env::Host::HostDbSyntheticTest; +use parent 'pgBackRestTest::Env::Host::HostDbCommonTest'; #################################################################################################################################### # Perl includes @@ -27,9 +27,9 @@ use pgBackRest::FileCommon; use pgBackRest::Manifest; use pgBackRest::Version; -use pgBackRestTest::Common::Host::HostBackupTest; -use pgBackRestTest::Common::Host::HostBaseTest; -use pgBackRestTest::Common::Host::HostDbCommonTest; +use pgBackRestTest::Env::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBaseTest; +use pgBackRestTest::Env::Host::HostDbCommonTest; use pgBackRestTest::Common::ContainerTest; use pgBackRestTest::Common::FileTest; use pgBackRestTest::Common::RunTest; diff --git a/test/lib/pgBackRestTest/Common/Host/HostDbTest.pm b/test/lib/pgBackRestTest/Env/Host/HostDbTest.pm similarity index 98% rename from test/lib/pgBackRestTest/Common/Host/HostDbTest.pm rename to test/lib/pgBackRestTest/Env/Host/HostDbTest.pm index 90ac73f09..ec1eff215 100644 --- a/test/lib/pgBackRestTest/Common/Host/HostDbTest.pm +++ b/test/lib/pgBackRestTest/Env/Host/HostDbTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # HostDbTest.pm - Database host #################################################################################################################################### -package pgBackRestTest::Common::Host::HostDbTest; -use parent 'pgBackRestTest::Common::Host::HostDbCommonTest'; +package pgBackRestTest::Env::Host::HostDbTest; +use parent 'pgBackRestTest::Env::Host::HostDbCommonTest'; #################################################################################################################################### # Perl includes @@ -25,9 +25,9 @@ use pgBackRest::FileCommon; use pgBackRest::Manifest; use pgBackRest::Version; -use pgBackRestTest::Common::Host::HostBackupTest; -use pgBackRestTest::Common::Host::HostBaseTest; -use pgBackRestTest::Common::Host::HostDbCommonTest; +use pgBackRestTest::Env::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBaseTest; +use pgBackRestTest::Env::Host::HostDbCommonTest; use pgBackRestTest::Common::ContainerTest; use pgBackRestTest::Common::RunTest; diff --git a/test/lib/pgBackRestTest/Common/Env/EnvHostTest.pm b/test/lib/pgBackRestTest/Env/HostEnvTest.pm similarity index 93% rename from test/lib/pgBackRestTest/Common/Env/EnvHostTest.pm rename to test/lib/pgBackRestTest/Env/HostEnvTest.pm index 5fdcedf90..ffbed1955 100644 --- a/test/lib/pgBackRestTest/Common/Env/EnvHostTest.pm +++ b/test/lib/pgBackRestTest/Env/HostEnvTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FullCommonTest.pm - Common code for backup tests #################################################################################################################################### -package pgBackRestTest::Common::Env::EnvHostTest; -use parent 'pgBackRestTest::Config::ConfigEnvTest'; +package pgBackRestTest::Env::HostEnvTest; +use parent 'pgBackRestTest::Env::ConfigEnvTest'; #################################################################################################################################### # Perl includes @@ -19,11 +19,11 @@ use pgBackRest::Config::Config; use pgBackRest::File; use pgBackRest::FileCommon; -use pgBackRestTest::Common::Host::HostBackupTest; -use pgBackRestTest::Common::Host::HostBaseTest; -use pgBackRestTest::Common::Host::HostDbCommonTest; -use pgBackRestTest::Common::Host::HostDbTest; -use pgBackRestTest::Common::Host::HostDbSyntheticTest; +use pgBackRestTest::Env::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBaseTest; +use pgBackRestTest::Env::Host::HostDbCommonTest; +use pgBackRestTest::Env::Host::HostDbTest; +use pgBackRestTest::Env::Host::HostDbSyntheticTest; use pgBackRestTest::Common::HostGroupTest; #################################################################################################################################### @@ -78,7 +78,7 @@ sub setup { $strBackupDestination = defined($$oConfigParam{strBackupDestination}) ? $$oConfigParam{strBackupDestination} : HOST_BACKUP; - $oHostBackup = new pgBackRestTest::Common::Host::HostBackupTest( + $oHostBackup = new pgBackRestTest::Env::Host::HostBackupTest( {strBackupDestination => $strBackupDestination, bSynthetic => $bSynthetic, oLogTest => $oLogTest}); $oHostGroup->hostAdd($oHostBackup); } @@ -93,12 +93,12 @@ sub setup if ($bSynthetic) { - $oHostDbMaster = new pgBackRestTest::Common::Host::HostDbSyntheticTest( + $oHostDbMaster = new pgBackRestTest::Env::Host::HostDbSyntheticTest( {strBackupDestination => $strBackupDestination, oLogTest => $oLogTest}); } else { - $oHostDbMaster = new pgBackRestTest::Common::Host::HostDbTest( + $oHostDbMaster = new pgBackRestTest::Env::Host::HostDbTest( {strBackupDestination => $strBackupDestination, oLogTest => $oLogTest}); } @@ -109,7 +109,7 @@ sub setup if (defined($$oConfigParam{bStandby}) && $$oConfigParam{bStandby}) { - $oHostDbStandby = new pgBackRestTest::Common::Host::HostDbTest( + $oHostDbStandby = new pgBackRestTest::Env::Host::HostDbTest( {strBackupDestination => $strBackupDestination, bStandby => true, oLogTest => $oLogTest}); $oHostGroup->hostAdd($oHostDbStandby); diff --git a/test/lib/pgBackRestTest/Archive/ArchiveGetTest.pm b/test/lib/pgBackRestTest/Module/Archive/ArchiveGetTest.pm similarity index 97% rename from test/lib/pgBackRestTest/Archive/ArchiveGetTest.pm rename to test/lib/pgBackRestTest/Module/Archive/ArchiveGetTest.pm index 0a84946a3..7bb0a2762 100644 --- a/test/lib/pgBackRestTest/Archive/ArchiveGetTest.pm +++ b/test/lib/pgBackRestTest/Module/Archive/ArchiveGetTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # ArchiveGetTest.pm - Tests for archive-get command #################################################################################################################################### -package pgBackRestTest::Archive::ArchiveGetTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Archive::ArchiveGetTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -25,7 +25,7 @@ use pgBackRest::File; use pgBackRest::FileCommon; use pgBackRest::Manifest; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::RunTest; diff --git a/test/lib/pgBackRestTest/Archive/ArchivePushTest.pm b/test/lib/pgBackRestTest/Module/Archive/ArchivePushTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Archive/ArchivePushTest.pm rename to test/lib/pgBackRestTest/Module/Archive/ArchivePushTest.pm index 84bb36008..440636e96 100644 --- a/test/lib/pgBackRestTest/Archive/ArchivePushTest.pm +++ b/test/lib/pgBackRestTest/Module/Archive/ArchivePushTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # ArchivePushTest.pm - Tests for archive-push command #################################################################################################################################### -package pgBackRestTest::Archive::ArchivePushTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Archive::ArchivePushTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -25,7 +25,7 @@ use pgBackRest::File; use pgBackRest::FileCommon; use pgBackRest::Manifest; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::RunTest; diff --git a/test/lib/pgBackRestTest/Archive/ArchivePushUnitTest.pm b/test/lib/pgBackRestTest/Module/Archive/ArchivePushUnitTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Archive/ArchivePushUnitTest.pm rename to test/lib/pgBackRestTest/Module/Archive/ArchivePushUnitTest.pm index 8c28a5fb4..8670db0ee 100644 --- a/test/lib/pgBackRestTest/Archive/ArchivePushUnitTest.pm +++ b/test/lib/pgBackRestTest/Module/Archive/ArchivePushUnitTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # ArchivePushUnitTest.pm - Unit tests for ArchivePush and ArchivePush Async #################################################################################################################################### -package pgBackRestTest::Archive::ArchivePushUnitTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Archive::ArchivePushUnitTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -29,9 +29,9 @@ use pgBackRest::FileCommon; use pgBackRest::Protocol::Common; use pgBackRest::Protocol::Protocol; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; -use pgBackRestTest::Common::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBackupTest; use pgBackRestTest::Common::RunTest; #################################################################################################################################### diff --git a/test/lib/pgBackRestTest/Archive/ArchiveStopTest.pm b/test/lib/pgBackRestTest/Module/Archive/ArchiveStopTest.pm similarity index 97% rename from test/lib/pgBackRestTest/Archive/ArchiveStopTest.pm rename to test/lib/pgBackRestTest/Module/Archive/ArchiveStopTest.pm index 66760c97c..4545eaf84 100644 --- a/test/lib/pgBackRestTest/Archive/ArchiveStopTest.pm +++ b/test/lib/pgBackRestTest/Module/Archive/ArchiveStopTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # ArchiveStopTest.pm - Tests for archive-push command to make sure aync queue limits are implemented correctly #################################################################################################################################### -package pgBackRestTest::Archive::ArchiveStopTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Archive::ArchiveStopTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -25,7 +25,7 @@ use pgBackRest::File; use pgBackRest::FileCommon; use pgBackRest::Manifest; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::RunTest; diff --git a/test/lib/pgBackRestTest/Archive/ArchiveUnitTest.pm b/test/lib/pgBackRestTest/Module/Archive/ArchiveUnitTest.pm similarity index 98% rename from test/lib/pgBackRestTest/Archive/ArchiveUnitTest.pm rename to test/lib/pgBackRestTest/Module/Archive/ArchiveUnitTest.pm index 11d31543f..2ec0c3020 100644 --- a/test/lib/pgBackRestTest/Archive/ArchiveUnitTest.pm +++ b/test/lib/pgBackRestTest/Module/Archive/ArchiveUnitTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # ArchiveUnitTest.pm - Tests for ArchiveCommon module #################################################################################################################################### -package pgBackRestTest::Archive::ArchiveUnitTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Archive::ArchiveUnitTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -20,7 +20,7 @@ use pgBackRest::Config::Config; use pgBackRest::File; use pgBackRest::FileCommon; -use pgBackRestTest::Common::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBackupTest; #################################################################################################################################### # run diff --git a/test/lib/pgBackRestTest/Backup/BackupInfoUnitTest.pm b/test/lib/pgBackRestTest/Module/Backup/BackupInfoUnitTest.pm similarity index 95% rename from test/lib/pgBackRestTest/Backup/BackupInfoUnitTest.pm rename to test/lib/pgBackRestTest/Module/Backup/BackupInfoUnitTest.pm index 7fc5edc4e..d3fe882f0 100644 --- a/test/lib/pgBackRestTest/Backup/BackupInfoUnitTest.pm +++ b/test/lib/pgBackRestTest/Module/Backup/BackupInfoUnitTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # BackupInfoUnitTest.pm - Unit tests for BackupInfo #################################################################################################################################### -package pgBackRestTest::Backup::BackupInfoUnitTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Backup::BackupInfoUnitTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -27,9 +27,9 @@ use pgBackRest::Manifest; use pgBackRest::Protocol::Common; use pgBackRest::Protocol::Protocol; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; -use pgBackRestTest::Common::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBackupTest; use pgBackRestTest::Common::RunTest; #################################################################################################################################### diff --git a/test/lib/pgBackRestTest/Backup/BackupUnitTest.pm b/test/lib/pgBackRestTest/Module/Backup/BackupUnitTest.pm similarity index 98% rename from test/lib/pgBackRestTest/Backup/BackupUnitTest.pm rename to test/lib/pgBackRestTest/Module/Backup/BackupUnitTest.pm index 60a6d59ec..5594cd4cb 100644 --- a/test/lib/pgBackRestTest/Backup/BackupUnitTest.pm +++ b/test/lib/pgBackRestTest/Module/Backup/BackupUnitTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # BackupUnitTest.pm - Tests for Backup module #################################################################################################################################### -package pgBackRestTest::Backup::BackupUnitTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Backup::BackupUnitTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -26,7 +26,7 @@ use pgBackRest::Protocol::Protocol; use pgBackRest::Manifest; use pgBackRestTest::Common::ExecuteTest; -use pgBackRestTest::Common::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBackupTest; #################################################################################################################################### # run diff --git a/test/lib/pgBackRestTest/Info/InfoIniUnitTest.pm b/test/lib/pgBackRestTest/Module/Common/CommonIniTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Info/InfoIniUnitTest.pm rename to test/lib/pgBackRestTest/Module/Common/CommonIniTest.pm index 7421562a2..0e6a54822 100644 --- a/test/lib/pgBackRestTest/Info/InfoIniUnitTest.pm +++ b/test/lib/pgBackRestTest/Module/Common/CommonIniTest.pm @@ -1,7 +1,7 @@ #################################################################################################################################### # InfoIniUnitTest.pm - Unit tests for Ini module #################################################################################################################################### -package pgBackRestTest::Info::InfoIniUnitTest; +package pgBackRestTest::Module::Common::CommonIniTest; use parent 'pgBackRestTest::Common::RunTest'; #################################################################################################################################### diff --git a/test/lib/pgBackRestTest/Config/ConfigConfigTest.pm b/test/lib/pgBackRestTest/Module/Config/ConfigConfigTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Config/ConfigConfigTest.pm rename to test/lib/pgBackRestTest/Module/Config/ConfigConfigTest.pm index e6cd65132..00235d89d 100644 --- a/test/lib/pgBackRestTest/Config/ConfigConfigTest.pm +++ b/test/lib/pgBackRestTest/Module/Config/ConfigConfigTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # ConfigConfigTest.pm - Tests for mixed command line and config file options in Config.pm #################################################################################################################################### -package pgBackRestTest::Config::ConfigConfigTest; -use parent 'pgBackRestTest::Config::ConfigEnvTest'; +package pgBackRestTest::Module::Config::ConfigConfigTest; +use parent 'pgBackRestTest::Env::ConfigEnvTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/Config/ConfigOptionTest.pm b/test/lib/pgBackRestTest/Module/Config/ConfigOptionTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Config/ConfigOptionTest.pm rename to test/lib/pgBackRestTest/Module/Config/ConfigOptionTest.pm index 675865c81..2254e4dd7 100644 --- a/test/lib/pgBackRestTest/Config/ConfigOptionTest.pm +++ b/test/lib/pgBackRestTest/Module/Config/ConfigOptionTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # ConfigOptionTest.pm - Tests for command line options in Config.pm #################################################################################################################################### -package pgBackRestTest::Config::ConfigOptionTest; -use parent 'pgBackRestTest::Config::ConfigEnvTest'; +package pgBackRestTest::Module::Config::ConfigOptionTest; +use parent 'pgBackRestTest::Env::ConfigEnvTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/Config/ConfigUnitTest.pm b/test/lib/pgBackRestTest/Module/Config/ConfigUnitTest.pm similarity index 97% rename from test/lib/pgBackRestTest/Config/ConfigUnitTest.pm rename to test/lib/pgBackRestTest/Module/Config/ConfigUnitTest.pm index 9dc26b0d2..a6e9dd0a5 100644 --- a/test/lib/pgBackRestTest/Config/ConfigUnitTest.pm +++ b/test/lib/pgBackRestTest/Module/Config/ConfigUnitTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # ConfigUnitTest.pm - Tests code paths #################################################################################################################################### -package pgBackRestTest::Config::ConfigUnitTest; -use parent 'pgBackRestTest::Config::ConfigEnvTest'; +package pgBackRestTest::Module::Config::ConfigUnitTest; +use parent 'pgBackRestTest::Env::ConfigEnvTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/Expire/ExpireExpireTest.pm b/test/lib/pgBackRestTest/Module/Expire/ExpireExpireTest.pm similarity index 96% rename from test/lib/pgBackRestTest/Expire/ExpireExpireTest.pm rename to test/lib/pgBackRestTest/Module/Expire/ExpireExpireTest.pm index febb51921..356f6cc27 100644 --- a/test/lib/pgBackRestTest/Expire/ExpireExpireTest.pm +++ b/test/lib/pgBackRestTest/Module/Expire/ExpireExpireTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # ExpireExpireTest.pm - Tests for expire command #################################################################################################################################### -package pgBackRestTest::Expire::ExpireExpireTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Expire::ExpireExpireTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -27,10 +27,10 @@ use pgBackRest::File; use pgBackRest::FileCommon; use pgBackRest::Manifest; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::RunTest; -use pgBackRestTest::Expire::ExpireEnvTest; +use pgBackRestTest::Env::ExpireEnvTest; #################################################################################################################################### # initStanzaOption @@ -74,7 +74,7 @@ sub run $self->configLoadExpect(dclone($oOption), CMD_STANZA_CREATE); # Create the test object - my $oExpireTest = new pgBackRestTest::Expire::ExpireEnvTest($oHostBackup, $self->backrestExe(), $oFile, $self->expect(), + my $oExpireTest = new pgBackRestTest::Env::ExpireEnvTest($oHostBackup, $self->backrestExe(), $oFile, $self->expect(), $self); $oExpireTest->stanzaCreate($self->stanza(), PG_VERSION_92); @@ -171,7 +171,7 @@ sub run $self->configLoadExpect(dclone($oOption), CMD_STANZA_CREATE); # Create the test object - my $oExpireTest = new pgBackRestTest::Expire::ExpireEnvTest($oHostBackup, $self->backrestExe(), $oFile, $self->expect(), + my $oExpireTest = new pgBackRestTest::Env::ExpireEnvTest($oHostBackup, $self->backrestExe(), $oFile, $self->expect(), $self); $oExpireTest->stanzaCreate($self->stanza(), PG_VERSION_92); diff --git a/test/lib/pgBackRestTest/File/FileCommonTest.pm b/test/lib/pgBackRestTest/Module/File/FileCommonTest.pm similarity index 97% rename from test/lib/pgBackRestTest/File/FileCommonTest.pm rename to test/lib/pgBackRestTest/Module/File/FileCommonTest.pm index 51dbe854d..48037a708 100644 --- a/test/lib/pgBackRestTest/File/FileCommonTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileCommonTest.pm @@ -1,7 +1,7 @@ #################################################################################################################################### # FileCommonTest.pm - Common code for File tests #################################################################################################################################### -package pgBackRestTest::File::FileCommonTest; +package pgBackRestTest::Module::File::FileCommonTest; use parent 'pgBackRestTest::Common::RunTest'; #################################################################################################################################### @@ -18,7 +18,7 @@ use pgBackRest::FileCommon; use pgBackRest::Protocol::Common; use pgBackRest::Protocol::RemoteMaster; -use pgBackRestTest::Common::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBackupTest; use pgBackRestTest::Common::ExecuteTest; #################################################################################################################################### diff --git a/test/lib/pgBackRestTest/File/FileCompressTest.pm b/test/lib/pgBackRestTest/Module/File/FileCompressTest.pm similarity index 96% rename from test/lib/pgBackRestTest/File/FileCompressTest.pm rename to test/lib/pgBackRestTest/Module/File/FileCompressTest.pm index b71c07ee8..3bfe925f6 100644 --- a/test/lib/pgBackRestTest/File/FileCompressTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileCompressTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileCompressTest.pm - Tests for File->compress() #################################################################################################################################### -package pgBackRestTest::File::FileCompressTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileCompressTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileCopyTest.pm b/test/lib/pgBackRestTest/Module/File/FileCopyTest.pm similarity index 98% rename from test/lib/pgBackRestTest/File/FileCopyTest.pm rename to test/lib/pgBackRestTest/Module/File/FileCopyTest.pm index 6c4601505..53e628b1c 100644 --- a/test/lib/pgBackRestTest/File/FileCopyTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileCopyTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileCopyTest.pm - Tests for File->copy() #################################################################################################################################### -package pgBackRestTest::File::FileCopyTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileCopyTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileExistsTest.pm b/test/lib/pgBackRestTest/Module/File/FileExistsTest.pm similarity index 95% rename from test/lib/pgBackRestTest/File/FileExistsTest.pm rename to test/lib/pgBackRestTest/Module/File/FileExistsTest.pm index bde8c2852..4bafdb33d 100644 --- a/test/lib/pgBackRestTest/File/FileExistsTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileExistsTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileExistsTest.pm - Tests for File->exists() #################################################################################################################################### -package pgBackRestTest::File::FileExistsTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileExistsTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileHashTest.pm b/test/lib/pgBackRestTest/Module/File/FileHashTest.pm similarity index 96% rename from test/lib/pgBackRestTest/File/FileHashTest.pm rename to test/lib/pgBackRestTest/Module/File/FileHashTest.pm index b673a676d..8207096cb 100644 --- a/test/lib/pgBackRestTest/File/FileHashTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileHashTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileHashTest.pm - Tests for File->hash() #################################################################################################################################### -package pgBackRestTest::File::FileHashTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileHashTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileLinkTest.pm b/test/lib/pgBackRestTest/Module/File/FileLinkTest.pm similarity index 95% rename from test/lib/pgBackRestTest/File/FileLinkTest.pm rename to test/lib/pgBackRestTest/Module/File/FileLinkTest.pm index ba0cbf37c..5eca13c34 100644 --- a/test/lib/pgBackRestTest/File/FileLinkTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileLinkTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileLinkTest.pm - Tests for FileCommon::fileLinkDestination #################################################################################################################################### -package pgBackRestTest::File::FileLinkTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileLinkTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileListTest.pm b/test/lib/pgBackRestTest/Module/File/FileListTest.pm similarity index 97% rename from test/lib/pgBackRestTest/File/FileListTest.pm rename to test/lib/pgBackRestTest/Module/File/FileListTest.pm index d2bc8741e..192433caf 100644 --- a/test/lib/pgBackRestTest/File/FileListTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileListTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileListTest.pm - Tests for File->list() #################################################################################################################################### -package pgBackRestTest::File::FileListTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileListTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileManifestTest.pm b/test/lib/pgBackRestTest/Module/File/FileManifestTest.pm similarity index 99% rename from test/lib/pgBackRestTest/File/FileManifestTest.pm rename to test/lib/pgBackRestTest/Module/File/FileManifestTest.pm index a25c0caf9..7fd5c36ba 100644 --- a/test/lib/pgBackRestTest/File/FileManifestTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileManifestTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileManifestTest.pm - Tests for File->manifest() #################################################################################################################################### -package pgBackRestTest::File::FileManifestTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileManifestTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileMoveTest.pm b/test/lib/pgBackRestTest/Module/File/FileMoveTest.pm similarity index 97% rename from test/lib/pgBackRestTest/File/FileMoveTest.pm rename to test/lib/pgBackRestTest/Module/File/FileMoveTest.pm index 58f643a9a..cebba3cd6 100644 --- a/test/lib/pgBackRestTest/File/FileMoveTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileMoveTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileMoveTest.pm - Tests for File->move() #################################################################################################################################### -package pgBackRestTest::File::FileMoveTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileMoveTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileOwnerTest.pm b/test/lib/pgBackRestTest/Module/File/FileOwnerTest.pm similarity index 97% rename from test/lib/pgBackRestTest/File/FileOwnerTest.pm rename to test/lib/pgBackRestTest/Module/File/FileOwnerTest.pm index c7da16d4f..77927917c 100644 --- a/test/lib/pgBackRestTest/File/FileOwnerTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileOwnerTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileOwnerTest.pm - Tests for File->owner() #################################################################################################################################### -package pgBackRestTest::File::FileOwnerTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileOwnerTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FilePathCreateTest.pm b/test/lib/pgBackRestTest/Module/File/FilePathCreateTest.pm similarity index 96% rename from test/lib/pgBackRestTest/File/FilePathCreateTest.pm rename to test/lib/pgBackRestTest/Module/File/FilePathCreateTest.pm index 2b3bfba1e..cd86852eb 100644 --- a/test/lib/pgBackRestTest/File/FilePathCreateTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FilePathCreateTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FilePathCreateTest.pm - Tests for File->pathCreate() #################################################################################################################################### -package pgBackRestTest::File::FilePathCreateTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FilePathCreateTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileRemoveTest.pm b/test/lib/pgBackRestTest/Module/File/FileRemoveTest.pm similarity index 96% rename from test/lib/pgBackRestTest/File/FileRemoveTest.pm rename to test/lib/pgBackRestTest/Module/File/FileRemoveTest.pm index cdb0bdc45..c46ad9ff6 100644 --- a/test/lib/pgBackRestTest/File/FileRemoveTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileRemoveTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileRemoveTest.pm - Tests for File->remove() #################################################################################################################################### -package pgBackRestTest::File::FileRemoveTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileRemoveTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileStatTest.pm b/test/lib/pgBackRestTest/Module/File/FileStatTest.pm similarity index 96% rename from test/lib/pgBackRestTest/File/FileStatTest.pm rename to test/lib/pgBackRestTest/Module/File/FileStatTest.pm index f33487aaf..ff91fcc96 100644 --- a/test/lib/pgBackRestTest/File/FileStatTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileStatTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileStatTest.pm - Tests for FileCommon::fileStat #################################################################################################################################### -package pgBackRestTest::File::FileStatTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileStatTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileUnitTest.pm b/test/lib/pgBackRestTest/Module/File/FileUnitTest.pm similarity index 98% rename from test/lib/pgBackRestTest/File/FileUnitTest.pm rename to test/lib/pgBackRestTest/Module/File/FileUnitTest.pm index 5e305758b..fea5bf721 100644 --- a/test/lib/pgBackRestTest/File/FileUnitTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileUnitTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileUnitTest.pm - Unit tests for File module. #################################################################################################################################### -package pgBackRestTest::File::FileUnitTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileUnitTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/File/FileWaitTest.pm b/test/lib/pgBackRestTest/Module/File/FileWaitTest.pm similarity index 95% rename from test/lib/pgBackRestTest/File/FileWaitTest.pm rename to test/lib/pgBackRestTest/Module/File/FileWaitTest.pm index 9ca5fea5f..b1b8e8933 100644 --- a/test/lib/pgBackRestTest/File/FileWaitTest.pm +++ b/test/lib/pgBackRestTest/Module/File/FileWaitTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FileWaitTest.pm - Tests for File->wait() #################################################################################################################################### -package pgBackRestTest::File::FileWaitTest; -use parent 'pgBackRestTest::File::FileCommonTest'; +package pgBackRestTest::Module::File::FileWaitTest; +use parent 'pgBackRestTest::Module::File::FileCommonTest'; #################################################################################################################################### # Perl includes diff --git a/test/lib/pgBackRestTest/Full/FullRealTest.pm b/test/lib/pgBackRestTest/Module/Full/FullRealTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Full/FullRealTest.pm rename to test/lib/pgBackRestTest/Module/Full/FullRealTest.pm index 4090eb56a..2070527c3 100644 --- a/test/lib/pgBackRestTest/Full/FullRealTest.pm +++ b/test/lib/pgBackRestTest/Module/Full/FullRealTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FullRealTest.pm - Tests for all commands against a real database #################################################################################################################################### -package pgBackRestTest::Full::FullRealTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Full::FullRealTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -29,13 +29,13 @@ use pgBackRest::Manifest; use pgBackRest::Version; use pgBackRestTest::Common::ContainerTest; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::FileTest; use pgBackRestTest::Common::RunTest; -use pgBackRestTest::Common::Host::HostBaseTest; -use pgBackRestTest::Common::Host::HostBackupTest; -use pgBackRestTest::Common::Host::HostDbTest; +use pgBackRestTest::Env::Host::HostBaseTest; +use pgBackRestTest::Env::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostDbTest; #################################################################################################################################### # run diff --git a/test/lib/pgBackRestTest/Full/FullSyntheticTest.pm b/test/lib/pgBackRestTest/Module/Full/FullSyntheticTest.pm similarity index 99% rename from test/lib/pgBackRestTest/Full/FullSyntheticTest.pm rename to test/lib/pgBackRestTest/Module/Full/FullSyntheticTest.pm index 74436bc85..8b5005b73 100644 --- a/test/lib/pgBackRestTest/Full/FullSyntheticTest.pm +++ b/test/lib/pgBackRestTest/Module/Full/FullSyntheticTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # FullSyntheticTest.pm - Tests for all commands that can be run against synthetic data #################################################################################################################################### -package pgBackRestTest::Full::FullSyntheticTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Full::FullSyntheticTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -30,11 +30,11 @@ use pgBackRest::Manifest; use pgBackRest::Version; use pgBackRestTest::Common::ContainerTest; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::FileTest; use pgBackRestTest::Common::RunTest; -use pgBackRestTest::Common::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBackupTest; #################################################################################################################################### # Build PostgreSQL pages for testing diff --git a/test/lib/pgBackRestTest/Help/HelpHelpTest.pm b/test/lib/pgBackRestTest/Module/Help/HelpHelpTest.pm similarity index 95% rename from test/lib/pgBackRestTest/Help/HelpHelpTest.pm rename to test/lib/pgBackRestTest/Module/Help/HelpHelpTest.pm index 9282aa508..8d409262e 100644 --- a/test/lib/pgBackRestTest/Help/HelpHelpTest.pm +++ b/test/lib/pgBackRestTest/Module/Help/HelpHelpTest.pm @@ -1,7 +1,7 @@ #################################################################################################################################### # HelpHelpTest.pm - Tests for help command #################################################################################################################################### -package pgBackRestTest::Help::HelpHelpTest; +package pgBackRestTest::Module::Help::HelpHelpTest; use parent 'pgBackRestTest::Common::RunTest'; #################################################################################################################################### @@ -17,7 +17,7 @@ use Exporter qw(import); use pgBackRest::Common::Log; use pgBackRest::Config::Config; -use pgBackRestTest::Common::Host::HostBaseTest; +use pgBackRestTest::Env::Host::HostBaseTest; use pgBackRestTest::Common::ExecuteTest; #################################################################################################################################### diff --git a/test/lib/pgBackRestTest/Info/InfoUnitTest.pm b/test/lib/pgBackRestTest/Module/Info/InfoUnitTest.pm similarity index 96% rename from test/lib/pgBackRestTest/Info/InfoUnitTest.pm rename to test/lib/pgBackRestTest/Module/Info/InfoUnitTest.pm index b6021f570..a2040eeaf 100644 --- a/test/lib/pgBackRestTest/Info/InfoUnitTest.pm +++ b/test/lib/pgBackRestTest/Module/Info/InfoUnitTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # InfoUnitTest.pm - Unit tests for Info module #################################################################################################################################### -package pgBackRestTest::Info::InfoUnitTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Info::InfoUnitTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -28,11 +28,11 @@ use pgBackRest::Manifest; use pgBackRest::Protocol::Common; use pgBackRest::Protocol::Protocol; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; -use pgBackRestTest::Common::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBackupTest; use pgBackRestTest::Common::RunTest; -use pgBackRestTest::Expire::ExpireEnvTest; +use pgBackRestTest::Env::ExpireEnvTest; #################################################################################################################################### # initModule @@ -79,7 +79,7 @@ sub initTest filePathCreate($self->{strBackupPath}, undef, true, true); # Create the test object - $self->{oExpireTest} = new pgBackRestTest::Expire::ExpireEnvTest(undef, $self->backrestExe(), $self->{oFile}, undef, $self); + $self->{oExpireTest} = new pgBackRestTest::Env::ExpireEnvTest(undef, $self->backrestExe(), $self->{oFile}, undef, $self); # Set options for stanzaCreate $self->optionStanzaCreate(); diff --git a/test/lib/pgBackRestTest/Stanza/StanzaCreateTest.pm b/test/lib/pgBackRestTest/Module/Stanza/StanzaCreateTest.pm similarity index 98% rename from test/lib/pgBackRestTest/Stanza/StanzaCreateTest.pm rename to test/lib/pgBackRestTest/Module/Stanza/StanzaCreateTest.pm index 94f534df5..b1ba60a54 100644 --- a/test/lib/pgBackRestTest/Stanza/StanzaCreateTest.pm +++ b/test/lib/pgBackRestTest/Module/Stanza/StanzaCreateTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # StanzaCreateTest.pm - Tests for stanza-create command #################################################################################################################################### -package pgBackRestTest::Stanza::StanzaCreateTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Stanza::StanzaCreateTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -26,7 +26,7 @@ use pgBackRest::FileCommon; use pgBackRest::InfoCommon; use pgBackRest::Manifest; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::RunTest; diff --git a/test/lib/pgBackRestTest/Stanza/StanzaUnitTest.pm b/test/lib/pgBackRestTest/Module/Stanza/StanzaUnitTest.pm similarity index 97% rename from test/lib/pgBackRestTest/Stanza/StanzaUnitTest.pm rename to test/lib/pgBackRestTest/Module/Stanza/StanzaUnitTest.pm index 0e4196cef..3225964c7 100644 --- a/test/lib/pgBackRestTest/Stanza/StanzaUnitTest.pm +++ b/test/lib/pgBackRestTest/Module/Stanza/StanzaUnitTest.pm @@ -1,8 +1,8 @@ #################################################################################################################################### # StanzaUnitTest.pm - Unit tests for Stanza.pm #################################################################################################################################### -package pgBackRestTest::Stanza::StanzaUnitTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Stanza::StanzaUnitTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -30,9 +30,9 @@ use pgBackRest::Protocol::Common; use pgBackRest::Protocol::Protocol; use pgBackRest::Stanza; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; -use pgBackRestTest::Common::Host::HostBackupTest; +use pgBackRestTest::Env::Host::HostBackupTest; use pgBackRestTest::Common::RunTest; #################################################################################################################################### diff --git a/test/lib/pgBackRestTest/Stanza/StanzaUpgradeTest.pm b/test/lib/pgBackRestTest/Module/Stanza/StanzaUpgradeTest.pm similarity index 98% rename from test/lib/pgBackRestTest/Stanza/StanzaUpgradeTest.pm rename to test/lib/pgBackRestTest/Module/Stanza/StanzaUpgradeTest.pm index 7050c1320..8b6ab460f 100644 --- a/test/lib/pgBackRestTest/Stanza/StanzaUpgradeTest.pm +++ b/test/lib/pgBackRestTest/Module/Stanza/StanzaUpgradeTest.pm @@ -6,8 +6,8 @@ # db-system-id=6392579261579036436 # db-version="9.5" #################################################################################################################################### -package pgBackRestTest::Stanza::StanzaUpgradeTest; -use parent 'pgBackRestTest::Common::Env::EnvHostTest'; +package pgBackRestTest::Module::Stanza::StanzaUpgradeTest; +use parent 'pgBackRestTest::Env::HostEnvTest'; #################################################################################################################################### # Perl includes @@ -31,7 +31,7 @@ use pgBackRest::FileCommon; use pgBackRest::InfoCommon; use pgBackRest::Manifest; -use pgBackRestTest::Common::Env::EnvHostTest; +use pgBackRestTest::Env::HostEnvTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::RunTest;