1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

Add vcregress.pl target for checking pg_upgrade.

This follows recent addition of Windows/Mingw testing.
Backpatch to Release 9.2 so we can get some buildfarm testing
going.
This commit is contained in:
Andrew Dunstan
2012-09-10 12:47:50 -04:00
parent 59f23fe8d4
commit a1d021e5d2
2 changed files with 87 additions and 8 deletions

View File

@ -37,9 +37,16 @@ sub Install
$| = 1;
my $target = shift;
our $config;
require "config_default.pl";
require "config.pl" if (-f "config.pl");
# if called from vcregress, the config will be passed to us
# so no need to re-include these
our $config = shift;
unless ($config)
{
# suppress warning about harmless redeclaration of $config
no warnings 'misc';
require "config_default.pl";
require "config.pl" if (-f "config.pl");
}
chdir("../../..") if (-f "../../../configure");
chdir("../../../..") if (-f "../../../../configure");