diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-06-23 14:07:12 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-06-23 14:07:12 +0000 |
commit | 250b03184a5a72da47c61d2a33dc4b7943f9bb70 (patch) | |
tree | 3858fa3e0bc607095dbd6cc5cb626977ccbdfb98 /llvm/utils | |
parent | 2e44d8748c4e1970ae8d0a5390362175870c50a0 (diff) | |
download | bcm5719-llvm-250b03184a5a72da47c61d2a33dc4b7943f9bb70.tar.gz bcm5719-llvm-250b03184a5a72da47c61d2a33dc4b7943f9bb70.zip |
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.
llvm-svn: 14346
Diffstat (limited to 'llvm/utils')
-rwxr-xr-x | llvm/utils/NightlyTest.pl | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/utils/NightlyTest.pl b/llvm/utils/NightlyTest.pl index 7884a6a9707..67da24f4472 100755 --- a/llvm/utils/NightlyTest.pl +++ b/llvm/utils/NightlyTest.pl @@ -268,7 +268,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { 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 @@ if (@ARGV == 3) { $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 @@ -353,6 +343,16 @@ if (!$NOCHECKOUT) { 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"; } my $TemplateContents = ReadFile $Template; |