Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add upgrade test support for MSVC builds.

  • Loading branch information...
commit c9705b531c92d72f4bb204e07997fc4f2e621c66 1 parent 0705780
@adunstan adunstan authored
Showing with 12 additions and 3 deletions.
  1. +12 −3 PGBuild/Modules/TestUpgrade.pm
View
15 PGBuild/Modules/TestUpgrade.pm
@@ -32,7 +32,6 @@ sub setup
my $pgsql = shift; # postgres build dir
return unless ($branch eq 'HEAD' or $branch ge 'REL9_2');
- return if $conf->{using_msvc};
# could even set up several of these (e.g. for different branches)
my $self = {
@@ -58,8 +57,18 @@ sub installcheck
print main::time_str(), "checking pg_upgrade\n" if $verbose;
my @checklog;
- my $cmd = "cd $self->{pgsql}/contrib/pg_upgrade && make check";
- @checklog = `$cmd 2>&1`;
+
+ if ($self->{bfconf}->{using_msvc})
+ {
+ chdir "$self->{pgsql}/src/tools/msvc";
+ @checklog = `perl vcregress.pl upgradecheck 2>&1`;
+ chdir "$self->{build_root}/$self->{branch}";
+ }
+ else
+ {
+ my $cmd = "cd $self->{pgsql}/contrib/pg_upgrade && make check";
+ @checklog = `$cmd 2>&1`;
+ }
my $status = $? >>8;
Please sign in to comment.
Something went wrong with that request. Please try again.