Lldb test/api all unsupport (original) (raw)
April 23, 2025, 12:02pm 1
I am writing a TestCase in lldb/test/API
. However, I’ve encountered an issue.
It seems that I am unable to run all tests under api
on my Linux x64 host. Whenever I run llvm-lit
, I get the following result:
However, when I run the test manually from the command line using LLDB, it executes correctly and produces the expected results. I’ve searched extensively but haven’t found any references to this issue, and I’m completely stuck.
Can you show us the llvm-lit command you’re using? Including the directory it is run from, sometimes this can affect test discovery.
Are you able to ninja check-lldb-api
? This will tell us whether you have Python enabled in the build, which is required to run tests - Building - 🐛 LLDB
We have some docs on running tests here as well - Testing - 🐛 LLDB
From my local build folder I can do this:
~/build-llvm-aarch64$ ./bin/llvm-lit ../llvm-project/lldb/test/API/
And it finds 1255 tests, with a majority passing. Some are unresolved when run this way but it seems to be because it doesn’t detect that I do not have libcxx enabled.
Usually I run API tests via ninja check-lldb-api
, which does not produce these unresolved tests. Or I will ./bin/lldb-dotest -p <filename>.py
, but llvm-lit
in theory will end up doing the equivalent.