summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-19 03:47:31 +0000
committerChris Lattner <sabre@nondot.org>2003-12-19 03:47:31 +0000
commitbb0aca5917e6d078c9b0a3d036919ead1d757740 (patch)
tree09fd806912c78172fd31e132e4abcf5dca7aaa9b /utils
parent8ffc66dac44a2615d46c7eb188957b74d0afd41b (diff)
downloadllvm-bb0aca5917e6d078c9b0a3d036919ead1d757740.tar.gz
llvm-bb0aca5917e6d078c9b0a3d036919ead1d757740.tar.bz2
llvm-bb0aca5917e6d078c9b0a3d036919ead1d757740.tar.xz
If -enable-linscan is specified, add ENABLE_LINEARSCAN=1 to the make commandline
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/NightlyTest.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/NightlyTest.pl b/utils/NightlyTest.pl
index 61e621a0f0..8e2c12e635 100755
--- a/utils/NightlyTest.pl
+++ b/utils/NightlyTest.pl
@@ -18,6 +18,8 @@
# -norunningtests Do not run the Olden benchmark suite with
# LARGE_PROBLEM_SIZE enabled.
# -parallel Run two parallel jobs with GNU Make.
+# -enable-linscan Enable linearscan tests
+#
# CVSROOT is the CVS repository from which the tree will be checked out,
# specified either in the full :method:user@host:/dir syntax, or
# just /dir if using a local repo.
@@ -117,7 +119,7 @@ my $NOREMOVE = 0;
my $NOTEST = 0;
my $NORUNNINGTESTS = 0;
my $MAKEOPTS = "";
-
+my $ENABLELINEARSCAN = "";
# Parse arguments...
while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
@@ -130,6 +132,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
if (/^-notest$/) { $NOTEST = 1; $NORUNNINGTESTS = 1; next; }
if (/^-norunningtests$/) { $NORUNNINGTESTS = 1; next; }
if (/^-parallel$/) { $MAKEOPTS = "-j2 -l3.0"; next; }
+ if (/^-enable-linscan$/) { $ENABLELINEARSCAN = "ENABLE_LINEARSCAN=1"; }
print "Unknown option: $_ : ignoring!\n";
}
@@ -323,8 +326,8 @@ sub TestDirectory {
# Run the programs tests... creating a report.nightly.html file
if (!$NOTEST) {
- system "gmake -k $MAKEOPTS report.nightly.html TEST=nightly "
- . "> $Prefix-$SubDir-ProgramTest.txt 2>&1";
+ system "gmake -k $MAKEOPTS $ENABLELINEARSCAN report.nightly.html "
+ . "TEST=nightly > $Prefix-$SubDir-ProgramTest.txt 2>&1";
} else {
system "gunzip $Prefix-$SubDir-ProgramTest.txt.gz";
}