From: fixed-term.Oleksij.Rempel <fixed-term.Oleksij.Rempel@de.bosch.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] consolidate 4 TCs message_queue_test_02_* into message_queue_test_02.sh to avoid fail in case of random execution
Date: Mon, 18 Jul 2016 14:13:49 +0200 [thread overview]
Message-ID: <578CC7FD.4030305@de.bosch.com> (raw)
In-Reply-To: <20160718115932.GB18221@rei.suse.cz>
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.
prev parent reply other threads:[~2016-07-18 12:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=578CC7FD.4030305@de.bosch.com \
--to=fixed-term.oleksij.rempel@de.bosch.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.