[PATCH] [LNT] Enable benchmarking only mode

Yi Kong kongy.dev at gmail.com
Thu Jun 5 02:48:52 PDT 2014


This patch enables LNT to use benchmarking only mode in test suite
recently added by Hal.

-Yi
-------------- next part --------------
diff --git a/lnt/tests/nt.py b/lnt/tests/nt.py
index 69bc4f3..dbb11aa 100644
--- a/lnt/tests/nt.py
+++ b/lnt/tests/nt.py
@@ -283,6 +283,8 @@ class TestConfiguration(object):
             if self.test_small:
                 fatal('the --small and --large options are mutually exclusive')
             make_variables['LARGE_PROBLEM_SIZE'] = '1'
+        if self.test_benchmarking_only:
+            make_variables['BENCHMARKING_ONLY'] = '1'
         if self.test_integrated_as:
             make_variables['TEST_INTEGRATED_AS'] = '1'
         if self.liblto_path:
@@ -1210,6 +1212,9 @@ class NTTest(builtintest.BuiltinTest):
         group.add_option("", "--large", dest="test_large",
                          help="Use larger test inputs",
                          action="store_true", default=False)
+        group.add_option("", "--benchmarking-only", dest="test_benchmarking_only",
+                         help="Benchmarking-only mode",
+                         action="store_true", default=False)
 
         group.add_option("", "--only-test", dest="only_test", metavar="PATH",
                          help="Only run tests under PATH",


More information about the llvm-commits mailing list