From: Reid Spencer Date: Mon, 31 May 2004 20:59:55 +0000 (+0000) Subject: Clean up the Feature and Regression test output to (a) use section headers, X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa0bfbe3d1f9439a3212e0a96417618bff5a4cef;p=oota-llvm.git Clean up the Feature and Regression test output to (a) use section headers, (b) avoid
 tag so page width doesn't become excessive, (c) omit the
execution time stats, (d) format each reported test in a list with bold
headings for readability, (e) omit long lines of dashes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13912 91177308-0d34-0410-b5e6-96231b3b80d8
---

diff --git a/utils/NightlyTest.pl b/utils/NightlyTest.pl
index cf1d1b9c7a0..f34c3f696e8 100755
--- a/utils/NightlyTest.pl
+++ b/utils/NightlyTest.pl
@@ -272,28 +272,53 @@ sub GetQMTestResults { # (filename)
   if (open SRCHFILE, $filename) {
     # Skip stuff before ---TEST RESULTS
     while (  ) {
-      if ( m/^--- TEST RESULTS/ ) { 
-	  push(@lines, $_); last; 
-      }
+      if ( m/^--- TEST RESULTS/ ) { last; }
     }
     # Process test results
+    push(@lines,"

TEST RESULTS

  1. \n"); + my $first_list = 1; + my $should_break = 1; while ( ) { if ( length($_) > 1 ) { - if ( ! m/: PASS[ ]*$/ && - ! m/^ qmtest.target:/ && - ! m/^ local/ && - ! m/^gmake:/ ) { - push(@lines,$_); + chomp($_); + if ( ! m/: PASS[ ]*$/ && + ! m/^ qmtest.target:/ && + ! m/^ local/ && + ! m/^gmake:/ ) { + if ( m/: XFAIL/ || m/: XPASS/ || m/: FAIL/ ) { + if ( $first_list ) { + $first_list = 0; + $should_break = 1; + push(@lines,"$_
    \n"); + } else { + push(@lines,"
  2. $_
    \n"); + } + } elsif ( m/^--- STATISTICS/ ) { + if ( $first_list ) { push(@lines,"PERFECT!"); } + push(@lines,"

STATISTICS

\n");
+	    $should_break = 0;
+	  } elsif ( m/^--- TESTS WITH/ ) {
+	    $should_break = 1;
+	    $first_list = 1;
+	    push(@lines,"

TESTS WITH UNEXPECTED RESULTS

  1. \n"); + } elsif ( m/^real / ) { + last; + } else { + if ( $should_break ) { + push(@lines,"$_
    \n"); + } else { + push(@lines,"$_\n"); + } + } } } } close SRCHFILE; } my $content = join("",@lines); - return "
    \n@lines
    \n"; + return "$content
\n"; } - # Get results of feature tests. my $FeatureTestResults; # String containing the results of the feature tests my $FeatureTime; # System+CPU Time for feature tests