[llvm-dev] Running lit (googletest) tests remotely

Mehdi AMINI via llvm-dev llvm-dev at lists.llvm.org
Tue May 30 21:58:18 PDT 2017


2017-05-26 8:17 GMT-07:00 Pavel Labath via llvm-dev <llvm-dev at lists.llvm.org
>:

> Hello all,
>
> we are trying to convert some of the lldb tests to lit (for these
> specific tests we are using the googletest format). One of our
> requirements is that we are able to run these tests remotely, so that
> we are able to verify that we can debug e.g. android arm binaries even
> though our development environment runs x86 linux).
>
> As far as I am aware, right now there is no support for that in lit:
> running check-lldb-unit target in a cross-compile situation will
> attempt to run the run the test binaries as if they were native and
> fail horribly.
>
> Based on a not-too-detailed examination of the lit codebase, it does
> not seem that it would be too difficult to add this capability: During
> test discovery phase, we could copy the required files to the remote
> host. Then, when we run the test, we could just prefix the run command
> similarly to how it is done for running the tests under valgrind. It
> would be up to the user to provide a suitable command for copying and
> running files on the remote host (using rsync, ssh, telnet or any
> other transport he chooses).
>
> What do you think? Would something like that be a welcome addition to
> the llvm testing infrastructure? Has anyone tried to do something like
> that and hit major road blocks I did not anticipate?
>

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.

-- 
Mehdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170530/48c00b90/attachment.html>


More information about the llvm-dev mailing list