[libcxx-commits] [libcxx] [lldb] [lldb][CMake] Add single target that runs libc++ tests (PR #110856)

Michael Buch via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 3 05:58:23 PDT 2024


Michael137 wrote:

> Just for my understanding, is `--category` a Lit argument? I have never seen this before and I can't find documentation about it.

That's an option to LLDB's `dotest.py` testing framework (there's some documentation for it in https://lldb.llvm.org/resources/test.html, though doesn't explicitly mention test categories). We can mark test in LLDB using categories. E.g., the following test is marked under the `libc++` category : https://github.com/llvm/llvm-project/blob/19c6958d24acf5beaba1946ad3e1e5fc538e3a2d/lldb/test/API/commands/expression/import-std-module/basic/TestImportStdModule.py#L11

Lit will pass the `--category` flag to dotest, which then ensures we run only the tests that were decorated with `@add_test_categories(["libc++"])` (or have `libc++` in the `categories` file in the test directory).

https://github.com/llvm/llvm-project/pull/110856


More information about the libcxx-commits mailing list