diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-01 17:59:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-01 17:59:42 +0000 |
commit | 1deb86dbf401d4b69fe3667fbb9a6814096dfadb (patch) | |
tree | 2dc30def7c838b8e67ab4b52df708e51af8e3996 | |
parent | 5a087ff8c349fc54c465b8a9fbb6a3a8fabc84bd (diff) | |
download | llvm-1deb86dbf401d4b69fe3667fbb9a6814096dfadb.zip llvm-1deb86dbf401d4b69fe3667fbb9a6814096dfadb.tar.gz llvm-1deb86dbf401d4b69fe3667fbb9a6814096dfadb.tar.bz2 |
Let people who run the nightly tester specify paths to external tests, instead
of having to hack the nightly tester script itself.
as an example, I use the following for my machine:
$HOME/llvm/utils/NightlyTest.pl -parallel -release -enable-llcbeta \
-spec2000path /Volumes/ProjectsDisk/cvs/benchmarks/speccpu2000-llvm/benchspec/ \
-povraypath /Volumes/ProjectsDisk/cvs/benchmarks/povray31 \
-namdpath /Volumes/ProjectsDisk/cvs/benchmarks/namd
llvm-svn: 24136
-rwxr-xr-x | llvm/utils/NightlyTest.pl | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/llvm/utils/NightlyTest.pl b/llvm/utils/NightlyTest.pl index cbfe61a..86ba616 100755 --- a/llvm/utils/NightlyTest.pl +++ b/llvm/utils/NightlyTest.pl @@ -38,6 +38,12 @@ # testing release branches) # -target Specify the target triplet # +# ---------------- Options to configure llvm-test ---------------------------- +# -spec2000path Path to the benchspec directory in the SPEC 2000 distro +# -spec95path Path to the benchspec directory in the SPEC 95 distro. +# -povraypath Path to the povray sources +# -namdpath Path to the namd sources +# # 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. @@ -86,6 +92,8 @@ my $CVSCOOPT = "-APR"; my $NICE = ""; my $NODEJAGNU = 0; +my $LLVMTESTCONFIGARGS = ""; + sub ReadFile { if (open (FILE, $_[0])) { undef $/; @@ -298,7 +306,18 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { } if (/^-noexternals$/) { $NOEXTERNALS = 1; next; } if (/^-nodejagnu$/) { $NODEJAGNU = 1; next; } - + if (/^-spec2000path$/) { + $LLVMTESTCONFIGARGS .= " --enable-spec2000=$ARGV[0]"; shift; next; + } + if (/^-spec95path$/) { + $LLVMTESTCONFIGARGS .= " --enable-spec95=$ARGV[0]"; shift; next; + } + if (/^-povraypath$/) { + $LLVMTESTCONFIGARGS .= " --enable-povray=$ARGV[0]"; shift; next; + } + if (/^-namdpath$/) { + $LLVMTESTCONFIGARGS .= " --enable-namd=$ARGV[0]"; shift; next; + } print "Unknown option: $_ : ignoring!\n"; } @@ -410,7 +429,7 @@ $LOC = `utils/countloc.sh`; # if (!$NOCHECKOUT) { if ( $VERBOSE ) { print "CONFIGURE STAGE\n"; } - my $EXTRAFLAGS = "--enable-spec --with-objroot=."; + my $EXTRAFLAGS = "--enable-spec --with-objroot=.$LLVMTESTCONFIGARGS"; system "(time -p $NICE ./configure $CONFIGUREARGS $EXTRAFLAGS) > $BuildLog 2>&1"; if ( $VERBOSE ) { print "BUILD STAGE\n"; } |