[LTP] How to run individual C testcase file like ltp/testcases/kernel/containers/pidns/pidns01.c

Cyril Hrubis chrubis@suse.cz
Tue Sep 29 14:24:42 CEST 2015


Hi!
> I want to compile and run all the individual testcase (like, pidns01.c 
> from ltp/testcases/kernel/containers/pidns/pidns01.c) only from github 
> source files. If there is any way to do this?

There is an howto for building LTP from git checkout:

https://github.com/linux-test-project/ltp/blob/master/doc/mini-howto-building-ltp-from-git.txt

All you need is basically:

make autotools
./configure --prefix=$PREFIX
make

Which will create binary for each of the pidns testcases. Then you can just run
them.

[CC: The LTP mailing list, you should always at least CC it when asking
 questions about LTP]

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list