git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
testsuite: fix runtest (File::Copy used in another place)
[exim.git]
/
test
/
runtest
diff --git
a/test/runtest
b/test/runtest
index 0b236bca1cb7bb07e9f506f2084b90a049e3e818..858617957572437c3da31bb4f33a4b54c400fcaa 100755
(executable)
--- a/
test/runtest
+++ b/
test/runtest
@@
-33,7
+33,7
@@
use File::Copy;
use lib "$RealBin/lib";
use Exim::Runtest;
use lib "$RealBin/lib";
use Exim::Runtest;
-use Exim::Utils qw(uniq numerically);
+use Exim::Utils qw(uniq numerically
cp
);
use if $ENV{DEBUG} && scalar($ENV{DEBUG} =~ /\bruntest\b/) => 'Smart::Comments' => '####';
use if $ENV{DEBUG} && scalar($ENV{DEBUG} =~ /\bruntest\b/) => 'Data::Dumper';
use if $ENV{DEBUG} && scalar($ENV{DEBUG} =~ /\bruntest\b/) => 'Smart::Comments' => '####';
use if $ENV{DEBUG} && scalar($ENV{DEBUG} =~ /\bruntest\b/) => 'Data::Dumper';
@@
-2942,6
+2942,7
@@
GetOptions(
'valgrind' => \$valgrind,
'range=s{2}' => \my @range_wanted,
'test=i@' => \my @tests_wanted,
'valgrind' => \$valgrind,
'range=s{2}' => \my @range_wanted,
'test=i@' => \my @tests_wanted,
+ 'fail-any!' => \my $fail_any,
'flavor|flavour=s' => \$flavour,
'help' => sub { pod2usage(-exit => 0) },
'man' => sub {
'flavor|flavour=s' => \$flavour,
'help' => sub { pod2usage(-exit => 0) },
'man' => sub {
@@
-3745,17
+3746,15
@@
system("sudo cp eximdir/exim eximdir/exim_exim;" .
($parm_exim_dir) = $parm_exim =~ m?^(.*)/exim?;
$dbm_build_deleted = 0;
($parm_exim_dir) = $parm_exim =~ m?^(.*)/exim?;
$dbm_build_deleted = 0;
-if (defined $parm_lookups{dbm} && not c
opy("$parm_exim_dir/exim_dbmbuild", "eximdir
"))
+if (defined $parm_lookups{dbm} && not c
p("$parm_exim_dir/exim_dbmbuild", "eximdir/exim_dbmbuild
"))
{
delete $parm_lookups{dbm};
$dbm_build_deleted = 1;
}
foreach my $tool (qw(exim_dumpdb exim_lock exinext exigrep eximstats)) {
{
delete $parm_lookups{dbm};
$dbm_build_deleted = 1;
}
foreach my $tool (qw(exim_dumpdb exim_lock exinext exigrep eximstats)) {
- c
opy("$parm_exim_dir/$tool" => "eximdir/
")
+ c
p("$parm_exim_dir/$tool" => "eximdir/$tool
")
or tests_exit(-1, "Failed to make a copy of $tool: $!");
or tests_exit(-1, "Failed to make a copy of $tool: $!");
- chmod((stat "$parm_exim_dir/$tool")[2]&07777, "eximdir/$tool")
- or tests_exit(-1, "Failed to chmod $tool: $!\n");
}
# Collect some version information
}
# Collect some version information
@@
-4518,7
+4517,7
@@
foreach $test (@test_list)
##################################################
tests_exit(-1, "No runnable tests selected") if not @test_list;
##################################################
tests_exit(-1, "No runnable tests selected") if not @test_list;
-tests_exit($fail
ures
);
+tests_exit($fail
_any ? $failures : 0
);
__END__
__END__