This is an archive of the discontinued LLVM Phabricator instance.

[bugpoint] Add options to support copying to remote host
Needs ReviewPublic

Authored by jrtc27 on Nov 8 2021, 4:11 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

We already have --remote-{client,host,port,user,extra-options} in order
to allow binaries to be run remotely via ssh. However, that bakes in the
assumption that "cd $PWD; ./$EXE" will work on the remote host, i.e.
that $PWD is a shared network directory and that the path to it is
identical on both hosts, which is normally not the case.

This adds --remote-copy, which takes the name of or path to an scp (or
compatible) program, mirroring --remote-client, and --remote-directory
as the location to which to copy the executable, which can also be used
on its own if you have a shared network directory but its path differs
between hosts.

Diff Detail

Event Timeline

jrtc27 requested review of this revision.Nov 8 2021, 4:11 PM
jrtc27 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2021, 4:11 PM
MaskRay added a subscriber: MaskRay.Nov 9 2021, 8:11 PM

Can you add some instructions to the summary how this feature is used?