[dotest] Rename llvm-dotest -> lldb-dotest and make it a custom target

This renames llvm-dotest to lldb-dotest and makes it a custom target so
you can run `ninja lldb-dotest` to rebuild whatever is necessary before
rerunning the tests.

Differential revision: https://reviews.llvm.org/D44473

llvm-svn: 327519
This commit is contained in:
Jonas Devlieghere 2018-03-14 15:36:32 +00:00
parent 5773ac3ee8
commit 22af9c63f3
2 changed files with 7 additions and 4 deletions

View File

@ -137,16 +137,19 @@ add_python_test_target(check-lldb
string (REPLACE ";" " " LLDB_DOTEST_ARGS_STR "${LLDB_DOTEST_ARGS}")
# We need this to substitute variables.
configure_file(
llvm-dotest.in
${CMAKE_CURRENT_BINARY_DIR}/llvm-dotest.configured
lldb-dotest.in
${CMAKE_CURRENT_BINARY_DIR}/lldb-dotest.configured
)
# We need this to expand the generator expressions.
file(GENERATE
OUTPUT
$<TARGET_FILE_DIR:lldb>/llvm-dotest
$<TARGET_FILE_DIR:lldb>/lldb-dotest
INPUT
${CMAKE_CURRENT_BINARY_DIR}/llvm-dotest.configured
${CMAKE_CURRENT_BINARY_DIR}/lldb-dotest.configured
)
# Make this a custom target.
add_custom_target(lldb-dotest)
add_dependencies(lldb-dotest ${LLDB_TEST_DEPS})
# If we're building with an in-tree clang, then list clang as a dependency
# to run tests.