public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] How to run individual C testcase file like ltp/testcases/kernel/containers/pidns/pidns01.c
@ 2015-09-28  5:52 Abhishek Dasgupta
  0 siblings, 0 replies; 5+ messages in thread
From: Abhishek Dasgupta @ 2015-09-28  5:52 UTC (permalink / raw)
  To: ltp-list

Hi,

     I am new to LTP and developing a testcase under pidns. I want to 
start with , if there is any way to run , suppose pidns01.c using only 
gcc command. Only using gcc command, it should be possible to run 
pidns01.c as the file contains main program. I am also interested in 
knowing the parameters used to call the file using gcc command.

   Regards,

   ---------------------------------------------------------------------------------------
   Abhishek Dasgupta
   Linux Software Developer - Linux Technology Centre
   IBM Systems Lab,
   IBM India Pvt. Ltd.
   Embassy Golf Link, D Block
   Koramongala - Off Indiranagar Ring Road
   Bangalore - 560 071
   Mobile: +91-8884107981
   ---------------------------------------------------------------------------------------


------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] How to run individual C testcase file like ltp/testcases/kernel/containers/pidns/pidns01.c
@ 2015-09-28  5:55 Abhishek Dasgupta
  2015-09-29  9:20 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Abhishek Dasgupta @ 2015-09-28  5:55 UTC (permalink / raw)
  To: ltp


  Hi,



     I am new to LTP and developing a testcase under pidns. I want to
start with , if there is any way to run , suppose pidns01.c using only
gcc command. Only using gcc command, it should be possible to run
pidns01.c as the file contains main program. I am also interested in
knowing the parameters used to call the file using gcc command.

   Regards,

   ---------------------------------------------------------------------------------------
   Abhishek Dasgupta
   Linux Software Developer - Linux Technology Centre
   IBM Systems Lab,
   IBM India Pvt. Ltd.
   Embassy Golf Link, D Block
   Koramongala - Off Indiranagar Ring Road
   Bangalore - 560 071
   Mobile: +91-8884107981
   ---------------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] How to run individual C testcase file like ltp/testcases/kernel/containers/pidns/pidns01.c
  2015-09-28  5:55 Abhishek Dasgupta
@ 2015-09-29  9:20 ` Cyril Hrubis
       [not found]   ` <560A7046.70803@linux.vnet.ibm.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2015-09-29  9:20 UTC (permalink / raw)
  To: ltp

Hi!
>      I am new to LTP and developing a testcase under pidns. I want to
> start with , if there is any way to run , suppose pidns01.c using only
> gcc command. Only using gcc command, it should be possible to run
> pidns01.c as the file contains main program. I am also interested in
> knowing the parameters used to call the file using gcc command.

This does not make any sense at all. You speak about running testcases
then continue to talk about the gcc compiler.

What do you want to do? Compile individual test? Run individual test? Or
both?

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] How to run individual C testcase file like ltp/testcases/kernel/containers/pidns/pidns01.c
       [not found]   ` <560A7046.70803@linux.vnet.ibm.com>
@ 2015-09-29 12:24     ` Cyril Hrubis
  2015-09-30  5:47       ` Abhishek Dasgupta
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2015-09-29 12:24 UTC (permalink / raw)
  To: ltp

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] How to run individual C testcase file like ltp/testcases/kernel/containers/pidns/pidns01.c
  2015-09-29 12:24     ` Cyril Hrubis
@ 2015-09-30  5:47       ` Abhishek Dasgupta
  0 siblings, 0 replies; 5+ messages in thread
From: Abhishek Dasgupta @ 2015-09-30  5:47 UTC (permalink / raw)
  To: ltp

Thank you Cyril for your reply. It helped me a lot.

On Tuesday 29 September 2015 05:54 PM, Cyril Hrubis wrote:
> 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]
>

-- 
   Regards,

   ---------------------------------------------------------------------------------------
   Abhishek Dasgupta
   Linux Software Developer - Linux Technology Centre
   IBM Systems Lab,
   IBM India Pvt. Ltd.
   Embassy Golf Link, D Block
   Koramongala - Off Indiranagar Ring Road
   Bangalore - 560 071
   Mobile: +91-8884107981
   ---------------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-30  5:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-28  5:52 [LTP] How to run individual C testcase file like ltp/testcases/kernel/containers/pidns/pidns01.c Abhishek Dasgupta
  -- strict thread matches above, loose matches on Subject: below --
2015-09-28  5:55 Abhishek Dasgupta
2015-09-29  9:20 ` Cyril Hrubis
     [not found]   ` <560A7046.70803@linux.vnet.ibm.com>
2015-09-29 12:24     ` Cyril Hrubis
2015-09-30  5:47       ` Abhishek Dasgupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox