[Lldb-commits] [PATCH] D24591: [LIT] First pass of LLDB LIT support

Chris Bieneman via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 14 15:07:05 PDT 2016


beanz created this revision.
beanz added reviewers: zturner, labath, jingham, tfiala.
beanz added a subscriber: lldb-commits.
Herald added subscribers: mgorny, beanz.

This patch supplies basic infrastructure for LLDB to use LIT, and ports a few basic test cases from the LLDB test suite into LIT.

With this patch the LLDB lit system is not capable or intended to fully replace the existing LLDB test suite, but this first patch enables people to write lit tests for LLDB.

The lit substitution for %cc and %cxx default to the host compiler unless the CMake option LLDB_TEST_CLANG is On, in which case the in-tree clang will be used.

The target check-lldb-lit will run all lit tests including the lit-based executor for the unit tests. Alternatively there is a target generated for each subdirectory under the lit directory, so check-lldb-unit and check-lldb-expr will run just the tests under their respective directories.

The ported tests are not removed from the existing suite, and should not be until such a time when the lit runner is mature and in use by bots and workflows.

https://reviews.llvm.org/D24591

Files:
  lit/CMakeLists.txt
  lit/Expr/Inputs/anonymous-struct.cpp
  lit/Expr/Inputs/call-function.cpp
  lit/Expr/TestCallStdStringFunction.test
  lit/Expr/TestCallStopAndContinue.test
  lit/Expr/TestCallUserAnonTypedef.test
  lit/Expr/TestCallUserDefinedFunction.test
  lit/Expr/lit.local.cfg
  lit/Unit/lit.cfg
  lit/Unit/lit.site.cfg.in
  lit/lit.cfg
  lit/lit.site.cfg.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24591.71450.patch
Type: text/x-patch
Size: 10616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160914/e51571e6/attachment.bin>


More information about the lldb-commits mailing list