Add lldb-test.
authorZachary Turner <zturner@google.com>
Fri, 1 Dec 2017 00:52:51 +0000 (00:52 +0000)
committerZachary Turner <zturner@google.com>
Fri, 1 Dec 2017 00:52:51 +0000 (00:52 +0000)
commit888a42829238a00fd7e5d6daf07d48324699f5f2
treec1e22e85b51f5fbee4816c09df0e2afb4b397dcf
parent1cf7f9cc807af47e5b5f9699554e86ad58b74967
Add lldb-test.

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 `module-sections` 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-sections <path-to-object>`.

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.

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

llvm-svn: 319504
lldb/tools/CMakeLists.txt
lldb/tools/lldb-test/CMakeLists.txt [new file with mode: 0644]
lldb/tools/lldb-test/FormatUtil.cpp [new file with mode: 0644]
lldb/tools/lldb-test/FormatUtil.h [new file with mode: 0644]
lldb/tools/lldb-test/SystemInitializerTest.cpp [new file with mode: 0644]
lldb/tools/lldb-test/SystemInitializerTest.h [new file with mode: 0644]
lldb/tools/lldb-test/lldb-test.cpp [new file with mode: 0644]