All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] consolidate 4 TCs message_queue_test_02_* into message_queue_test_02.sh to avoid fail in case of random execution
@ 2016-07-15  9:47 Nga Hoang
  2016-07-15  9:55 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Nga Hoang @ 2016-07-15  9:47 UTC (permalink / raw)
  To: ltp


Signed-off-by: Hoang Thi Thuy Nga (RBVH/ENG2) <ngh1hc@HCUT2832C.hc.apac.bosch.com>
---
 runtest/ipc                                              | 5 +----
 testcases/kernel/ipc/ipc_stress/Makefile                 | 2 +-
 testcases/kernel/ipc/ipc_stress/message_queue_test_02.sh | 6 ++++++
 3 files changed, 8 insertions(+), 5 deletions(-)
 create mode 100644 testcases/kernel/ipc/ipc_stress/message_queue_test_02.sh

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-consolidate-4-TCs-message_queue_test_02_-into-messag.patch
Type: text/x-patch
Size: 1534 bytes
Desc: not available
URL: <http://lists.linux.it/pipermail/ltp/attachments/20160715/edef22ab/attachment.bin>

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

* [LTP] [PATCH] consolidate 4 TCs message_queue_test_02_* into message_queue_test_02.sh to avoid fail in case of random execution
  2016-07-15  9:47 [LTP] [PATCH] consolidate 4 TCs message_queue_test_02_* into message_queue_test_02.sh to avoid fail in case of random execution Nga Hoang
@ 2016-07-15  9:55 ` Cyril Hrubis
  2016-07-15 10:26   ` FIXED-TERM Rempel Oleksij
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2016-07-15  9:55 UTC (permalink / raw)
  To: ltp

Hi!
> diff --git a/runtest/ipc b/runtest/ipc
> index 50f072a..7c6fed5 100644
> --- a/runtest/ipc
> +++ b/runtest/ipc
> @@ -32,10 +32,7 @@ sem01 sem01
>  sem02 sem02
>  
>  message_queue_test_01		message_queue_test_01
> -message_queue_test_02_get	message_queue_test_02_get
> -message_queue_test_02_snd	message_queue_test_02_snd
> -message_queue_test_02_rcv	message_queue_test_02_rcv
> -message_queue_test_02_ctl	message_queue_test_02_ctl -r
> +message_queue_test_02		message_queue_test_02.sh
>  message_queue_test_04		message_queue_test_04
>  message_queue_test_05		message_queue_test_05
>  pipe_test_01			pipe_test_01

This is exactly against our guidelines, see:

https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#211-runtest-files

-- 
Cyril Hrubis
chrubis@suse.cz

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

* [LTP] [PATCH] consolidate 4 TCs message_queue_test_02_* into message_queue_test_02.sh to avoid fail in case of random execution
  2016-07-15  9:55 ` Cyril Hrubis
@ 2016-07-15 10:26   ` FIXED-TERM Rempel Oleksij
  2016-07-18 11:59     ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: FIXED-TERM Rempel Oleksij @ 2016-07-15 10:26 UTC (permalink / raw)
  To: ltp

Hi Cyril,

> -----Original Message-----
> From: ltp [mailto:ltp-bounces+fixed-
> term.oleksij.rempel=de.bosch.com@lists.linux.it] On Behalf Of Cyril Hrubis
> Sent: Friday, July 15, 2016 11:56 AM
> To: Hoang Thi Thuy Nga (RBVH/ENG2) <Nga.HoangThiThuy@vn.bosch.com>
> Cc: Hoang Thi Thuy Nga (RBVH/ENG2)
> <ngh1hc@HCUT2832C.hc.apac.bosch.com>; ltp@lists.linux.it
> Subject: Re: [LTP] [PATCH] consolidate 4 TCs message_queue_test_02_* into
> message_queue_test_02.sh to avoid fail in case of random execution
> 
> Hi!
> > diff --git a/runtest/ipc b/runtest/ipc index 50f072a..7c6fed5 100644
> > --- a/runtest/ipc
> > +++ b/runtest/ipc
> > @@ -32,10 +32,7 @@ sem01 sem01
> >  sem02 sem02
> >
> >  message_queue_test_01		message_queue_test_01
> > -message_queue_test_02_get	message_queue_test_02_get
> > -message_queue_test_02_snd	message_queue_test_02_snd
> > -message_queue_test_02_rcv	message_queue_test_02_rcv
> > -message_queue_test_02_ctl	message_queue_test_02_ctl -r
> > +message_queue_test_02		message_queue_test_02.sh
> >  message_queue_test_04		message_queue_test_04
> >  message_queue_test_05		message_queue_test_05
> >  pipe_test_01			pipe_test_01
> 
> This is exactly against our guidelines, see:
> 
> https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#211-runtest-
> files

What exactly do you mean?

To avoid confusions I need to explain background of this patch:
We working on remote execution of LTPs on the target. It means, some script is taking test list and execute each of entry over ssh.
In this case we are able to track resets and continue testing after it.

So, now we found that some resets are not actially triggered by some specific test. So we decided to randomize test order.
This allowed us to find some more bugs on the system, but introduced issues with tests which depend on each other. For example message_queue_test_02_* can be executed only in some specific order.

What would be the proper way to solve this issue?

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

