diff options
Diffstat (limited to 'src/bin/pg_dump/t/002_pg_dump.pl')
-rw-r--r-- | src/bin/pg_dump/t/002_pg_dump.pl | 78 |
1 files changed, 2 insertions, 76 deletions
diff --git a/src/bin/pg_dump/t/002_pg_dump.pl b/src/bin/pg_dump/t/002_pg_dump.pl index 39fa1952e70..dd065c758fa 100644 --- a/src/bin/pg_dump/t/002_pg_dump.pl +++ b/src/bin/pg_dump/t/002_pg_dump.pl @@ -3714,82 +3714,6 @@ my $supports_lz4 = check_pg_config("#define HAVE_LIBLZ4 1"); $node->psql('postgres', 'create database regress_pg_dump_test;'); $node->psql('postgres', 'create database regress_public_owner;'); -# Start with number of command_fails_like()*2 tests below (each -# command_fails_like is actually 2 tests) -my $num_tests = 12; - -foreach my $run (sort keys %pgdump_runs) -{ - my $test_key = $run; - my $run_db = 'postgres'; - - if (defined($pgdump_runs{$run}->{database})) - { - $run_db = $pgdump_runs{$run}->{database}; - } - - # Each run of pg_dump is a test itself - $num_tests++; - - # If there is a restore cmd, that's another test - if ($pgdump_runs{$run}->{restore_cmd}) - { - $num_tests++; - } - - if ($pgdump_runs{$run}->{test_key}) - { - $test_key = $pgdump_runs{$run}->{test_key}; - } - - # Then count all the tests run against each run - foreach my $test (sort keys %tests) - { - - # postgres is the default database, if it isn't overridden - my $test_db = 'postgres'; - - # Specific tests can override the database to use - if (defined($tests{$test}->{database})) - { - $test_db = $tests{$test}->{database}; - } - - # The database to test against needs to match the database the run is - # for, so skip combinations where they don't match up. - if ($run_db ne $test_db) - { - next; - } - - # Skip any collation-related commands if there is no collation support - if (!$collation_support && defined($tests{$test}->{collation})) - { - next; - } - - # Skip tests specific to LZ4 if this build does not support - # this option. - if (!$supports_lz4 && defined($tests{$test}->{lz4})) - { - next; - } - - # If there is a like entry, but no unlike entry, then we will test the like case - if ($tests{$test}->{like}->{$test_key} - && !defined($tests{$test}->{unlike}->{$test_key})) - { - $num_tests++; - } - else - { - # We will test everything that isn't a 'like' - $num_tests++; - } - } -} -plan tests => $num_tests; - ######################################### # Set up schemas, tables, etc, to be dumped. @@ -3975,3 +3899,5 @@ foreach my $run (sort keys %pgdump_runs) # Stop the database instance, which will be removed at the end of the tests. $node->stop('fast'); + +done_testing(); |