<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-05-26 8:17 GMT-07:00 Pavel Labath via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
we are trying to convert some of the lldb tests to lit (for these<br>
specific tests we are using the googletest format). One of our<br>
requirements is that we are able to run these tests remotely, so that<br>
we are able to verify that we can debug e.g. android arm binaries even<br>
though our development environment runs x86 linux).<br>
<br>
As far as I am aware, right now there is no support for that in lit:<br>
running check-lldb-unit target in a cross-compile situation will<br>
attempt to run the run the test binaries as if they were native and<br>
fail horribly.<br>
<br>
Based on a not-too-detailed examination of the lit codebase, it does<br>
not seem that it would be too difficult to add this capability: During<br>
test discovery phase, we could copy the required files to the remote<br>
host. Then, when we run the test, we could just prefix the run command<br>
similarly to how it is done for running the tests under valgrind. It<br>
would be up to the user to provide a suitable command for copying and<br>
running files on the remote host (using rsync, ssh, telnet or any<br>
other transport he chooses).<br>
<br>
What do you think? Would something like that be a welcome addition to<br>
the llvm testing infrastructure? Has anyone tried to do something like<br>
that and hit major road blocks I did not anticipate?<br></blockquote><div><br></div><div>You may have a look at libcxx/utils/libcxx/test/executor.py ; it contains a "SSHExecutor" that can be used when running the lit tests for libcxx.</div><div><br></div><div>-- </div><div>Mehdi</div><div><br></div><div><br></div></div></div></div>