[Lldb-commits] [PATCH] D40636: Create a trivial lldb-test program
Zachary Turner via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 29 21:57:46 PST 2017
zturner created this revision.
Herald added subscribers: krytarowski, mgorny, srhines.
This is basically a proof-of-concept and starting point for having a testing-centric tool in LLDB. I'm sure this leaves a lot of room to be desired, but this at least allows us to have something to build on.
Right now there is only one command, the `modules` command, and I created this command not because it was particularly special, but because it addressed an immediate use case and was extremely simple.
Run the tool as `lldb-test module <path-to-object>`.
Getting the linker stuff working was tricky, but hopefully I did this right.
Feel free to add testing related stuff to your heart's content after this goes in. Implementing the commands themselves takes some work, but once they're there they can be reused without writing any code and result in very easy to use and maintain tests.
Note that due to some oddities in llvm's command line library, if you type -help you'll see a bunch of junk. I plan to investigate and hopefully fix all that in the coming <insert-time-period-here>
https://reviews.llvm.org/D40636
Files:
lldb/tools/CMakeLists.txt
lldb/tools/lldb-test/CMakeLists.txt
lldb/tools/lldb-test/SystemInitializerFull.cpp
lldb/tools/lldb-test/SystemInitializerFull.h
lldb/tools/lldb-test/lldb-test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40636.124873.patch
Type: text/x-patch
Size: 18592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20171130/d33808a5/attachment-0001.bin>
More information about the lldb-commits
mailing list