Skip to content

Commit

Permalink
Add basic TAP test setup for pg_upgrade
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
petere committed Sep 19, 2017
1 parent 71edbb6 commit f41e56c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/bin/pg_upgrade/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ clean distclean maintainer-clean:
pg_upgrade_dump_globals.sql \
pg_upgrade_dump_*.custom pg_upgrade_*.log

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

# installcheck is not supported because there's no meaningful way to test
# pg_upgrade against a single already-running server
installcheck:
$(prove_installcheck)
9 changes: 9 additions & 0 deletions src/bin/pg_upgrade/t/001_basic.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use strict;
use warnings;

use TestLib;
use Test::More tests => 8;

program_help_ok('pg_upgrade');
program_version_ok('pg_upgrade');
program_options_handling_ok('pg_upgrade');

0 comments on commit f41e56c

Please sign in to comment.