Skip to content

Commit 6b77e3a

Browse files
committed
Forgot commit: support for special-cases in pgcrypto
1 parent 3024b0a commit 6b77e3a

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

src/tools/msvc/getregress.pl

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Script that collects a list of regression tests from a Makefile
33
#
4-
# $PostgreSQL: pgsql/src/tools/msvc/getregress.pl,v 1.1 2007/03/22 13:43:02 mha Exp $
4+
# $PostgreSQL: pgsql/src/tools/msvc/getregress.pl,v 1.2 2007/03/23 10:05:34 mha Exp $
55
#
66
use strict;
77
use warnings;
@@ -18,5 +18,29 @@
1818
{
1919
my $t = $1;
2020
$t =~ s/\s+/ /g;
21+
22+
if ($m =~ /contrib\/pgcrypto/)
23+
{
24+
25+
# pgcrypto is special since the tests depend on the configuration of the build
26+
our $config;
27+
require '../../src/tools/msvc/config.pl';
28+
29+
my $cftests = $config->{openssl}?GetTests("OSSL_TESTS",$m):GetTests("INT_TESTS",$m);
30+
my $pgptests = $config->{zlib}?GetTests("ZLIB_TST",$m):GetTests("ZLIB_OFF_TST",$m);
31+
$t =~ s/\$\(CF_TESTS\)/$cftests/;
32+
$t =~ s/\$\(CF_PGP_TESTS\)/$pgptests/;
33+
}
2134
print "SET TESTS=$t";
2235
}
36+
37+
sub GetTests
38+
{
39+
my $testname = shift;
40+
my $m = shift;
41+
if ($m =~ /^$testname\s*=\s*(.*)$/gm)
42+
{
43+
return $1;
44+
}
45+
return "";
46+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy