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

Patrick Jenkins pjenkins at apple.com
Wed Jul 26 18:17:31 PDT 2006



Changes in directory llvm/utils:

NewNightlyTest.pl updated: 1.27 -> 1.28
---
Log message:

added support for the -use-gmake option. This will come in handy when running the test on SunOS.


---
Diffs of the changes:  (+10 -12)

 NewNightlyTest.pl |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)


Index: llvm/utils/NewNightlyTest.pl
diff -u llvm/utils/NewNightlyTest.pl:1.27 llvm/utils/NewNightlyTest.pl:1.28
--- llvm/utils/NewNightlyTest.pl:1.27	Wed Jul 26 20:03:46 2006
+++ llvm/utils/NewNightlyTest.pl	Wed Jul 26 20:17:17 2006
@@ -52,6 +52,8 @@
 #                   the default.
 #  -compileflags    Next argument specifies extra options passed to make when
 #                   building LLVM.
+#  -use-gmake    		Use gmake instead of the default make command to build
+#                   llvm and run tests.
 #
 #  ---------------- Options to configure llvm-test ----------------------------
 #  -extraflags      Next argument specifies extra options that are passed to
@@ -108,6 +110,7 @@
 $nickname="";
 $NOTEST=0;
 $NORUNNINGTESTS=0;
+$MAKECMD="make";
 
 while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
     shift;
@@ -122,8 +125,8 @@
     if (/^-norunningtests$/) { $NORUNNINGTESTS = 1; next; }
     if (/^-parallel$/)       { $MAKEOPTS = "$MAKEOPTS -j2 -l3.0"; next; }
     if (/^-release$/)        { $MAKEOPTS = "$MAKEOPTS ENABLE_OPTIMIZED=1 ".
-    						   "OPTIMIZE_OPTION=-O2"; 
-    						   $BUILDTYPE="release"; next; }
+    						   						             "OPTIMIZE_OPTION=-O2"; 
+    						               $BUILDTYPE="release"; next; }
     if (/^-enable-llcbeta$/) { $PROGTESTOPTS .= " ENABLE_LLCBETA=1"; next; }
     if (/^-disable-llc$/)    { $PROGTESTOPTS .= " DISABLE_LLC=1";
 			       $CONFIGUREARGS .= " --disable-llc_diffs"; next; } 
@@ -162,6 +165,9 @@
     if (/^-compileflags/)    {
 	$MAKEOPTS = "$MAKEOPTS $ARGV[0]"; shift; next;
     }
+    if (/^-use-gmake/)    {
+			$MAKECMD = "ARGV[0]"; shift; next;
+    }
     if (/^-extraflags/)      {
 	$PROGTESTOPTS .= " EXTRA_FLAGS=\'$ARGV[0]\'"; shift; next;
     }
@@ -202,19 +208,11 @@
 if($nickname eq ""){
 	die ("Please invoke NewNightlyTest.pl with command line option \"-nickname <nickname>\"");
 }
-if($BUILDTYPE ne "releaese"){
-	$BUILDTYPE = "debug";
-}
 
-#FIXME: this is a hack for SunOS, there must be a better way
-if(`uname` eq "SunOS"){
-	$MAKECMD = "gmake";
-}
-else {
-	$MAKECMD="make";
+if($BUILDTYPE ne "release"){
+	$BUILDTYPE = "debug";
 }
 
-
 ##############################################################
 #
 #define the file names we'll use






More information about the llvm-commits mailing list