JDevlieghere updated this revision to Diff 138370.
JDevlieghere added a comment.
Yeah, that's more sensible indeed. I must have had `llvm-lit` in mind and never
gave it a second thought.
Repository:
rL LLVM
https://reviews.llvm.org/D44473
Files:
test/CMakeLists.txt
test/lldb-dotest.in
test/llvm-dotest.in
Index: test/CMakeLists.txt
===================================================================
--- test/CMakeLists.txt
+++ test/CMakeLists.txt
@@ -137,16 +137,19 @@
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.
Index: test/CMakeLists.txt
===================================================================
--- test/CMakeLists.txt
+++ test/CMakeLists.txt
@@ -137,16 +137,19 @@
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.
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits