diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-06-23 07:45:46 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-06-23 07:45:46 +0000 |
commit | 1d914635f9745aac040217312bb0853a41ee0fc9 (patch) | |
tree | 3322cbfcae16b9e883e2eac050b362a91ec64210 /utils | |
parent | a337f0c43d730d0f4b48299fad58633f08dd7273 (diff) |
Added a -noexternals options to avoid performing the externals tests on
test environments that don't have Povray or SPEC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/NightlyTest.pl | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/utils/NightlyTest.pl b/utils/NightlyTest.pl index 57c22014f6..7884a6a970 100755 --- a/utils/NightlyTest.pl +++ b/utils/NightlyTest.pl @@ -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 $NOFEATURES = 0; my $NOREGRESSIONS = 0; my $NOTEST = 0; my $NORUNNINGTESTS = 0; +my $NOEXTERNALS = 0; my $MAKEOPTS = ""; my $PROGTESTOPTS = ""; my $VERBOSE = 0; @@ -266,6 +269,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { 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 @@ if ($BuildError eq "") { 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"; } |