NNT: Add -parallel-test option, which runs llvm-test with
authorDaniel Dunbar <daniel@zuster.org>
Mon, 19 Oct 2009 13:20:56 +0000 (13:20 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 19 Oct 2009 13:20:56 +0000 (13:20 +0000)
ENABLE_PARALLEL_REPORT.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84497 91177308-0d34-0410-b5e6-96231b3b80d8

utils/NewNightlyTest.pl

index 726955cb9c95a8a567abf34d5ad5d73b47f352f8..f88bbd91a7cbe8737726b42fa32a38970a6d733a 100755 (executable)
@@ -77,6 +77,7 @@ use Socket;
 # OTHER OPTIONS:
 #  -parallel        Run parallel jobs with GNU Make (see -parallel-jobs).
 #  -parallel-jobs   The number of parallel Make jobs to use (default is two).
+#  -parallel-test   Allow parallel execution of llvm-test
 #  -verbose         Turn on some debug output
 #  -nice            Checkout/Configure/Build with "nice" to reduce impact
 #                   on busy servers.
@@ -160,6 +161,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
   if (/^-norunningtests$/) { next; } # Backward compatibility, ignored.
   if (/^-parallel-jobs$/)  { $PARALLELJOBS = "$ARGV[0]"; shift; next;}
   if (/^-parallel$/)       { $MAKEOPTS = "$MAKEOPTS -j$PARALLELJOBS"; next; }
+  if (/^-parallel-test$/)  { $PROGTESTOPTS .= " ENABLE_PARALLEL_REPORT=1"; next; }
   if (/^-with-clang$/)     { $WITHCLANG = 1; next; }
   if (/^-release$/)        { $MAKEOPTS = "$MAKEOPTS ENABLE_OPTIMIZED=1 ".
                              "OPTIMIZE_OPTION=-O2"; $BUILDTYPE="release"; next;}