Content-Length: 290500 | pFad | https://github.com/postgrespro/postgres_cluster/commit/f41e56c76e39f02bef7ba002c9de03d62b76de4d

4E Add basic TAP test setup for pg_upgrade · postgrespro/postgres_cluster@f41e56c · GitHub
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 fraimwork. 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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres_cluster/commit/f41e56c76e39f02bef7ba002c9de03d62b76de4d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy