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

2017-05-26 Thread Pavel Labath via lldb-dev
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?

Or, if you have any suggestions on how to run tests in cross-compile
setting differently, I'd love to hear about them.

regards,
pavel
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Running lit (googletest) tests remotely

2017-05-26 Thread Reid Kleckner via lldb-dev
You might want to look at the compiler-rt tests, which have support for
remote runs. Search for the '%run' substitution. It's probably not directly
applicable to gtest tests, though.

On Fri, May 26, 2017 at 8:17 AM, Pavel Labath via lldb-dev <
lldb-dev@lists.llvm.org> wrote:

> 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?
>
> Or, if you have any suggestions on how to run tests in cross-compile
> setting differently, I'd love to hear about them.
>
> regards,
> pavel
> ___
> lldb-dev mailing list
> lldb-dev@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev