[Lldb-commits] [lldb] 9be5c13 - [lldb/Test] Add check-lldb-repro target
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 22 17:36:02 PST 2020
Author: Jonas Devlieghere
Date: 2020-01-22T17:35:45-08:00
New Revision: 9be5c13538898c7632c2de7300de9479688a2460
URL: https://github.com/llvm/llvm-project/commit/9be5c13538898c7632c2de7300de9479688a2460
DIFF: https://github.com/llvm/llvm-project/commit/9be5c13538898c7632c2de7300de9479688a2460.diff
LOG: [lldb/Test] Add check-lldb-repro target
This adds a new target check-lldb-repro which runs the shell tests with
the lldb-repo utility. It runs the shell tests twice, once while
capturing a reproducer and then again by replaying that reproducer.
Added:
Modified:
lldb/test/Shell/CMakeLists.txt
Removed:
################################################################################
diff --git a/lldb/test/Shell/CMakeLists.txt b/lldb/test/Shell/CMakeLists.txt
index d203f1e093c7..a843f11f3a06 100644
--- a/lldb/test/Shell/CMakeLists.txt
+++ b/lldb/test/Shell/CMakeLists.txt
@@ -15,3 +15,17 @@ if (CMAKE_GENERATOR STREQUAL "Xcode")
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS lldb-test-deps)
endif()
+
+# Add a lit test suite that runs the shell test while capturing a reproducer.
+add_lit_testsuite(check-lldb-repro-capture
+ "Running lldb shell test suite with reproducer capture"
+ ${CMAKE_CURRENT_BINARY_DIR}
+ PARAMS "lldb-run-with-repro=capture"
+ DEPENDS lldb-test-deps)
+
+# Add a lit test suite that runs the shell test by replaying a reproducer.
+add_lit_testsuite(check-lldb
+ "Running lldb shell test suite with reproducer replay"
+ ${CMAKE_CURRENT_BINARY_DIR}
+ PARAMS "lldb-run-with-repro=capture"
+ DEPENDS lldb-test-deps check-lldb-repro-capture)
More information about the lldb-commits
mailing list