| Test | '; -print 'Ref | ' if $config_show_ref; foreach my $target (@targets) { print '', $target, ' | '; @@ -166,7 +185,6 @@ foreach my $target (@targets) { printl '
|---|---|---|
| '; -print ' | ' if $config_show_ref; foreach my $target (@targets) { print ' | '; @@ -178,37 +196,6 @@ foreach my $target (@targets) { } printl ' | "; + my %testfiles; + $testfiles{'out'} = $testres->{'out'}; + $testfiles{'diff'} = $testres->{'diff'}; + $testfiles{'ref'} = $testres->{'ref'}; + + $testline .= " | {'result'}\">";
$teststats{$target}{$testres}++;
- if ($testres eq "PASS") {
+ if ($testres->{'result'} eq "PASS") {
if ($config_show_all) {
- $testline .= img_for($testfiles{'out'},1);
+ $testline .= img_for($testfiles{'out'},1);
}
- } elsif ($testres eq "FAIL") {
+ } elsif ($testres->{'result'} eq "FAIL") {
if ($config_show_fail || $config_show_all) {
- $testline .= img_for($testfiles{'out'},1);
+ $testline .= img_for($testfiles{'out'},1);
$testline .= " ";
- $testline .= img_for($testfiles{'diff'},1);
+ $testline .= img_for($testfiles{'diff'},1);
+ $testline .= " ";
+ $testline .= img_for($testfiles{'ref'},1);
}
- } elsif ($testres eq "CRASHED") {
- $testline .= "!!!CRASHED!!!";
- } elsif ($testres eq "XFAIL") {
+ } elsif ($testres->{'result'} eq "CRASHED") {
+ $testline .= "!!!CRASHED!!!";
+ } elsif ($testres->{'result'} eq "XFAIL") {
#nothing
if ($config_show_all) {
- $testline .= img_for($testfiles{'out'},1);
+ $testline .= img_for($testfiles{'out'},1);
#$testline .= " "; $testline .= " "; - $testline .= img_for($testfiles{'diff'},1); + $testline .= img_for($testfiles{'diff'},1); + $testline .= " "; + $testline .= img_for($testfiles{'ref'},1); } - } elsif ($testres eq "UNTESTED") { + } elsif ($testres->{'result'} eq "UNTESTED") { #nothing } else { - $testline .= "UNSUPPORTED STATUS (update make-html.pl)"; - } + $testline .= "UNSUPPORTED STATUS '$testres->{'result'}' (update make-html.pl)"; + } $testline .= " | ";
} else {
@@ -275,23 +269,18 @@ foreach my $test (sort(keys %$tests)) {
$testline .= ''; } } - my $testref = testref($test, $format); print ' |
| '; if ($config_show_inline) { print "$test ($format/$offset) "; print "({$test}) . "\">log)"; } else { - print "", $test, ' (', $format, '/', $offset, ($similar ? ' similar' : ''), ') '; + print $test, ' (', $format, '/', $offset, ($similar ? ' similar' : ''), ') '; print "(log)"; } print ' | '; - if ($config_show_ref) { - print "" . img_for($testref,1) . " | "; - } - print $testline; print "