mirror of
https://github.com/postgres/postgres.git
synced 2025-06-02 00:01:40 -04:00
Remove unused includes in TAP tests
Additionally we remove unnecessary copies if the generated config file.
This commit is contained in:
parent
945cbe436b
commit
233305bbc4
@ -3,8 +3,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
use pgtde;
|
||||
|
@ -3,8 +3,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
use pgtde;
|
||||
|
@ -3,8 +3,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
use pgtde;
|
||||
|
@ -3,8 +3,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
use pgtde;
|
||||
@ -16,8 +14,6 @@ PGTDE::setup_files_dir(basename($0));
|
||||
my $node = PGTDE->pgtde_init_pg();
|
||||
my $pgdata = $node->data_dir;
|
||||
|
||||
copy("$pgdata/postgresql.conf", "$pgdata/postgresql.conf.bak");
|
||||
|
||||
# UPDATE postgresql.conf to include/load pg_tde library
|
||||
open my $conf, '>>', "$pgdata/postgresql.conf";
|
||||
print $conf "shared_preload_libraries = 'pg_tde'\n";
|
||||
|
@ -3,8 +3,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
use pgtde;
|
||||
@ -23,8 +21,6 @@ if (index(lc($PG_VERSION_STRING), lc("Percona Distribution")) == -1)
|
||||
my $node = PGTDE->pgtde_init_pg();
|
||||
my $pgdata = $node->data_dir;
|
||||
|
||||
copy("$pgdata/postgresql.conf", "$pgdata/postgresql.conf.bak");
|
||||
|
||||
# UPDATE postgresql.conf to include/load pg_stat_monitor library
|
||||
open my $conf, '>>', "$pgdata/postgresql.conf";
|
||||
print $conf "shared_preload_libraries = 'pg_tde, pg_stat_monitor, pgaudit, set_user, pg_repack'\n";
|
||||
|
@ -2,13 +2,11 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Env;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
use pgtde;
|
||||
use Env;
|
||||
|
||||
# Get file name and CREATE out file name and dirs WHERE requried
|
||||
PGTDE::setup_files_dir(basename($0));
|
||||
|
@ -3,8 +3,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
use pgtde;
|
||||
|
@ -3,8 +3,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
use pgtde;
|
||||
|
@ -3,8 +3,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
use pgtde;
|
||||
|
@ -3,7 +3,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
|
@ -3,8 +3,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
use File::Compare;
|
||||
use File::Copy;
|
||||
use Test::More;
|
||||
use lib 't';
|
||||
use pgtde;
|
||||
|
Loading…
x
Reference in New Issue
Block a user