[test-suite] r340361 - cmake/lit: Add remote module in lit.cfg
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 21 16:08:28 PDT 2018
Author: matze
Date: Tue Aug 21 16:08:28 2018
New Revision: 340361
URL: http://llvm.org/viewvc/llvm-project?rev=340361&view=rev
Log:
cmake/lit: Add remote module in lit.cfg
This allows to override/specify the remote to run on as a parameter to lit.
This means we don't need to know the name device name upfront at
buildtime or can switch devices without rebuilding.
Modified:
test-suite/trunk/CMakeLists.txt
test-suite/trunk/lit.cfg
Modified: test-suite/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/CMakeLists.txt?rev=340361&r1=340360&r2=340361&view=diff
==============================================================================
--- test-suite/trunk/CMakeLists.txt (original)
+++ test-suite/trunk/CMakeLists.txt Tue Aug 21 16:08:28 2018
@@ -258,9 +258,6 @@ list(APPEND LIT_MODULES timeit)
if(TEST_SUITE_PROFILE_GENERATE)
list(APPEND LIT_MODULES profilegen)
endif()
-if(TEST_SUITE_REMOTE_HOST)
- list(APPEND LIT_MODULES remote)
-endif()
if(TEST_SUITE_COLLECT_STATS)
list(APPEND LIT_MODULES stats)
endif()
Modified: test-suite/trunk/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/lit.cfg?rev=340361&r1=340360&r2=340361&view=diff
==============================================================================
--- test-suite/trunk/lit.cfg (original)
+++ test-suite/trunk/lit.cfg Tue Aug 21 16:08:28 2018
@@ -24,8 +24,11 @@ config.suffixes = ['.test']
config.excludes = ['ABI-Testsuite']
config.traditional_output = False
config.single_source = False
+config.remote_host = lit_config.params.get('remote_host', config.remote_host)
if 'SSH_AUTH_SOCK' in os.environ:
config.environment['SSH_AUTH_SOCK'] = os.environ['SSH_AUTH_SOCK']
+if config.remote_host:
+ config.test_modules.append('remote')
# Load previous test results so we can skip tests that did not change.
previous_results_file = lit_config.params.get('previous', None)
More information about the llvm-commits
mailing list