From: Zachary Turner Date: Thu, 16 Nov 2017 18:26:20 +0000 (+0000) Subject: Resubmit "Refactor debuginfo-tests" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2599d006e5818e2eef346eb7f586c4f690bad619;p=clang Resubmit "Refactor debuginfo-tests" This was reverted due to some failures on specific darwin buildbots, the issue being that the new lit configuration was not setting the SDKROOT environment variable. We've tested a fix locally and confirmed that it works, so this patch resubmits everything with the fix applied. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318435 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c1ac9e4f0f..e001891384 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -88,6 +88,13 @@ set(CLANG_TEST_PARAMS 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 diff --git a/test/lit.cfg.py b/test/lit.cfg.py index 39bdf36afd..d2f0491821 100644 --- a/test/lit.cfg.py +++ b/test/lit.cfg.py @@ -58,8 +58,6 @@ 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'), ]