summaryrefslogtreecommitdiff
path: root/utils/NewNightlyTest.pl
diff options
context:
space:
mode:
authorPatrick Jenkins <pjenkins@apple.com>2006-07-27 01:17:17 +0000
committerPatrick Jenkins <pjenkins@apple.com>2006-07-27 01:17:17 +0000
commit1cd469124c5556e87fba9b1d12e578343e9188b0 (patch)
treee613611677aae435db83d40870b35a708138c2d3 /utils/NewNightlyTest.pl
parent2f1ae88445c696a9b9d61e14747ba721190cdc99 (diff)
downloadllvm-1cd469124c5556e87fba9b1d12e578343e9188b0.tar.gz
llvm-1cd469124c5556e87fba9b1d12e578343e9188b0.tar.bz2
llvm-1cd469124c5556e87fba9b1d12e578343e9188b0.tar.xz
added support for the -use-gmake option. This will come in handy when running the test on SunOS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/NewNightlyTest.pl')
-rwxr-xr-xutils/NewNightlyTest.pl22
1 files changed, 10 insertions, 12 deletions
diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl
index b050ddfd51..5216bd5630 100755
--- a/utils/NewNightlyTest.pl
+++ b/utils/NewNightlyTest.pl
@@ -52,6 +52,8 @@ use Socket;
# 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 @@ $CONFIGUREARGS="";
$nickname="";
$NOTEST=0;
$NORUNNINGTESTS=0;
+$MAKECMD="make";
while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
shift;
@@ -122,8 +125,8 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
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 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
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($CVSRootDir eq "" or
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