summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorAndrew Dunstan2010-01-09 15:25:41 +0000
committerAndrew Dunstan2010-01-09 15:25:41 +0000
commit510f3502ebb43afd3e05fa5b67352fe5a6db20bc (patch)
treeef1fb11cb6ca0973addf4c9b612b618617c734d0 /src/tools
parent0346442b5dea141bb5df66a61133a43d522a23fe (diff)
Provide regression testing for plperlu, and for plperl+plperlu interaction.
The latter are only run if the platform can run both interpreters in the same backend.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/msvc/vcregress.pl21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl
index 967238482f7..1869588e927 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.12 2009/12/19 02:44:06 tgl Exp $
+# $PostgreSQL: pgsql/src/tools/msvc/vcregress.pl,v 1.13 2010/01/09 15:25:41 adunstan Exp $
use strict;
@@ -151,14 +151,29 @@ sub plcheck
my $lang = $pl eq 'tcl' ? 'pltcl' : $pl;
next unless -d "../../$Config/$lang";
$lang = 'plpythonu' if $lang eq 'plpython';
+ my @lang_args = ( "--load-language=$lang" );
chdir $pl;
+ my @tests = fetchTests();
+ if ($lang eq 'plperl')
+ {
+ # run both trusted and untrusted perl tests
+ push (@lang_args, "--load-language=plperlu");
+
+ # assume we're using this perl to built postgres
+ # test if we can run two interpreters in one backend, and if so
+ # run the trusted/untrusted interaction tests
+ use Config;
+ if ($Config{usemultiplicity} eq 'define')
+ {
+ push(@tests,'plperl_plperlu');
+ }
+ }
print "============================================================\n";
print "Checking $lang\n";
- my @tests = fetchTests();
my @args = (
"../../../$Config/pg_regress/pg_regress",
"--psqldir=../../../$Config/psql",
- "--dbname=pl_regression","--load-language=$lang",@tests
+ "--dbname=pl_regression",@lang_args,@tests
);
system(@args);
my $status = $? >> 8;