From: Shuah Khan <shuahkh@osg.samsung.com>
To: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
mpe@ellerman.id.au, Linux API <linux-api@vger.kernel.org>,
lkml <linux-kernel@vger.kernel.org>,
Shuah Khan <shuahkh@osg.samsung.com>
Subject: Re: [PATCH 2/2] selftests/timers: change to use shared logic to run and install tests
Date: Wed, 18 Mar 2015 09:43:08 -0600 [thread overview]
Message-ID: <55099D0C.40003@osg.samsung.com> (raw)
In-Reply-To: <CALAqxLXApErmHgCzgoo9xkBCZaP59yu=f9WEmmYwTH29ZrDadQ@mail.gmail.com>
On 03/13/2015 09:14 PM, John Stultz wrote:
> On Fri, Mar 13, 2015 at 3:57 PM, Shuah Khan <shuahkh@osg.samsung.com> wrote:
>> Change the timers Makefile to make use of shared run and install
>> logic in lib.mk. Destructive tests are installed. Regular tests
>> are emited to run_kselftest script to match the run_tests behavior.
>>
>> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
>> ---
>> tools/testing/selftests/timers/Makefile | 20 +++++++++++---------
>> 1 file changed, 11 insertions(+), 9 deletions(-)
>>
>> diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile
>> index 9da3498..61e7284 100644
>> --- a/tools/testing/selftests/timers/Makefile
>> +++ b/tools/testing/selftests/timers/Makefile
>> @@ -7,19 +7,21 @@ bins = posix_timers nanosleep inconsistency-check nsleep-lat raw_skew \
>> alarmtimer-suspend change_skew skew_consistency clocksource-switch \
>> leap-a-day leapcrash set-tai set-2038
>>
>> +TEST_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
>> + inconsistency-check raw_skew
>> +TEST_FILES = threadtest alarmtimer-suspend valid-adjtimex change_skew \
>> + skew_consistency clocksource-switch leap-a-day leapcrash \
>> + set-tai set-2038
>> +
>> +RUN_TESTS_WITH_ARGS := ./threadtest -t 30 -n 8 || echo "selftests: threadtest [FAIL]"
>> +
>> +EMIT_TESTS_WITH_ARGS := echo "$(RUN_TESTS_WITH_ARGS)"
>> +
>
> So my make-foo isn't very strong, but no objections from me.
>
> My only thoughts:
> 1) Would it be better if threadtest can be made to have better
> defaults for kselftest so you don't need that extra logic?
Yes. If you can change the threadset to run with -t 30 -n 8
in default case, that would make the logic simpler. Can you
send me a patch to do this?
> 2) While I get that TEST_FILES is likely going to be used to copy the
> destructive tests over, It feels a little like its being bundled in
> with something like data files that tests might need, which seems sort
> of hackish. Would TEST_PROGS_EXTENDED or something be more clear and
> make more sense?
I agree with you on this. TEST_FILES usage is an overload.
-- Shuah
--
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978
next prev parent reply other threads:[~2015-03-18 15:43 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 22:57 [PATCH 0/2] Changes to timers Maefile to use shared logic for run_tests and install Shuah Khan
2015-03-13 22:57 ` Shuah Khan
[not found] ` <cover.1426286799.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-03-13 22:57 ` [PATCH 1/2] selftests: add ability to run and emit script for tests args to lib.mk Shuah Khan
2015-03-13 22:57 ` Shuah Khan
2015-03-13 22:57 ` [PATCH 2/2] selftests/timers: change to use shared logic to run and install tests Shuah Khan
2015-03-13 22:57 ` Shuah Khan
[not found] ` <e34c7abc6dff5922a45376b7a3085545db66eb6d.1426286799.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-03-14 3:14 ` John Stultz
2015-03-14 3:14 ` John Stultz
[not found] ` <CALAqxLXApErmHgCzgoo9xkBCZaP59yu=f9WEmmYwTH29ZrDadQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-16 2:48 ` Michael Ellerman
2015-03-16 2:48 ` Michael Ellerman
[not found] ` <1426474128.20210.2.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
2015-03-18 15:55 ` Shuah Khan
2015-03-18 15:55 ` Shuah Khan
[not found] ` <55099FD8.1080502-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-03-19 0:21 ` Michael Ellerman
2015-03-19 0:21 ` Michael Ellerman
2015-03-18 15:43 ` Shuah Khan [this message]
2015-03-15 8:42 ` Michael Ellerman
2015-03-15 8:42 ` Michael Ellerman
[not found] ` <4E4E8162-A30D-4460-BF55-12C269760577-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
2015-03-16 2:46 ` Michael Ellerman
2015-03-16 2:46 ` Michael Ellerman
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=55099D0C.40003@osg.samsung.com \
--to=shuahkh@osg.samsung.com \
--cc=john.stultz@linaro.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpe@ellerman.id.au \
--cc=tglx@linutronix.de \
/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.