This adds the necessary boiler plate to capture and replay API tests.
http://lists.llvm.org/pipermail/lldb-dev/2020-April/016100.html
Paths
| Differential D77588
[lldb/Reproducers] Make it possible to capture reproducers for the Python test suite. ClosedPublic Authored by JDevlieghere on Apr 6 2020, 2:25 PM.
Details Summary This adds the necessary boiler plate to capture and replay API tests. http://lists.llvm.org/pipermail/lldb-dev/2020-April/016100.html
Diff Detail Event TimelineJDevlieghere added a child revision: D77602: [lldb/Reproducers] Support new replay mode: passive replay.Apr 6 2020, 3:32 PM
JDevlieghere added a parent revision: D77661: [lldb/Python] Add lldbconfig Python module to make the lldb module configurable.. Comment Actions I think the code looks ok now, though I have to say I am still somewhat fuzzy on what exactly will this patch enable. I think I understand the capture part, but what happens during replay? Will that already be smart enough to match the SB calls made by the test harness during replay to the captured calls that were made during recording, or is there some more work needed there? Could you add a brief documentation on this somewhere? Comment Actions
That's implemented in https://reviews.llvm.org/D77602
Sure thing: https://reviews.llvm.org/D77771 Comment Actions Ok, I'm starting to understand what's going on here. This patch looks mostly fine, but IIUC, it won't really do anything until the subsequent patch lands as that is what implements the inline/api/passive replay. I'm going to start looking at that other patch now. Comment Actions
It's sufficient for stage one, i.e. capture the test suite and use the driver (active replay), but it also contains the necessary changes for stage 2 (passive replay). I could've split it up in two patches but given that the changes are so similar that didn't seem worth it. JDevlieghere removed a child revision: D77602: [lldb/Reproducers] Support new replay mode: passive replay.Apr 13 2020, 12:36 PM Comment Actions
Ah, ok. I can live with that. This revision is now accepted and ready to land.Apr 14 2020, 5:14 AM Closed by commit rGfc410138939f: [lldb/Reproducers] Capture reproducers from the API test suite. (authored by JDevlieghere). · Explain WhyApr 14 2020, 9:40 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 255726 lldb/bindings/headers.swig
lldb/bindings/interface/SBReproducer.i
lldb/bindings/interfaces.swig
lldb/include/lldb/API/SBReproducer.h
lldb/packages/Python/lldbsuite/test/configuration.py
lldb/packages/Python/lldbsuite/test/decorators.py
lldb/packages/Python/lldbsuite/test/dotest.py
lldb/packages/Python/lldbsuite/test/dotest_args.py
lldb/source/API/SBReproducer.cpp
lldb/test/API/functionalities/reproducers/attach/TestReproducerAttach.py
lldb/test/API/lit.cfg.py
lldb/test/API/lldbtest.py
|
Should this use variables from configuration.py now?