LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: John Stultz <john.stultz@linaro.org>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: John Stultz <john.stultz@linaro.org>,
	Shuah Khan <shuahkh@osg.samsung.com>,
	Prarit Bhargava <prarit@redhat.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Richard Cochran <richardcochran@gmail.com>
Subject: [RFC][PATCH 0/7] Start adding timetests to selftest
Date: Wed,  4 Feb 2015 22:37:05 -0800	[thread overview]
Message-ID: <1423118232-14096-1-git-send-email-john.stultz@linaro.org> (raw)

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 <shuahkh@osg.samsung.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>

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

-- 
1.9.1


             reply	other threads:[~2015-02-05  6:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-05  6:37 John Stultz [this message]
2015-02-05  6:37 ` [PATCH 1/7] selftests/timers: Cleanup Makefile to make it easier to add future tests John Stultz
2015-02-05  6:39   ` John Stultz
2015-02-05  6:37 ` [PATCH 2/7] selftest/timers: Quiet warning due to lack of return check on brk John Stultz
2015-02-05  6:37 ` [PATCH 3/7] selftest/timers: Add nanosleep test from timetest suite John Stultz
2015-02-05  6:37 ` [PATCH 4/7] selftest/timers: Add inconsistency-check test from timetests John Stultz
2015-02-05  6:37 ` [PATCH 5/7] selftest/timers: Add nsleep-lat test from timetest suite John Stultz
2015-02-05  6:37 ` [PATCH 6/7] selftests/timers: Add clock skew estimation " John Stultz
2015-02-05  6:37 ` [PATCH 7/7] selftest/timers: Add set-timer-lat " John Stultz
2015-02-05 22:13 ` [RFC][PATCH 0/7] Start adding timetests to selftest Shuah Khan
2015-02-05 23:27   ` John Stultz

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=1423118232-14096-1-git-send-email-john.stultz@linaro.org \
    --to=john.stultz@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=prarit@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=shuahkh@osg.samsung.com \
    --cc=tglx@linutronix.de \
    --subject='Re: [RFC][PATCH 0/7] Start adding timetests to selftest' \
    /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

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).