mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
* Fix indentation of Regression Test Results by making sure the
GetQMTestResults function closes all its open tags. * Cause XFAIL results to not be reported at all except in the stats. llvm-svn: 14067
This commit is contained in:
parent
fd820b72e6
commit
22208f45ef
@ -287,6 +287,7 @@ sub GetQMTestResults { # (filename)
|
||||
push(@lines,"<h3>TEST RESULTS</h3><ol><li>\n");
|
||||
my $first_list = 1;
|
||||
my $should_break = 1;
|
||||
my $nocopy = 0;
|
||||
while ( <SRCHFILE> ) {
|
||||
if ( length($_) > 1 ) {
|
||||
chomp($_);
|
||||
@ -294,7 +295,10 @@ sub GetQMTestResults { # (filename)
|
||||
! m/^ qmtest.target:/ &&
|
||||
! m/^ local/ &&
|
||||
! m/^gmake:/ ) {
|
||||
if ( m/: XFAIL/ || m/: XPASS/ || m/: FAIL/ ) {
|
||||
if ( m/: XFAIL/ ) {
|
||||
$nocopy = 1;
|
||||
} elsif ( m/: XPASS/ || m/: FAIL/ ) {
|
||||
$nocopy = 0;
|
||||
if ( $first_list ) {
|
||||
$first_list = 0;
|
||||
$should_break = 1;
|
||||
@ -306,13 +310,15 @@ sub GetQMTestResults { # (filename)
|
||||
if ( $first_list ) { push(@lines,"<b>PERFECT!</b>"); }
|
||||
push(@lines,"</li></ol><h3>STATISTICS</h3><pre>\n");
|
||||
$should_break = 0;
|
||||
$nocopy = 0;
|
||||
} elsif ( m/^--- TESTS WITH/ ) {
|
||||
$should_break = 1;
|
||||
$first_list = 1;
|
||||
$nocopy = 0;
|
||||
push(@lines,"</pre><h3>TESTS WITH UNEXPECTED RESULTS</h3><ol><li>\n");
|
||||
} elsif ( m/^real / ) {
|
||||
last;
|
||||
} else {
|
||||
} elsif (!$nocopy) {
|
||||
if ( $should_break ) {
|
||||
push(@lines,"$_<br/>\n");
|
||||
} else {
|
||||
@ -325,7 +331,7 @@ sub GetQMTestResults { # (filename)
|
||||
close SRCHFILE;
|
||||
}
|
||||
my $content = join("",@lines);
|
||||
return "$content</pre>\n";
|
||||
return "$content</li></ol>\n";
|
||||
}
|
||||
|
||||
# Get results of feature tests.
|
||||
|
Loading…
Reference in New Issue
Block a user