blob: 56dc7e1c51a4f0a8ab3c64bf84b29159d165d743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# -*- perl -*-
use lib "$ENV{ACE_ROOT}/bin";
use PerlACE::TestTarget;
use Cwd;
my @list=("run_failover_test.pl",
"run_persistence_test.pl",
"run_equivalence_test.pl",
"run_backup_restart_test.pl");
my $status = 0;
my $debug_option = '';
foreach $i (@ARGV) {
if ($i eq '-debug') {
$debug_option = '-debug';
}
}
for $cmd (@list) {
if (-f $cmd) {
if (system ("perl $cmd $debug_option") != 0) {
$status = 1;
}
} else {
print STDERR "ERROR: Can't find $cmd\n";
}
}
my $test_label = "FT_Naming FaultTolerant";
if ($status != 0) {
print STDERR "ERROR: One or more $test_label tests Failed\n";
} else {
print STDERR "INFO: All $test_label tests report OK\n";
}
exit $status;
|