Runs an executable on a remote host.
This is meant to be used as an executor when running the LLVM and the Libraries tests on a target.
This follows the discussion in https://reviews.llvm.org/D83429, and the code is based on libcxx/utils/ssh.py.
Differential D89349
Added utility to launch tests on a target remotely. aorlov on Oct 13 2020, 4:32 PM. Authored by
Details Runs an executable on a remote host. This follows the discussion in https://reviews.llvm.org/D83429, and the code is based on libcxx/utils/ssh.py.
Diff Detail
Unit Tests Event TimelineComment Actions Changed the parameter --test-executable to --exec-pattern; Comment Actions LGTM, also tested with the aarch64/armv7 compiler-rt tests on Windows cross builders. Comment Actions Do we still need this utility if we add --test-executable (or as you did --exec-pattern) to the original libcxx ssh.py? Comment Actions Note, what happened is that I spoke with @broadwaylamb offline and he made a point that supporting --test-executable was worthwhile, and it would remove existing hacks in ssh.py. In the meantime, I also came across other use cases that would be helped by having --test-executable, which is why I came back and changed my mind on D83429. Comment Actions Since we use this utility in multiple projects now, it is better to have it outside the libc++ project, so we would not introduce unneeded inter-project dependencies just because of shared tools. It might make sense to change the libc++ tests to use this utility, to remove the redundancy. I’ll be glad to propose a patch for that if you would like me to. Please let me know. |