[PATCH] D53568: [LNT] Setting CMake variable to support test-suite feature from D53565

Elena Lepilkina via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 23 06:27:48 PDT 2018


eklepilkina created this revision.
eklepilkina added reviewers: MatzeB, fhahn, llvm-commits.

Review https://reviews.llvm.org/D53565 added new CMake variable which allows to generate only needed part of test-suite if user set --only-test.


https://reviews.llvm.org/D53568

Files:
  lnt/tests/test_suite.py


Index: lnt/tests/test_suite.py
===================================================================
--- lnt/tests/test_suite.py
+++ lnt/tests/test_suite.py
@@ -482,6 +482,9 @@
             if 'TEST_SUITE_RUN_TYPE' not in defs:
                 defs['TEST_SUITE_RUN_TYPE'] = 'ref'
 
+        if self.opts.only_test:
+            defs['BENCH_DIRS'] = self.opts.only_test[0]
+
         for item in tuple(self.opts.cmake_defines) + tuple(extra_cmake_defs):
             k, v = item.split('=', 1)
             # make sure the overriding of the settings above also works


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53568.170623.patch
Type: text/x-patch
Size: 564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181023/0c8cf13b/attachment.bin>


More information about the llvm-commits mailing list