[llvm-commits] [llvm] r84481 - /llvm/trunk/utils/NewNightlyTest.pl

Daniel Dunbar daniel at zuster.org
Mon Oct 19 02:19:19 PDT 2009


Author: ddunbar
Date: Mon Oct 19 04:19:19 2009
New Revision: 84481

URL: http://llvm.org/viewvc/llvm-project?rev=84481&view=rev
Log:
NNT: Remove hard coded BuildDir and WebDir, users should have to specify these.

Modified:
    llvm/trunk/utils/NewNightlyTest.pl

Modified: llvm/trunk/utils/NewNightlyTest.pl
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/NewNightlyTest.pl?rev=84481&r1=84480&r2=84481&view=diff

==============================================================================
--- llvm/trunk/utils/NewNightlyTest.pl (original)
+++ llvm/trunk/utils/NewNightlyTest.pl Mon Oct 19 04:19:19 2009
@@ -112,9 +112,7 @@
 my $TestSVNURL = $ENV{"TestSVNURL"};
 $TestSVNURL    = 'http://llvm.org/svn/llvm-project' unless $TestSVNURL;
 my $BuildDir   = $ENV{'BUILDDIR'};
-$BuildDir      = "$HOME/buildtest" unless $BuildDir;
 my $WebDir     = $ENV{'WEBDIR'};
-$WebDir        = "$HOME/cvs/testresults-X86" unless $WebDir;
 
 my $LLVMSrcDir   = $ENV{'LLVMSRCDIR'};
 $LLVMSrcDir    = "$BuildDir/llvm" unless $LLVMSrcDir;
@@ -221,10 +219,6 @@
   print "Unknown option: $_ : ignoring!\n";
 }
 
-if (!($CONFIG_PATH eq "")) {
-  die "error: -config mode is not yet implemented,";
-}
-
 if ($ENV{'LLVMGCCDIR'}) {
   $CONFIGUREARGS .= " --with-llvmgccdir=" . $ENV{'LLVMGCCDIR'};
   $LLVMGCCPATH = $ENV{'LLVMGCCDIR'} . '/bin';
@@ -237,14 +231,15 @@
   $CONFIGUREARGS .= " --enable-jit";
 }
 
-if (@ARGV != 0 and @ARGV != 3 and $VERBOSE) {
-  foreach $x (@ARGV) {
-    print "$x\n";
-  }
-  print "Must specify 0 or 3 options!";
+if (@ARGV != 0 and @ARGV != 3) {
+  die "error: must specify 0 or 3 options!";
 }
 
 if (@ARGV == 3) {
+  if ($CONFIG_PATH ne "") {
+      die "error: arguments are unsupported in -config mode,";
+  }
+
   # ARGV[0] used to be the CVS root, ignored for backward compatibility.
   $BuildDir   = $ARGV[1];
   $WebDir     = $ARGV[2];
@@ -264,6 +259,10 @@
   $BUILDTYPE = "debug";
 }
 
+if ($CONFIG_PATH ne "") {
+  die "error: -config mode is not yet implemented,";
+}
+
 ##############################################################
 #
 # Define the file names we'll use





More information about the llvm-commits mailing list