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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to