File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 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#
66use strict;
77use warnings;
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+ }
You can’t perform that action at this time.
0 commit comments