This is an archive of the discontinued LLVM Phabricator instance.

[libcxx][executors] Add a --wrapper-command flag to prepend a command
AbandonedPublic

Authored by arichardson on Oct 6 2020, 6:46 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Summary

This can be used to run tests under GDB/LLDB/Valgrind/qemu-user etc.
A follow-up change will use this flag to enable running all tests under
GDB (printing a backtrace on crashes).

Diff Detail

Event Timeline

arichardson created this revision.Oct 6 2020, 6:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2020, 6:46 AM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald Transcript
arichardson requested review of this revision.Oct 6 2020, 6:46 AM
ldionne requested changes to this revision.Oct 6 2020, 9:59 AM
ldionne added inline comments.
libcxx/utils/run.py
27

This is like an executor within an executor. Is there a reason why you don't simply write a separate executor that does the things you need?

I think it would be good to leave these basic executors simple -- the whole thing was meant to be extended by writing new executors, not by making the existing executors more complex.

This revision now requires changes to proceed.Oct 6 2020, 9:59 AM
arichardson added inline comments.Oct 6 2020, 10:02 AM
libcxx/utils/run.py
27

That would work well for the local executor, but adding the prefix to the ssh executor means I'd also have to duplicate the ssh executor (that's the one I really want this feature for). I feel like adding this command line flag is simpler than duplicating every executor.

arichardson abandoned this revision.Oct 19 2020, 6:22 AM