Skip to content

Commit f41e56c

Browse files
committed
Add basic TAP test setup for pg_upgrade
The plan is to convert the current pg_upgrade test to the TAP framework. This commit just puts a basic TAP test in place so that we can see how the build farm behaves, since the build farm client has some special knowledge of the pg_upgrade tests. Author: Michael Paquier <michael.paquier@gmail.com>
1 parent 71edbb6 commit f41e56c

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::More tests => 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)
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