[llvm-commits] CVS: llvm/utils/NightlyTest.pl NightlyTestTemplate.html

Misha Brukman brukman at cs.uiuc.edu
Tue Jan 11 19:31:49 PST 2005



Changes in directory llvm/utils:

NightlyTest.pl updated: 1.87 -> 1.88
NightlyTestTemplate.html updated: 1.39 -> 1.40
---
Log message:

Use and print out BuildStatus, we don't always have build errors.


---
Diffs of the changes:  (+6 -5)

Index: llvm/utils/NightlyTest.pl
diff -u llvm/utils/NightlyTest.pl:1.87 llvm/utils/NightlyTest.pl:1.88
--- llvm/utils/NightlyTest.pl:1.87	Tue Jan 11 13:51:24 2005
+++ llvm/utils/NightlyTest.pl	Tue Jan 11 21:31:38 2005
@@ -414,11 +414,12 @@
 my $BuildTime  = $BuildTimeU+$BuildTimeS;  # BuildTime = User+System
 my $BuildWallTime = GetRegexNum "^real", 1, "([0-9.]+)","$BuildLog";
 
-my $BuildError = "";
+my $BuildError = 0, $BuildStatus = "OK";
 if (`grep '^gmake[^:]*: .*Error' $BuildLog | wc -l` + 0 ||
     `grep '^gmake: \*\*\*.*Stop.' $BuildLog | wc -l`+0) {
-  $BuildError = "<h3><font color='red'>error: compilation " .
+  $BuildStatus = "<h3><font color='red'>error: compilation " .
                 "<a href=\"$DATE-Build-Log.txt\">aborted</a></font></h3>";
+  $BuildError = 1;
   if ($VERBOSE) { print "BUILD ERROR\n"; }
 }
 
@@ -589,7 +590,7 @@
 }
 
 # If we built the tree successfully, run the nightly programs tests...
-if ($BuildError eq "") {
+if (!$BuildError) {
   if ( $VERBOSE ) {
     print "SingleSource TEST STAGE\n";
   }
@@ -663,7 +664,7 @@
 
 # If we built the tree successfully, runs of the Olden suite with
 # LARGE_PROBLEM_SIZE on so that we can get some "running" statistics.
-if ($BuildError eq "") {
+if (!$BuildError) {
   if ( $VERBOSE ) { print "OLDEN TEST SUITE STAGE\n"; }
   my ($NATTime, $CBETime, $LLCTime, $JITTime, $OptTime, $BytecodeSize,
       $MachCodeSize) = ("","","","","","","");


Index: llvm/utils/NightlyTestTemplate.html
diff -u llvm/utils/NightlyTestTemplate.html:1.39 llvm/utils/NightlyTestTemplate.html:1.40
--- llvm/utils/NightlyTestTemplate.html:1.39	Tue Jan 11 12:27:16 2005
+++ llvm/utils/NightlyTestTemplate.html	Tue Jan 11 21:31:38 2005
@@ -73,7 +73,7 @@
 <li>Number of object files compiled: <b>$NumObjects</b></li>
 <li>Number of libraries linked: <b>$NumLibraries</b></li>
 <li>Number of executables linked:<b> $NumExecutables</b></li>
-<li>Build Status: $BuildError</li>
+<li>Build Status: $BuildStatus</li>
 </ul>
 
 <h2>Warnings during the build:</h2>






More information about the llvm-commits mailing list