This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Pass CMAKE_SYSROOT through to LLDB shell tests
ClosedPublic

Authored by mysterymath on May 23 2023, 4:51 PM.

Details

Summary

This allows the LLDB Shell tests to succeed in (e.g. CI) environments where
system libraries are provided hermetically as a sysroot.

Diff Detail

Event Timeline

mysterymath created this revision.May 23 2023, 4:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 4:51 PM

Update commit message.

More style fixes.

mysterymath added a project: Restricted Project.May 23 2023, 4:53 PM

Restore accidentally removed flag.

mysterymath published this revision for review.May 23 2023, 5:01 PM
mysterymath retitled this revision from Pass CMAKE_SYSROOT through to lldb tests. to [lldb] Pass CMAKE_SYSROOT through to lldb tests.May 23 2023, 5:10 PM

The change itself looks fine, but isn't this an issue for the API tests too? If so, how is the sys root passed to dotest.py and can the shell tests do the same?

The change itself looks fine, but isn't this an issue for the API tests too? If so, how is the sys root passed to dotest.py and can the shell tests do the same?

Ah, thanks for the heads up. I couldn't find anything in the API tests that pass through a sysroot, so this may also be something to deal with there as well.
It's not very straightforward to reproduce this on our end though; the sysrooted builders we're working with don't yet have a suitable Python for LLDB, but we'll likely run into this the moment we try include one.

Restrict description to Shell tests.

mysterymath retitled this revision from [lldb] Pass CMAKE_SYSROOT through to lldb tests to [lldb] Pass CMAKE_SYSROOT through to LLDB shell tests.May 24 2023, 11:46 AM
mysterymath edited the summary of this revision. (Show Details)
mysterymath edited the summary of this revision. (Show Details)

Fixed commit message typo.

gulfem added a subscriber: gulfem.May 24 2023, 8:34 PM
JDevlieghere accepted this revision.May 26 2023, 9:18 AM

LGTM. I suspect you'll run into the same problem when you get the API tests working, but we can deal with that when the time comes.

This revision is now accepted and ready to land.May 26 2023, 9:18 AM

Apply black formatting to resolve merge conflict.

This revision was landed with ongoing or failed builds.May 26 2023, 11:30 AM
This revision was automatically updated to reflect the committed changes.