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

LLVM llvm at cs.uiuc.edu
Wed Jun 23 09:15:02 PDT 2004


Changes in directory llvm/utils:

NightlyTest.pl updated: 1.58 -> 1.59

---
Log message:

Move the tests for readability of the template and gnuplot files so they
occur AFTER the source is checked out. This ensures that if either of the
-gnuplotscript or -templatefile options are not given, that they get picked
up from the checkout directory and don't abort the test unnecessarily.


---
Diffs of the changes:  (+11 -11)

Index: llvm/utils/NightlyTest.pl
diff -u llvm/utils/NightlyTest.pl:1.58 llvm/utils/NightlyTest.pl:1.59
--- llvm/utils/NightlyTest.pl:1.58	Wed Jun 23 02:45:46 2004
+++ llvm/utils/NightlyTest.pl	Wed Jun 23 09:07:12 2004
@@ -268,7 +268,7 @@
   if (/^-debug$/)          { $DEBUG  = 1; next; }
   if (/^-nice$/)           { $NICE  = "nice "; next; }
   if (/^-gnuplotscript$/)  { $PlotScriptFilename = $ARGV[0]; shift; next; }
-  if (/^-templatefile$/)   { $Template = $ARGV[0]; shift;; next; }
+  if (/^-templatefile$/)   { $Template = $ARGV[0]; shift; next; }
   if (/^-noexternals$/)    { $NOEXTERNALS = 1; next; }
 
   print "Unknown option: $_ : ignoring!\n";
@@ -286,16 +286,6 @@
   $WebDir     = $ARGV[2];
 }
 
-if ( $Template eq "" ) {
-  $Template = "$BuildDir/llvm/utils/NightlyTestTemplate.html";
-}
-die "Template file $Template is not readable" if ( ! -r "$Template" );
-
-if ( $PlotScriptFilename eq "" ) {
-  $PlotScriptFilename = "$BuildDir/llvm/utils/NightlyTest.gnuplot";
-}
-die "GNUPlot Script $PlotScriptFilename is not readable" if ( ! -r "$PlotScriptFilename" );
-
 my $Prefix = "$WebDir/$DATE";
 
 #define the file names we'll use
@@ -352,6 +342,16 @@
   if ( $VERBOSE ) { print "UPDATE STAGE\n"; }
   system "$NICE cvs update -P -d >> $CVSLog 2>&1" ;
 }
+
+if ( $Template eq "" ) {
+  $Template = "$BuildDir/llvm/utils/NightlyTestTemplate.html";
+}
+die "Template file $Template is not readable" if ( ! -r "$Template" );
+
+if ( $PlotScriptFilename eq "" ) {
+  $PlotScriptFilename = "$BuildDir/llvm/utils/NightlyTest.gnuplot";
+}
+die "GNUPlot Script $PlotScriptFilename is not readable" if ( ! -r "$PlotScriptFilename" );
 
 # Read in the HTML template file...
 if ( $VERBOSE ) { print "READING TEMPLATE\n"; }





More information about the llvm-commits mailing list