while (my $d = readdir($D))
{
# These configuration-based exclusions must match vcregress.pl
- next if ($d eq "uuid-ossp" && !defined($config->{uuid}));
- next if ($d eq "sslinfo" && !defined($config->{openssl}));
- next if ($d eq "xml2" && !defined($config->{xml}));
- next if ($d =~ /_plperl$/ && !defined($config->{perl}));
- next if ($d =~ /_plpython$/ && !defined($config->{python}));
+ next if ($d eq "uuid-ossp" && !defined($config->{uuid}));
+ next if ($d eq "sslinfo" && !defined($config->{openssl}));
+ next if ($d eq "xml2" && !defined($config->{xml}));
+ next if ($d =~ /_plperl$/ && !defined($config->{perl}));
+ next if ($d =~ /_plpython$/ && !defined($config->{python}));
next if ($d eq "sepgsql");
CopySubdirFiles($subdir, $d, $config, $target);
foreach my $test (@$tests)
{
local $/ = undef;
- foreach my $dir ('sql','expected')
+ foreach my $dir ('sql', 'expected')
{
my $extension = ($dir eq 'sql' ? 'sql' : 'out');
- my @files = glob("$dir/$test.$extension $dir/${test}_[0-9].$extension");
+ my @files =
+ glob("$dir/$test.$extension $dir/${test}_[0-9].$extension");
foreach my $file (@files)
{
- open(my $handle, '<', $file) || die "test file $file not found";
+ open(my $handle, '<', $file)
+ || die "test file $file not found";
my $contents = <$handle>;
close($handle);
do
s/LANGUAGE plpython2?u/LANGUAGE plpython3u/g;
s/EXTENSION ([^ ]*_)*plpython2?u/EXTENSION $1plpython3u/g;
s/installing required extension "plpython2u"/installing required extension "plpython3u"/g;
- } for ($contents);
+ }
+ for ($contents);
my $base = basename $file;
- open($handle, '>', "$dir/python3/$base") ||
- die "opening python 3 file for $file";
+ open($handle, '>', "$dir/python3/$base")
+ || die "opening python 3 file for $file";
print $handle $contents;
close($handle);
}
}
}
- do { s!^!python3/!; } foreach(@$tests);
+ do { s!^!python3/!; }
+ foreach (@$tests);
return @$tests;
}
}
if ($lang eq 'plpython')
{
- next unless -d "$topdir/$Config/plpython2" ||
- -d "$topdir/$Config/plpython3";
+ next
+ unless -d "$topdir/$Config/plpython2"
+ || -d "$topdir/$Config/plpython3";
$lang = 'plpythonu';
}
else
chdir $dir;
my @tests = fetchTests();
@tests = mangle_plpython3(\@tests)
- if $lang eq 'plpythonu' && -d "$topdir/$Config/plpython3";
+ if $lang eq 'plpythonu' && -d "$topdir/$Config/plpython3";
if ($lang eq 'plperl')
{
# Special processing for python transform modules, see their respective
# Makefiles for more details regarding Python-version specific
# dependencies.
- if ( $module =~ /_plpython$/ )
+ if ($module =~ /_plpython$/)
{
die "Python not enabled in configuration"
if !defined($config->{python});
"$topdir/$Config/pg_regress/pg_regress",
"--bindir=${topdir}/${Config}/psql",
"--dbname=contrib_regression", @opts, @tests);
- print join(' ',@args),"\n";
+ print join(' ', @args), "\n";
system(@args);
chdir "..";
}
foreach my $module (glob("*"))
{
# these configuration-based exclusions must match Install.pm
- next if ($module eq "uuid-ossp" && !defined($config->{uuid}));
- next if ($module eq "sslinfo" && !defined($config->{openssl}));
- next if ($module eq "xml2" && !defined($config->{xml}));
- next if ($module =~ /_plperl$/ && !defined($config->{perl}));
- next if ($module =~ /_plpython$/ && !defined($config->{python}));
+ next if ($module eq "uuid-ossp" && !defined($config->{uuid}));
+ next if ($module eq "sslinfo" && !defined($config->{openssl}));
+ next if ($module eq "xml2" && !defined($config->{xml}));
+ next if ($module =~ /_plperl$/ && !defined($config->{perl}));
+ next if ($module =~ /_plpython$/ && !defined($config->{python}));
next if ($module eq "sepgsql");
subdircheck($module);