public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] How to add test case in LTP for my local use
@ 2015-06-10  6:56 Pratik Prajapati
  2015-06-10 10:01 ` Stanislav Kholmanskikh
  0 siblings, 1 reply; 3+ messages in thread
From: Pratik Prajapati @ 2015-06-10  6:56 UTC (permalink / raw)
  To: ltp-list


[-- Attachment #1.1: Type: text/plain, Size: 224 bytes --]

Hi,

I want to add a test case for my local use. From
https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines I
get to know how to write a test case but didb't get how to add it. Please
help.

Regards,
Pratik

[-- Attachment #1.2: Type: text/html, Size: 387 bytes --]

[-- Attachment #2: Type: text/plain, Size: 79 bytes --]

------------------------------------------------------------------------------

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

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

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

* Re: [LTP] How to add test case in LTP for my local use
  2015-06-10  6:56 [LTP] How to add test case in LTP for my local use Pratik Prajapati
@ 2015-06-10 10:01 ` Stanislav Kholmanskikh
  2015-06-10 12:52   ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: Stanislav Kholmanskikh @ 2015-06-10 10:01 UTC (permalink / raw)
  To: Pratik Prajapati, ltp-list



On 06/10/2015 09:56 AM, Pratik Prajapati wrote:
> Hi,

Hi.

>
> I want to add a test case for my local use. From
> https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines I
> get to know how to write a test case but didb't get how to add it.
> Please help.

For example, you could create a directory somewhere inside your LTP 
sources with Makefile including testcases.mk and generic_leaf_target.mk 
like this:

top_srcdir              ?= ../

include $(top_srcdir)/include/mk/testcases.mk

include $(top_srcdir)/include/mk/generic_leaf_target.mk

And put your C files there. 'make' and 'make clean' will work inside 
this directory.


>
> Regards,
> Pratik
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>

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

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

* Re: [LTP] How to add test case in LTP for my local use
  2015-06-10 10:01 ` Stanislav Kholmanskikh
@ 2015-06-10 12:52   ` Cyril Hrubis
  0 siblings, 0 replies; 3+ messages in thread
From: Cyril Hrubis @ 2015-06-10 12:52 UTC (permalink / raw)
  To: Stanislav Kholmanskikh; +Cc: ltp-list

Hi!
> For example, you could create a directory somewhere inside your LTP 
> sources with Makefile including testcases.mk and generic_leaf_target.mk 
> like this:
> 
> top_srcdir              ?= ../
> 
> include $(top_srcdir)/include/mk/testcases.mk
> 
> include $(top_srcdir)/include/mk/generic_leaf_target.mk
> 
> And put your C files there. 'make' and 'make clean' will work inside 
> this directory.

The buildsystem is explained in:

https://github.com/linux-test-project/ltp/wiki/BuildSystem

To include the testcase in a testrun you have to add a line into the
correspoding runtest file (files in runtest/ dirctory).
(which is explained in the Test Writing Guidelines)

-- 
Cyril Hrubis
chrubis@suse.cz

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

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

end of thread, other threads:[~2015-06-10 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-10  6:56 [LTP] How to add test case in LTP for my local use Pratik Prajapati
2015-06-10 10:01 ` Stanislav Kholmanskikh
2015-06-10 12:52   ` Cyril Hrubis

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