linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests/timers: Turn off timeout setting
@ 2020-02-25 10:18 Po-Hsu Lin
  2020-02-25 15:16 ` Joe Lawrence
  2020-02-25 15:30 ` shuah
  0 siblings, 2 replies; 4+ messages in thread
From: Po-Hsu Lin @ 2020-02-25 10:18 UTC (permalink / raw)
  To: linux-kselftest; +Cc: linux-kernel, shuah, sboyd, tglx, john.stultz

Tests in timers especially nsleep-lat, set-timer-lat,
inconsistency-check and raw_skew these 4 tests can take longer than
the default 45 seconds that introduced in commit 852c8cbf
(selftests/kselftest/runner.sh: Add 45 second timeout per test) to run.

Disable the timeout setting for timers instead of looking for an proper
value to make it more general.

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
---
 tools/testing/selftests/timers/settings | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 tools/testing/selftests/timers/settings

diff --git a/tools/testing/selftests/timers/settings b/tools/testing/selftests/timers/settings
new file mode 100644
index 0000000..e7b9417
--- /dev/null
+++ b/tools/testing/selftests/timers/settings
@@ -0,0 +1 @@
+timeout=0
-- 
2.7.4


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

* Re: [PATCH] selftests/timers: Turn off timeout setting
  2020-02-25 10:18 [PATCH] selftests/timers: Turn off timeout setting Po-Hsu Lin
@ 2020-02-25 15:16 ` Joe Lawrence
  2020-02-25 15:30 ` shuah
  1 sibling, 0 replies; 4+ messages in thread
From: Joe Lawrence @ 2020-02-25 15:16 UTC (permalink / raw)
  To: Po-Hsu Lin, linux-kselftest; +Cc: linux-kernel, shuah, sboyd, tglx, john.stultz

On 2/25/20 5:18 AM, Po-Hsu Lin wrote:
> Tests in timers especially nsleep-lat, set-timer-lat,
> inconsistency-check and raw_skew these 4 tests can take longer than
> the default 45 seconds that introduced in commit 852c8cbf
> (selftests/kselftest/runner.sh: Add 45 second timeout per test) to run.
> 
> Disable the timeout setting for timers instead of looking for an proper
> value to make it more general.
> 
> Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
> ---
>   tools/testing/selftests/timers/settings | 1 +
>   1 file changed, 1 insertion(+)
>   create mode 100644 tools/testing/selftests/timers/settings
> 
> diff --git a/tools/testing/selftests/timers/settings b/tools/testing/selftests/timers/settings
> new file mode 100644
> index 0000000..e7b9417
> --- /dev/null
> +++ b/tools/testing/selftests/timers/settings
> @@ -0,0 +1 @@
> +timeout=0
> 

Hi,

Michael recently posted a patch that adds the various selftest settings 
files to the TEST_FILES list, ensuring that they get copied to the 
install directory along with the tests:

https://lore.kernel.org/linux-kselftest/20200220044241.2878-1-mpe@ellerman.id.au/

I think if you add that to the corresponding Makefile, you should be set.

Regards,

-- Joe


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

* Re: [PATCH] selftests/timers: Turn off timeout setting
  2020-02-25 10:18 [PATCH] selftests/timers: Turn off timeout setting Po-Hsu Lin
  2020-02-25 15:16 ` Joe Lawrence
@ 2020-02-25 15:30 ` shuah
  2020-02-25 16:26   ` Po-Hsu Lin
  1 sibling, 1 reply; 4+ messages in thread
From: shuah @ 2020-02-25 15:30 UTC (permalink / raw)
  To: Po-Hsu Lin, linux-kselftest; +Cc: linux-kernel, sboyd, tglx, john.stultz, shuah

On 2/25/20 3:18 AM, Po-Hsu Lin wrote:
> Tests in timers especially nsleep-lat, set-timer-lat,
> inconsistency-check and raw_skew these 4 tests can take longer than
> the default 45 seconds that introduced in commit 852c8cbf
> (selftests/kselftest/runner.sh: Add 45 second timeout per test) to run.
> 
> Disable the timeout setting for timers instead of looking for an proper
> value to make it more general.
> 
> Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
> ---
>   tools/testing/selftests/timers/settings | 1 +
>   1 file changed, 1 insertion(+)
>   create mode 100644 tools/testing/selftests/timers/settings
> 
> diff --git a/tools/testing/selftests/timers/settings b/tools/testing/selftests/timers/settings
> new file mode 100644
> index 0000000..e7b9417
> --- /dev/null
> +++ b/tools/testing/selftests/timers/settings
> @@ -0,0 +1 @@
> +timeout=0
> 

What happens when you disable this and set it to 0? How long does the
rest run in this case? Can you add the details to the change log please.

thanks,
-- Shuah

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

* Re: [PATCH] selftests/timers: Turn off timeout setting
  2020-02-25 15:30 ` shuah
@ 2020-02-25 16:26   ` Po-Hsu Lin
  0 siblings, 0 replies; 4+ messages in thread
From: Po-Hsu Lin @ 2020-02-25 16:26 UTC (permalink / raw)
  To: shuah; +Cc: linux-kselftest, linux-kernel, sboyd, tglx, John Stultz

Sure,
I will send V2 that include the change for makefile and more detail
about the change.
Thanks for the feedback,

On Tue, Feb 25, 2020 at 11:30 PM shuah <shuah@kernel.org> wrote:
>
> On 2/25/20 3:18 AM, Po-Hsu Lin wrote:
> > Tests in timers especially nsleep-lat, set-timer-lat,
> > inconsistency-check and raw_skew these 4 tests can take longer than
> > the default 45 seconds that introduced in commit 852c8cbf
> > (selftests/kselftest/runner.sh: Add 45 second timeout per test) to run.
> >
> > Disable the timeout setting for timers instead of looking for an proper
> > value to make it more general.
> >
> > Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
> > ---
> >   tools/testing/selftests/timers/settings | 1 +
> >   1 file changed, 1 insertion(+)
> >   create mode 100644 tools/testing/selftests/timers/settings
> >
> > diff --git a/tools/testing/selftests/timers/settings b/tools/testing/selftests/timers/settings
> > new file mode 100644
> > index 0000000..e7b9417
> > --- /dev/null
> > +++ b/tools/testing/selftests/timers/settings
> > @@ -0,0 +1 @@
> > +timeout=0
> >
>
> What happens when you disable this and set it to 0? How long does the
> rest run in this case? Can you add the details to the change log please.
>
> thanks,
> -- Shuah

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

end of thread, other threads:[~2020-02-25 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-25 10:18 [PATCH] selftests/timers: Turn off timeout setting Po-Hsu Lin
2020-02-25 15:16 ` Joe Lawrence
2020-02-25 15:30 ` shuah
2020-02-25 16:26   ` Po-Hsu Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).