On 20 November 2013 15:44, <[email protected]> wrote:
> Hi!
> > I am looking for (three years) old style of running tests in ltp ( like
> as
> > runltp do not look for /ltp/bin or testcase/bin or /opt/bin for test
> > binaries, just go to each testcase/kernel/syscall/each-dir-and-run). Not
> > ready to go back and use old ltp version, instead i am looking a way to
> run
> > test from its source directory which will benefits gcov/lcov to generate
> > coverage report.
>
> How exactly was this implemented? In the runltp script or was there a
> diferent one?
>
Today i took some time to hack gcov/lcov with LTP.
I sent patches
- copy gcov supported files
- runltp with gcov enable
These patches more about hack but they work on standalone machine and
installing binaries in side the ltp tree.
people interested in test coverage could try these patches and see how it
looks like.
However, these patches can not be in mainline and these are not optimal
patches.
Sample LTP test coverage report is present here
http://people.linaro.org/~naresh.kamboju/ltp-full-test-coverage-out/
> There are many problems with such approach. Just to start:
>
I agree with you. there are many problems.
automake tools making our life easy.
>
> * There are some programs that runs subprograms and path to them must be
> in PATH, this obviously works if LTP is installed and all binaries are
> in /opt/ltp/testcases/bin/
>
These are the default path to install.
/opt/ltp/bin/
/opt/ltp/testcases/bin/
>
> * Device drivers need to modprobe kernel modules, which are not always
> in local directory
>
* The testcases are described in runtest files by a binary name, not by
> a full path -> you have to find them somehow
These are the well known issues.
but looking forward to have a configurable parameter to travel each
directory and running testcases and generating gcov reports. However
supporting tools can be installed under ltp/bin/. gcov expects
source/binary/gcno/gcda to be present in the same location to generate
.c.gcov file .If wider developers/testers have same interest could work
running gcov/lcov on LTP source.
Best regards
Naresh Kamboju
>
>
...
>
> --
> Cyril Hrubis
> [email protected]
>
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list