From 7895d2fcab8bc01a688153590f935a668f8436e9 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 28 Jul 2017 21:00:57 +0000 Subject: [lit] Remove stale test inputs before running check-lit This should fix googletest-format test failures on the clang modules buildbots, which have a stale copy of the OneTest script in the build directory. llvm-svn: 309432 --- llvm/utils/lit/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/utils/lit') diff --git a/llvm/utils/lit/CMakeLists.txt b/llvm/utils/lit/CMakeLists.txt index 709e16bda5b..d1b91a0c8d1 100644 --- a/llvm/utils/lit/CMakeLists.txt +++ b/llvm/utils/lit/CMakeLists.txt @@ -10,6 +10,7 @@ configure_file("tests/lit.site.cfg.in" "lit.site.cfg" @ONLY) # configure time (i.e. `file(COPY ...)`) because this could lead to stale # tests being run. add_custom_target(prepare-check-lit + COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/tests" COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/tests" "${CMAKE_CURRENT_BINARY_DIR}/tests" COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg" "${CMAKE_CURRENT_BINARY_DIR}/tests" COMMENT "Preparing lit tests" -- cgit v1.2.3