[LNT] r300806 - lnt/tests/compile.py: Add option to specify path to runN tool

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 19 18:31:24 PDT 2017


Author: matze
Date: Wed Apr 19 20:31:23 2017
New Revision: 300806

URL: http://llvm.org/viewvc/llvm-project?rev=300806&view=rev
Log:
lnt/tests/compile.py: Add option to specify path to runN tool

No tests for the whole tests/compile mode exist yet.

Modified:
    lnt/trunk/lnt/tests/compile.py

Modified: lnt/trunk/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/compile.py?rev=300806&r1=300805&r2=300806&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/compile.py (original)
+++ lnt/trunk/lnt/tests/compile.py Wed Apr 19 20:31:23 2017
@@ -54,7 +54,7 @@ def runN(args, N, cwd, preprocess_cmd=No
     memory sampling process out into something we can setuid? Eek.
     """
     g_log.info("preprocess_cmd at top of runN: %s:", preprocess_cmd)
-    cmd = ['runN', '-a']
+    cmd = [opts.runn, '-a']
     if sample_mem:
         cmd = ['sudo'] + cmd + ['-m']
     if preprocess_cmd is not None:
@@ -723,6 +723,9 @@ class CompileTest(builtintest.BuiltinTes
         group.add_option("", "--ldxx", dest="ldxx",
                          help="Path to the cxx linker to use. (Xcode Distinction)",
                          type=str, default=None)
+        group.add_option("", "--runn", dest="runn",
+                         help="Path to runN tool.",
+                         type=str, default="runN")
         group.add_option("", "--test-externals", dest="test_suite_externals",
                          help="Path to the LLVM test-suite externals",
                          type=str, default=None, metavar="PATH")




More information about the llvm-commits mailing list