diff options
author | Reid Kleckner <rnk@google.com> | 2017-07-28 21:00:57 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-07-28 21:00:57 +0000 |
commit | 7895d2fcab8bc01a688153590f935a668f8436e9 (patch) | |
tree | b89f41e301931013c981c6e2fa5bac7fe46006d3 /llvm/utils/lit/CMakeLists.txt | |
parent | 1b842dad3e5cad8920f1e4042ee7660b4693e63a (diff) | |
download | bcm5719-llvm-7895d2fcab8bc01a688153590f935a668f8436e9.tar.gz bcm5719-llvm-7895d2fcab8bc01a688153590f935a668f8436e9.zip |
[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
Diffstat (limited to 'llvm/utils/lit/CMakeLists.txt')
-rw-r--r-- | llvm/utils/lit/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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" |