Commit f41e56c7 authored by Peter Eisentraut's avatar Peter Eisentraut

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>
parent 71edbb6f
...@@ -36,8 +36,9 @@ clean distclean maintainer-clean: ...@@ -36,8 +36,9 @@ clean distclean maintainer-clean:
pg_upgrade_dump_globals.sql \ pg_upgrade_dump_globals.sql \
pg_upgrade_dump_*.custom pg_upgrade_*.log 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 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 installcheck:
# pg_upgrade against a single already-running server $(prove_installcheck)
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');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment