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

Commitf41e56c

Browse files
committed
Add basic TAP test setup for pg_upgrade
The plan is to convert the current pg_upgrade test to the TAPframework. This commit just puts a basic TAP test in place so that wecan see how the build farm behaves, since the build farm client has somespecial knowledge of the pg_upgrade tests.Author: Michael Paquier <michael.paquier@gmail.com>
1 parent71edbb6 commitf41e56c

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

‎src/bin/pg_upgrade/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ clean distclean maintainer-clean:
3636
pg_upgrade_dump_globals.sql\
3737
pg_upgrade_dump_*.custom pg_upgrade_*.log
3838

39-
check: test.sh all
39+
check: test.sh
40+
$(prove_check)
4041
MAKE=$(MAKE) bindir=$(bindir) libdir=$(libdir) EXTRA_REGRESS_OPTS="$(EXTRA_REGRESS_OPTS)"$(SHELL)$< --install
4142

42-
#installcheck is not supported because there's no meaningful way to test
43-
# pg_upgrade against a single already-running server
43+
installcheck:
44+
$(prove_installcheck)

‎src/bin/pg_upgrade/t/001_basic.pl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use strict;
2+
use warnings;
3+
4+
use TestLib;
5+
use Test::Moretests=> 8;
6+
7+
program_help_ok('pg_upgrade');
8+
program_version_ok('pg_upgrade');
9+
program_options_handling_ok('pg_upgrade');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp