blob: 9d83c3ea247d844ebed1b17910889029a2b42f2e (
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
|
#!/usr/local/bin/perl
sub usage { die "usage: $0 reportfile\n"; }
$report = shift(@ARGV) || die &usage;
open(REPORT, $report) || die "Couldn't open $report: $!\n";
while(<REPORT>) {
if (/Process termination:/ && !/\bOK\b/) {
warn "Process termination not OK\n";
$warnings++;
} elsif (/Number of detected mismatches:\s*(\d+)/ && ($1 ne "0")) {
warn "Number of detected mismatches = $1\n";
$warnings++;
} elsif (/Detailed Results Description/) {
break;
}
}
while(<REPORT>) {
next if !/^\d+\s+/;
split;
if (($_[2] ne "run") &&
($_[2] ne "OK") &&
($_[2] ne "end-of-test")) {
warn "Unexpected result code $_[2] from test $_[4]\n";
$warnings++;
}
}
if ($warnings) {
warn "$warnings warnings.\n";
}
exit($warnings);
|