]> granicus.if.org Git - postgresql/commitdiff
Fix vcregress.pl's bincheck
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 21 Nov 2015 14:20:08 +0000 (09:20 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 21 Nov 2015 14:20:08 +0000 (09:20 -0500)
We didn't have InstallTemp() in 9.4, that was implemented in 9.5, but
it's used by the new bincheck code, so add it for 9.4.

src/tools/msvc/vcregress.pl

index 5bc8dbc7fc5f60facda48edd4ba8e832963b7b00..a5fbb55d2b443ad18af4ce14b7aa0269738dcb23 100644 (file)
@@ -18,6 +18,7 @@ my $startdir = getcwd();
 chdir "../../.." if (-d "../../../src/tools/msvc");
 
 my $topdir = getcwd();
+my $tmp_installdir = "$topdir/tmp_install";
 
 require 'src/tools/msvc/config_default.pl';
 require 'src/tools/msvc/config.pl' if (-f 'src/tools/msvc/config.pl');
@@ -465,6 +466,12 @@ sub GetTests
        return "";
 }
 
+sub InstallTemp
+{
+   print "Setting up temp install\n\n";
+   Install("$tmp_installdir", "all", $config);
+}
+
 sub usage
 {
        print STDERR