[PATCH] [libcxx] Add numerous options to libc++ LIT test suite configuration.

Eric Fiselier eric at efcs.ca
Mon Oct 20 19:55:12 PDT 2014

Hi mclow.lists, danalbert, jroelofs,

In order to fully replace the testit script we need to update LIT so it provides the same functionality.
This patch adds a number of different configuration options to LIT to do that. It also adds documentation for all of the command line parameters that LIT supports.

Generic options added:
- `libcxx_headers`
- `libcxx_library`
- `compile_flags`
- `enable_warnings`

Generic options modified:
- `use_clang_verify`: Changed the semantics of the switch
- `link_flags`: Changed from overriding the default args to adding extra args instead (to match compile flags)
- `use_sanitizer`: Renamed from `llvm_use_sanitizer`
The ability to use scan-build overtop of the tests was added. The test fails if scan-build finds any issues.

Scan build Options:
- `use_scan_build`
- `scan_build_output`

The ability to use `clang-tidy` has also been added.

Clang tidy options:
- `use_clang_tidy`
- `clang_tidy_args`.

Please see the added documentation for more information about the switches. As for the actual documentation I'm not sure if it should be kept in libc++ forever since it adds an undue maintenance burden, but I think it should be added for the time being while the changes are new. I'm verify unskilled with HTML so if the documentation needs any changes please let me know.

Hopefully this will kill testit.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5877.15163.patch
Type: text/x-patch
Size: 25081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141021/18a0fbe2/attachment.bin>

More information about the cfe-commits mailing list