|
|
@ -1,7 +1,7 @@ |
|
|
|
use strict; |
|
|
|
use strict; |
|
|
|
use warnings; |
|
|
|
use warnings; |
|
|
|
use TestLib; |
|
|
|
use TestLib; |
|
|
|
use Test::More tests => 10; |
|
|
|
use Test::More tests => 11; |
|
|
|
|
|
|
|
|
|
|
|
my $tempdir = TestLib::tempdir; |
|
|
|
my $tempdir = TestLib::tempdir; |
|
|
|
my $tempdir_short = TestLib::tempdir_short; |
|
|
|
my $tempdir_short = TestLib::tempdir_short; |
|
|
@ -10,6 +10,9 @@ program_help_ok('pg_ctl'); |
|
|
|
program_version_ok('pg_ctl'); |
|
|
|
program_version_ok('pg_ctl'); |
|
|
|
program_options_handling_ok('pg_ctl'); |
|
|
|
program_options_handling_ok('pg_ctl'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
command_exit_is([ 'pg_ctl', 'start', '-D', "$tempdir/nonexistent" ], |
|
|
|
|
|
|
|
1, 'pg_ctl start with nonexistent directory'); |
|
|
|
|
|
|
|
|
|
|
|
command_ok([ 'pg_ctl', 'initdb', '-D', "$tempdir/data" ], 'pg_ctl initdb'); |
|
|
|
command_ok([ 'pg_ctl', 'initdb', '-D', "$tempdir/data" ], 'pg_ctl initdb'); |
|
|
|
open CONF, ">>$tempdir/data/postgresql.conf"; |
|
|
|
open CONF, ">>$tempdir/data/postgresql.conf"; |
|
|
|
print CONF "listen_addresses = ''\n"; |
|
|
|
print CONF "listen_addresses = ''\n"; |
|
|
|