Skip to content

Commit 8600031

Browse files
committed
Fix obsolete config-module-exclusion logic in vcregress.pl.
The recent addition of regression tests to uuid-ossp exposed the fact that the MSVC build system wasn't being consistent about whether it was building/testing that contrib module, ie, it would try to test the module even when it hadn't built it. The same hazard was latent for sslinfo. For the moment I just copied the more up-to-date logic from point A to point B, but this is screaming for refactoring. Per buildfarm results.
1 parent 4bcb394 commit 8600031

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/tools/msvc/Install.pm

+1
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ sub CopyContribFiles
408408
next
409409
if ($insttype eq "client" && !grep { $_ eq $d } @client_contribs);
410410

411+
# these configuration-based exclusions must match vcregress.pl
411412
next if ($d eq "uuid-ossp" && !defined($config->{uuid}));
412413
next if ($d eq "sslinfo" && !defined($config->{openssl}));
413414
next if ($d eq "xml2" && !defined($config->{xml}));

src/tools/msvc/vcregress.pl

+6-2
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,12 @@ sub contribcheck
219219
my $mstat = 0;
220220
foreach my $module (glob("*"))
221221
{
222-
next if ($module eq 'sepgsql');
223-
next if ($module eq 'xml2' && !$config->{xml});
222+
# these configuration-based exclusions must match Install.pm
223+
next if ($module eq "uuid-ossp" && !defined($config->{uuid}));
224+
next if ($module eq "sslinfo" && !defined($config->{openssl}));
225+
next if ($module eq "xml2" && !defined($config->{xml}));
226+
next if ($module eq "sepgsql");
227+
224228
next
225229
unless -d "$module/sql"
226230
&& -d "$module/expected"

0 commit comments

Comments
 (0)