[llvm-commits] CVS: llvm/utils/NightlyTest.pl
LLVM
llvm at cs.uiuc.edu
Wed Jun 23 02:54:01 PDT 2004
Changes in directory llvm/utils:
NightlyTest.pl updated: 1.57 -> 1.58
---
Log message:
Added a -noexternals options to avoid performing the externals tests on
test environments that don't have Povray or SPEC.
---
Diffs of the changes: (+17 -5)
Index: llvm/utils/NightlyTest.pl
diff -u llvm/utils/NightlyTest.pl:1.57 llvm/utils/NightlyTest.pl:1.58
--- llvm/utils/NightlyTest.pl:1.57 Wed Jun 23 01:36:34 2004
+++ llvm/utils/NightlyTest.pl Wed Jun 23 02:45:46 2004
@@ -19,6 +19,8 @@
# -norunningtests.
# -norunningtests Do not run the Olden benchmark suite with
# LARGE_PROBLEM_SIZE enabled.
+# -noexternals Do not run the external tests (for cases where povray
+# or SPEC are not installed)
# -parallel Run two parallel jobs with GNU Make.
# -release Build an LLVM Release version
# -pedantic Enable additional GCC warnings to detect possible errors.
@@ -70,6 +72,7 @@
my $NOREGRESSIONS = 0;
my $NOTEST = 0;
my $NORUNNINGTESTS = 0;
+my $NOEXTERNALS = 0;
my $MAKEOPTS = "";
my $PROGTESTOPTS = "";
my $VERBOSE = 0;
@@ -266,6 +269,7 @@
if (/^-nice$/) { $NICE = "nice "; next; }
if (/^-gnuplotscript$/) { $PlotScriptFilename = $ARGV[0]; shift; next; }
if (/^-templatefile$/) { $Template = $ARGV[0]; shift;; next; }
+ if (/^-noexternals$/) { $NOEXTERNALS = 1; next; }
print "Unknown option: $_ : ignoring!\n";
}
@@ -593,12 +597,20 @@
print "MultiSource TEST STAGE\n";
}
$MultiSourceProgramsTable = TestDirectory("MultiSource");
- if ( $VERBOSE ) {
- print "External TEST STAGE\n";
- }
- $ExternalProgramsTable = TestDirectory("External");
- system "cat $Prefix-SingleSource-Tests.txt $Prefix-MultiSource-Tests.txt ".
+ if ( ! $NOEXTERNALS ) {
+ if ( $VERBOSE ) {
+ print "External TEST STAGE\n";
+ }
+ $ExternalProgramsTable = TestDirectory("External");
+ system "cat $Prefix-SingleSource-Tests.txt $Prefix-MultiSource-Tests.txt ".
" $Prefix-External-Tests.txt | sort > $Prefix-Tests.txt";
+ } else {
+ if ( $VERBOSE ) {
+ print "External TEST STAGE SKIPPED\n";
+ }
+ system "cat $Prefix-SingleSource-Tests.txt $Prefix-MultiSource-Tests.txt ".
+ " | sort > $Prefix-Tests.txt";
+ }
}
if ( $VERBOSE ) { print "TEST INFORMATION COLLECTION STAGE\n"; }
More information about the llvm-commits
mailing list