llvm-project/lldb/test/API
Med Ismail Bennani 9216baf87d [lldb/test] Add events listener helper function to lldbtest
This patch introduces 2 new lldb utility functions:
- lldbutil.start_listening_from: This can be called in the test setup to
  create a listener and set it up for a specific event mask and add it
  to the user-provided broadcaster's list.
- lldbutil.fetch_next_event: This will use fetch a single event from the
  provided istener and return it if it matches the provided broadcaster.

The motivation behind this is to easily test new kinds of events
(i.e. Swift type-system progress events). However, this patch also
updates `TestProgressReporting.py` and `TestDiagnosticReporting.py`
to make use of these new helper functions.

Differential Revision: https://reviews.llvm.org/D122193

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2022-03-23 12:30:09 -07:00
..
android/platform [lldb] Remove lldbtest.getBuildFlags 2021-12-30 12:19:24 +01:00
api [LLDB] Remove cases of using namespace std 2022-03-04 12:50:25 -08:00
arm [lldb/test] Skip TestBreakpointThumbCodesection on arm64. 2020-06-25 16:20:27 -07:00
assert_messages_test [lldb] Introduce createTestTarget for creating a valid target in API tests 2021-05-24 16:18:44 +02:00
benchmarks
commands [trace] clear any existing tracing sessions before relaunching the binary 2022-03-21 16:03:37 -07:00
driver [lldb/driver] Fix SIGTSTP handling 2022-03-09 14:31:17 +01:00
functionalities [lldb/test] Add events listener helper function to lldbtest 2022-03-23 12:30:09 -07:00
iohandler [lldb] Increase timeout in TestProcessIOHandlerInterrupt 2022-03-18 12:14:10 +01:00
lang [LLDB] Adding skipif for arm linux for TestStructuredBinding.py 2022-02-17 14:30:54 -08:00
linux [lldb] Replace asserts on .Success() with assertSuccess() 2022-02-14 08:31:17 -08:00
lua_api [lldb/lua] Supplement Lua bindings for lldb module 2021-10-12 22:10:21 +08:00
macosx [lldb] Replace asserts on .Success() with assertSuccess() 2022-02-14 08:31:17 -08:00
python_api Don't report memory return values on MacOS_arm64 of SysV_arm64 ABI's. 2022-03-14 15:25:40 -07:00
qemu [lldb/qemu] Set qemu's "ld prefix" based on the platform sysroot 2022-01-03 14:48:13 +01:00
repl/clang [LLDB] Skip TestClangREPL.py on Arm/AArch64 Linux 2021-10-04 11:50:17 +05:00
sample_test [lldb] Replace asserts on .Success() with assertSuccess() 2022-02-14 08:31:17 -08:00
sanity
source-manager [lldb/Target] Refine source display warning for artificial locations (NFC) 2021-12-09 14:38:14 -08:00
terminal [LLDB] Skip flaky tests on Arm/AArch64 Linux bots 2021-08-04 16:57:36 +05:00
test_runner/test
test_utils [lldb/test] Print build commands in trace mode 2021-10-29 11:33:31 +02:00
tools Fix buildbots after https://reviews.llvm.org/D120755. 2022-03-07 11:46:56 -08:00
types [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
CMakeLists.txt [lldb] Copy the system debugserver in LLDB.framework 2021-09-24 15:07:22 -07:00
dotest.py
get_darwin_real_python.py
lit.cfg.py [lldb] Set the TERM environment variable for the API tests 2022-03-22 11:01:38 -07:00
lit.site.cfg.py.in Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00
lldbtest.py [lldb/lua] Supplement Lua bindings for lldb module 2021-10-12 22:10:21 +08:00
use_lldb_suite.py [lldb/test] Use realpath consistently for test root file paths. 2020-08-05 11:35:37 -07:00