|
1 | 1 |
|
2 | 2 | # -*-perl-*- hey - emacs - this is a perl file
|
3 | 3 |
|
4 |
| -# $PostgreSQL: pgsql/src/tools/msvc/vcregress.pl,v 1.12 2009/12/19 02:44:06 tgl Exp $ |
| 4 | +# $PostgreSQL: pgsql/src/tools/msvc/vcregress.pl,v 1.13 2010/01/09 15:25:41 adunstan Exp $ |
5 | 5 |
|
6 | 6 | use strict;
|
7 | 7 |
|
@@ -151,14 +151,29 @@ sub plcheck
|
151 | 151 | my $lang = $pl eq 'tcl' ? 'pltcl' : $pl;
|
152 | 152 | next unless -d "../../$Config/$lang";
|
153 | 153 | $lang = 'plpythonu' if $lang eq 'plpython';
|
| 154 | + my @lang_args = ( "--load-language=$lang" ); |
154 | 155 | chdir $pl;
|
| 156 | + my @tests = fetchTests(); |
| 157 | + if ($lang eq 'plperl') |
| 158 | + { |
| 159 | + # run both trusted and untrusted perl tests |
| 160 | + push (@lang_args, "--load-language=plperlu"); |
| 161 | + |
| 162 | + # assume we're using this perl to built postgres |
| 163 | + # test if we can run two interpreters in one backend, and if so |
| 164 | + # run the trusted/untrusted interaction tests |
| 165 | + use Config; |
| 166 | + if ($Config{usemultiplicity} eq 'define') |
| 167 | + { |
| 168 | + push(@tests,'plperl_plperlu'); |
| 169 | + } |
| 170 | + } |
155 | 171 | print "============================================================\n";
|
156 | 172 | print "Checking $lang\n";
|
157 |
| - my @tests = fetchTests(); |
158 | 173 | my @args = (
|
159 | 174 | "../../../$Config/pg_regress/pg_regress",
|
160 | 175 | "--psqldir=../../../$Config/psql",
|
161 |
| - "--dbname=pl_regression","--load-language=$lang",@tests |
| 176 | + "--dbname=pl_regression",@lang_args,@tests |
162 | 177 | );
|
163 | 178 | system(@args);
|
164 | 179 | my $status = $? >> 8;
|
|
0 commit comments