Skip to content

Commit 5700aa1

Browse files
committed
pg_resetwal: Add simple test suite
Some subsequent patches will add to this, but to avoid conflicts, set up the basics separately.
1 parent 2111a48 commit 5700aa1

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

src/bin/pg_resetwal/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/pg_resetwal
2+
/tmp_check/

src/bin/pg_resetwal/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ uninstall:
3333

3434
clean distclean maintainer-clean:
3535
rm -f pg_resetwal$(X) $(OBJS)
36+
rm -rf tmp_check
37+
38+
check:
39+
$(prove_check)
40+
41+
installcheck:
42+
$(prove_installcheck)

src/bin/pg_resetwal/t/001_basic.pl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
use strict;
2+
use warnings;
3+
4+
use PostgresNode;
5+
use TestLib;
6+
use Test::More tests => 11;
7+
8+
program_help_ok('pg_resetwal');
9+
program_version_ok('pg_resetwal');
10+
program_options_handling_ok('pg_resetwal');
11+
12+
my $node = get_new_node('main');
13+
$node->init;
14+
15+
command_like([ 'pg_resetwal', '-n', $node->data_dir ],
16+
qr/checkpoint/,
17+
'pg_resetwal -n produces output');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy