diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-07-16 22:59:17 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-07-16 22:59:17 +0000 |
commit | 49e3182c97ec8a026eb4d8d714d697310d72f701 (patch) | |
tree | 42c36c927ebe0d7645ce0f8f99317e002eb695f5 /utils | |
parent | a82b22c667f66224edaf83f33815c8015fb74444 (diff) | |
download | external_llvm-49e3182c97ec8a026eb4d8d714d697310d72f701.zip external_llvm-49e3182c97ec8a026eb4d8d714d697310d72f701.tar.gz external_llvm-49e3182c97ec8a026eb4d8d714d697310d72f701.tar.bz2 |
Add new flags '-test-cflags' and '-test-cxxflags' to pass in flags directly to the llvm testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/NewNightlyTest.pl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl index 23982f1..477df8f 100755 --- a/utils/NewNightlyTest.pl +++ b/utils/NewNightlyTest.pl @@ -55,6 +55,10 @@ use Socket; # override the default. # -ldflags Next argument specifies that linker options that override # the default. +# -test-cflags Next argument specifies that C compilation options that +# override the default when running the testsuite. +# -test-cxxflags Next argument specifies that C++ compilation options that +# override the default when running the testsuite. # -compileflags Next argument specifies extra options passed to make when # building LLVM. # -use-gmake Use gmake instead of the default make command to build @@ -139,6 +143,7 @@ $SUBMITSCRIPT = "/nightlytest/NightlyTestAccept.php"; $SUBMITAUX=""; $SUBMIT = 1; $PARALLELJOBS = "2"; +my $TESTFLAGS=""; while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { shift; @@ -203,6 +208,10 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { shift; next; } if (/^-ldflags/) { $MAKEOPTS = "$MAKEOPTS LD.Flags=\'$ARGV[0]\'"; shift; next; } + if (/^-test-cflags/) { $TESTFLAGS = "$TESTFLAGS CFLAGS=\'$ARGV[0]\'"; + shift; next; } + if (/^-test-cxxflags/) { $TESTFLAGS = "$TESTFLAGS CXXFLAGS=\'$ARGV[0]\'"; + shift; next; } if (/^-compileflags/) { $MAKEOPTS = "$MAKEOPTS $ARGV[0]"; shift; next; } if (/^-use-gmake/) { $MAKECMD = "gmake"; shift; next; } if (/^-extraflags/) { $CONFIGUREARGS .= @@ -924,10 +933,11 @@ sub TestDirectory { if (!$NOTEST) { if( $VERBOSE) { print "$MAKECMD -k $MAKEOPTS $PROGTESTOPTS report.nightly.csv ". - "TEST=nightly > $ProgramTestLog 2>&1\n"; + "$TESTFLAGS TEST=nightly > $ProgramTestLog 2>&1\n"; } RunLoggedCommand("$MAKECMD -k $MAKEOPTS $PROGTESTOPTS report.nightly.csv ". - "TEST=nightly", $ProgramTestLog, "TEST DIRECTORY $SubDir"); + "$TESTFLAGS TEST=nightly", + $ProgramTestLog, "TEST DIRECTORY $SubDir"); $llcbeta_options=`$MAKECMD print-llcbeta-option`; } |