Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5700aa1

Browse files
committed
pg_resetwal: Add simple test suite
Some subsequent patches will add to this, but to avoid conflicts, set upthe basics separately.
1 parent2111a48 commit5700aa1

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
cleandistcleanmaintainer-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::Moretests=> 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)

[8]ページ先頭

©2009-2025 Movatter.jp