[llvm] r309432 - [lit] Remove stale test inputs before running check-lit
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 28 14:00:57 PDT 2017
Author: rnk
Date: Fri Jul 28 14:00:57 2017
New Revision: 309432
URL: http://llvm.org/viewvc/llvm-project?rev=309432&view=rev
Log:
[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.
Modified:
llvm/trunk/utils/lit/CMakeLists.txt
Modified: llvm/trunk/utils/lit/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/CMakeLists.txt?rev=309432&r1=309431&r2=309432&view=diff
==============================================================================
--- llvm/trunk/utils/lit/CMakeLists.txt (original)
+++ llvm/trunk/utils/lit/CMakeLists.txt Fri Jul 28 14:00:57 2017
@@ -10,6 +10,7 @@ configure_file("tests/lit.site.cfg.in" "
# 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"
More information about the llvm-commits
mailing list