This is still broken because it causes certain tests to be
run twice with slightly different configurations, which is
wrong in some cases.
You can observe this by running:
ninja -nv check-all | grep debuginfo-tests
And seeing that it passes clang/test and clang/test/debuginfo-tests
to lit, which causes it to run debuginfo-tests twice. The fix is
going to involve either:
a) figuring out that we're running in this "deprecated" configuration,
and then deleting the clang/test/debuginfo-tests path, which should
cause it to behave identically to before, or:
b) make lit smart enough that it doesn't descend into a sub-suite if
that sub-suite already has a lit.cfg file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318486
91177308-0d34-0410-b5e6-
96231b3b80d8
clang_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
)
-if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/debuginfo-tests/CMakeLists.txt")
- # This is a hack to keep existing build build infrastructure working while we
- # can migrate to the new standard workflow of checking out debuginfo-tests into
- # llvm/projects or using it in a mono-repo
- add_subdirectory(debuginfo-tests)
-endif()
-
if( NOT CLANG_BUILT_STANDALONE )
list(APPEND CLANG_TEST_DEPS
llvm-config
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'),
]