Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754513AbbBEGhX (ORCPT ); Thu, 5 Feb 2015 01:37:23 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36787 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751190AbbBEGhW (ORCPT ); Thu, 5 Feb 2015 01:37:22 -0500 From: John Stultz To: Linux Kernel Mailing List Cc: John Stultz , Shuah Khan , Prarit Bhargava , Thomas Gleixner , Richard Cochran Subject: [RFC][PATCH 0/7] Start adding timetests to selftest Date: Wed, 4 Feb 2015 22:37:05 -0800 Message-Id: <1423118232-14096-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2681 Lines: 60 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 Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/