This is an archive of the discontinued LLVM Phabricator instance.

[LLDB] Only run lldb-server Shell tests if it gets built
ClosedPublic

Authored by bulbazord on Oct 12 2022, 4:07 PM.

Details

Summary

It's easy enough to disable the lldb-server build. The lldb-server unit tests already have logic to disable them if we don't build, so this just makes it even.

Diff Detail

Event Timeline

bulbazord created this revision.Oct 12 2022, 4:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2022, 4:07 PM
bulbazord requested review of this revision.Oct 12 2022, 4:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2022, 4:07 PM

Would a lit.local.cfg work in this folder (lldb/test/Shell/lldb-server/ that is)? That would automatically apply it to all existing and future tests.

llvm/test/MC/AArch64/lit.local.cfg is one example.

Would a lit.local.cfg work in this folder (lldb/test/Shell/lldb-server/ that is)? That would automatically apply it to all existing and future tests.

llvm/test/MC/AArch64/lit.local.cfg is one example.

Just tried this out, seems like it will work for the purposes of this patch. I'll update this patch when I have a moment. Thanks for reviewing! :)

bulbazord updated this revision to Diff 467587.Oct 13 2022, 1:35 PM

Implement David's suggestion

DavidSpickett accepted this revision.Oct 14 2022, 1:39 AM

LGTM, thanks for the fix.

This revision is now accepted and ready to land.Oct 14 2022, 1:39 AM