summaryrefslogtreecommitdiffstats
path: root/test/lit.cfg.py
diff options
context:
space:
mode:
authorDon Hinton <hintonda@gmail.com>2017-12-12 16:48:35 +0000
committerDon Hinton <hintonda@gmail.com>2017-12-12 16:48:35 +0000
commit96484578625c26c20ca2c80a3ad85410bcb6c8cb (patch)
tree20edd6e4c4b1771feca9719d30c6e3dd02c7af68 /test/lit.cfg.py
parentcb61fc53dc997bca3bee98d898d3406d0acb221c (diff)
[debuginfo-tests] Add support for moving debuginfo-tests from clang/test to llvm/projects or monorepo.
Summary: The new version of debuginfo-tests will have it's own lit.cfg.py file which is incompatible with the one in clang/test. This change supports both the old and new versions, and can be used until the bots actually move debuginfo-tests to either clang/test or the monorepo. This is a prerequisite for D40971. Reviewers: zturner, aprantl Subscribers: mgorny, JDevlieghere, llvm-commits, cfe-commits Differential Revision: https://reviews.llvm.org/D41055 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg.py')
-rw-r--r--test/lit.cfg.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/lit.cfg.py b/test/lit.cfg.py
index 39bdf36afd..8467eaa82c 100644
--- a/test/lit.cfg.py
+++ b/test/lit.cfg.py
@@ -58,12 +58,20 @@ tool_dirs = [config.clang_tools_dir, config.llvm_tools_dir]
tools = [
'c-index-test', 'clang-check', 'clang-diff', 'clang-format', 'opt',
- ToolSubst('%test_debuginfo', command=os.path.join(
- config.llvm_src_root, 'utils', 'test_debuginfo.pl')),
ToolSubst('%clang_func_map', command=FindTool(
'clang-func-mapping'), unresolved='ignore'),
]
+# FIXME: This logic can be removed once all buildbots have moved
+# debuginfo-test from clang/test to llvm/projects or monorepo.
+if os.path.exists(os.path.join(config.test_source_root, 'debuginfo-tests')):
+ if os.path.isfile(
+ os.path.join(config.test_source_root, 'debuginfo-tests', 'lit.cfg.py')):
+ config.excludes.append('debuginfo-tests')
+ else:
+ tools.append(ToolSubst('%test_debuginfo', command=os.path.join(
+ config.llvm_src_root, 'utils', 'test_debuginfo.pl')))
+
if config.clang_examples:
tools.append('clang-interpreter')