* [LTP] [PATCH] consolidate 4 TCs message_queue_test_02_* into message_queue_test_02.sh to avoid fail in case of random execution
  2016-07-15 10:26   ` FIXED-TERM Rempel Oleksij
@ 2016-07-18 11:59     ` Cyril Hrubis
  2016-07-18 12:13       ` fixed-term.Oleksij.Rempel
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2016-07-18 11:59 UTC (permalink / raw)
  To: ltp

Hi!
> > >  sem02 sem02
> > >
> > >  message_queue_test_01		message_queue_test_01
> > > -message_queue_test_02_get	message_queue_test_02_get
> > > -message_queue_test_02_snd	message_queue_test_02_snd
> > > -message_queue_test_02_rcv	message_queue_test_02_rcv
> > > -message_queue_test_02_ctl	message_queue_test_02_ctl -r
> > > +message_queue_test_02		message_queue_test_02.sh
> > >  message_queue_test_04		message_queue_test_04
> > >  message_queue_test_05		message_queue_test_05
> > >  pipe_test_01			pipe_test_01
> > 
> > This is exactly against our guidelines, see:
> > 
> > https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#211-runtest-
> > files
> 
> What exactly do you mean?

What I mean and is written in the guidelines is:

The runtest files should have one entry per a test. Creating a wrapper
that runs all your tests and adding it as a single test into runtest
file is strongly discouraged.

> To avoid confusions I need to explain background of this patch: We
> working on remote execution of LTPs on the target. It means, some
> script is taking test list and execute each of entry over ssh.  In
> this case we are able to track resets and continue testing after it.
>
> So, now we found that some resets are not actially triggered by some
> specific test. So we decided to randomize test order.  This allowed us
> to find some more bugs on the system, but introduced issues with tests
> which depend on each other. For example message_queue_test_02_* can be
> executed only in some specific order.

Ah, so they depend on each other. That is a valid reason for executing
them in a defined order.

You should have written better patch description since this is not
exactly clear.

> What would be the proper way to solve this issue?

Looking at the code we should probably avoid running these testcasese in
ipc runtest file, since they were designed to be executed in a loop to
stress the target system. They does not seem very useful when they are
executed just once as from the runtest file.

-- 
Cyril Hrubis
chrubis@suse.cz

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

* [LTP] [PATCH] consolidate 4 TCs message_queue_test_02_* into message_queue_test_02.sh to avoid fail in case of random execution
  2016-07-18 11:59     ` Cyril Hrubis
@ 2016-07-18 12:13       ` fixed-term.Oleksij.Rempel
  0 siblings, 0 replies; 5+ messages in thread
From: fixed-term.Oleksij.Rempel @ 2016-07-18 12:13 UTC (permalink / raw)
  To: ltp



On 18.07.2016 13:59, Cyril Hrubis wrote:
> Hi!
>>>>  sem02 sem02
>>>>
>>>>  message_queue_test_01		message_queue_test_01
>>>> -message_queue_test_02_get	message_queue_test_02_get
>>>> -message_queue_test_02_snd	message_queue_test_02_snd
>>>> -message_queue_test_02_rcv	message_queue_test_02_rcv
>>>> -message_queue_test_02_ctl	message_queue_test_02_ctl -r
>>>> +message_queue_test_02		message_queue_test_02.sh
>>>>  message_queue_test_04		message_queue_test_04
>>>>  message_queue_test_05		message_queue_test_05
>>>>  pipe_test_01			pipe_test_01
>>>
>>> This is exactly against our guidelines, see:
>>>
>>> https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#211-runtest-
>>> files
>>
>> What exactly do you mean?
> 
> What I mean and is written in the guidelines is:
> 
> The runtest files should have one entry per a test. Creating a wrapper
> that runs all your tests and adding it as a single test into runtest
> file is strongly discouraged.
> 
>> To avoid confusions I need to explain background of this patch: We
>> working on remote execution of LTPs on the target. It means, some
>> script is taking test list and execute each of entry over ssh.  In
>> this case we are able to track resets and continue testing after it.
>>
>> So, now we found that some resets are not actially triggered by some
>> specific test. So we decided to randomize test order.  This allowed us
>> to find some more bugs on the system, but introduced issues with tests
>> which depend on each other. For example message_queue_test_02_* can be
>> executed only in some specific order.
> 
> Ah, so they depend on each other. That is a valid reason for executing
> them in a defined order.
> 
> You should have written better patch description since this is not
> exactly clear.

Yea, we are learning to work with upstream directly :)
It will take some time until the patches will be good from first try.

>> What would be the proper way to solve this issue?
> 
> Looking at the code we should probably avoid running these testcasese in
> ipc runtest file, since they were designed to be executed in a loop to
> stress the target system. They does not seem very useful when they are
> executed just once as from the runtest file.

Hmm.. so, they can be removed for now?
Or there is some other place for this kind of tests?
How about cpuhotplug* tests? Some times they fail, but since they are
executed only once, i would expect bad reproducibility.

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

end of thread, other threads:[~2016-07-18 12:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-15  9:47 [LTP] [PATCH] consolidate 4 TCs message_queue_test_02_* into message_queue_test_02.sh to avoid fail in case of random execution Nga Hoang
2016-07-15  9:55 ` Cyril Hrubis
2016-07-15 10:26   ` FIXED-TERM Rempel Oleksij
2016-07-18 11:59     ` Cyril Hrubis
2016-07-18 12:13       ` fixed-term.Oleksij.Rempel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.