From: Andrew Dunstan Date: Tue, 2 Mar 2010 18:16:16 +0000 (+0000) Subject: Do not run regression tests for contrib/xml2 on MSVC unless building with XML X-Git-Tag: REL8_4_3~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=104813c6a7a1d2e559c051b807fd0d3f0326b9c3;p=postgresql Do not run regression tests for contrib/xml2 on MSVC unless building with XML --- diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 9566a99976..80d6089a0a 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -1,7 +1,7 @@ # -*-perl-*- hey - emacs - this is a perl file -# $PostgreSQL: pgsql/src/tools/msvc/vcregress.pl,v 1.10 2008/12/01 13:39:45 tgl Exp $ +# $PostgreSQL: pgsql/src/tools/msvc/vcregress.pl,v 1.10.2.1 2010/03/02 18:16:16 adunstan Exp $ use strict; @@ -14,6 +14,8 @@ my $startdir = getcwd(); chdir "../../.." if (-d "../../../src/tools/msvc"); +require 'src/tools/msvc/config.pl'; + # buildenv.pl is for specifying the build environment settings # it should contian lines like: # $ENV{PATH} = "c:/path/to/bison/bin;$ENV{PATH}"; @@ -178,6 +180,7 @@ sub contribcheck my $mstat = 0; foreach my $module (glob("*")) { + next if ($module eq 'xml2' && ! $config->{xml}); next unless -d "$module/sql" && -d "$module/expected" && (-f "$module/Makefile" || -f "$module/GNUmakefile");