mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
360 B
18 lines
360 B
|
8 years ago
|
use strict;
|
||
|
|
use warnings;
|
||
|
|
|
||
|
|
use PostgresNode;
|
||
|
|
use TestLib;
|
||
|
|
use Test::More tests => 11;
|
||
|
|
|
||
|
|
program_help_ok('pg_resetwal');
|
||
|
|
program_version_ok('pg_resetwal');
|
||
|
|
program_options_handling_ok('pg_resetwal');
|
||
|
|
|
||
|
|
my $node = get_new_node('main');
|
||
|
|
$node->init;
|
||
|
|
|
||
|
|
command_like([ 'pg_resetwal', '-n', $node->data_dir ],
|
||
|
|
qr/checkpoint/,
|
||
|
|
'pg_resetwal -n produces output');
|