Skip to content

RFC Start adding timetests to selftest

John Stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7selftests/timers: Cleanup Makefile to make it easier to add future teststools/testing/selftests/timers/Makefile+6 -31 reply
2/7selftest/timers: Quiet warning due to lack of return check on brktools/testing/selftests/timers/posix_timers.c+3 -20 replies
3/7selftest/timers: Add nanosleep test from timetest suitetools/testing/selftests/timers/Makefile tools/testing/selftests/timers/nanosleep.c+163 -10 replies
4/7selftest/timers: Add inconsistency-check test from timeteststools/testing/selftests/timers/Makefile tools/testing/selftests/timers/inconsistency-check.c+200 -20 replies
5/7selftest/timers: Add nsleep-lat test from timetest suitetools/testing/selftests/timers/Makefile tools/testing/selftests/timers/nsleep-lat.c+178 -10 replies
6/7selftests/timers: Add clock skew estimation test from timetest suitetools/testing/selftests/timers/Makefile tools/testing/selftests/timers/raw_skew.c+139 -10 replies
7/7selftest/timers: Add set-timer-lat test from timetest suitetools/testing/selftests/timers/Makefile tools/testing/selftests/timers/set-timer-lat.c+202 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC][PATCH 0/7] Start adding timetests to selftest

I've maintained a suite of timekeeping and timer tests for awhile
here: https://github.com/johnstultz-work/timetests

I've been meaning to get them reworked and submitted into the selftest infrastructure, but haven't had much time recently.

I'm going to have a long flight coming up so I figured I'd get started and get some initial feedback.

This series adds all the non-destructive tests from my timetests suite. The suite has more tests which actually tweak time state and validate things behave as expected, but I wasn't sure how to integrate that into the selftest infrastructure as I'm not sure everyone would want the tests to be mucking with their system time. (Currently my plan is to add a script similar to the runall.sh in timetests, so folks can go in and manually run it if they're feeling daring)

Thoughts or comments here would be greatly appreciated!

thanks!
-john

Cc Shuah Khan <[email protected]>
Cc Prarit Bhargava <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Richard Cochran <[email protected]>

John Stultz (7):
selftests/timers: Cleanup Makefile to make it easier to add future
tests
selftest/timers: Quiet warning due to lack of return check on brk selftest/timers: Add nanosleep test from timetest suite selftest/timers: Add inconsistency-check test from timetests selftest/timers: Add nsleep-lat test from timetest suite selftests/timers: Add clock skew estimation test from timetest suite selftest/timers: Add set-timer-lat test from timetest suite

 tools/testing/selftests/timers/Makefile            |  15 +-
 .../testing/selftests/timers/inconsistency-check.c | 198 +++++++++++++++++++++
 tools/testing/selftests/timers/nanosleep.c         | 161 +++++++++++++++++
 tools/testing/selftests/timers/nsleep-lat.c        | 176 ++++++++++++++++++
 tools/testing/selftests/timers/posix_timers.c      |   5 +-
 tools/testing/selftests/timers/raw_skew.c          | 137 ++++++++++++++
 tools/testing/selftests/timers/set-timer-lat.c     | 198 +++++++++++++++++++++
 7 files changed, 885 insertions(+), 5 deletions(-)
 create mode 100644 tools/testing/selftests/timers/inconsistency-check.c
 create mode 100644 tools/testing/selftests/timers/nanosleep.c
 create mode 100644 tools/testing/selftests/timers/nsleep-lat.c
 create mode 100644 tools/testing/selftests/timers/raw_skew.c
 create mode 100644 tools/testing/selftests/timers/set-timer-lat.c
Signature · 1 line
1.9.1