[lttng-dev] Running lttng-tools testsuite against an installed codebase

Stefan Seefeld stefan_seefeld at mentor.com
Fri Sep 13 09:20:31 EDT 2013


On 09/12/2013 06:29 PM, Christian Babeux wrote:
> Hi lttng-testers,
>
> The current lttng-tools testsuite has some limitations as recently
> pointed out on this OpenEmbedded thread [1].
>
> The testsuite cannot be runned against an installed codebase of
> lttng-tools because the tests assume that the lttng cli and the
> testapps are located in the build directory.
>
> Perhaps an env. var. could be used when running the make installcheck target?
>
> Any thoughts on how we could resolve this issue?

I have looked a little more into the test support code. It appears that
at least some test scripts hardcode the path to the lttng binaries
relative to the test directory. Removing those path prefixes indeed
resolved the test failures in the cases I was looking into. Of course,
that would break the `make check` target as for in-development testing
the binaries would no longer be found. Is there any reason a simple
adjustment of the PATH variable would not be enough ?

Thanks,
        Stefan


-- 
Stefan Seefeld
CodeSourcery / Mentor Graphics
http://www.mentor.com/embedded-software/




More information about the lttng-dev mailing list