diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2013-06-28 02:06:43 +0200 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2013-07-03 16:20:03 +0200 |
commit | 0bc4b0cf15708fca04095232c4e448634e94d029 (patch) | |
tree | 9c6d6e455c20b7fa19adfc22928dd5e5f839a12a /tools/testing/selftests/timers/Makefile | |
parent | posix_cpu_timers: consolidate expired timers check (diff) | |
download | linux-0bc4b0cf15708fca04095232c4e448634e94d029.tar.xz linux-0bc4b0cf15708fca04095232c4e448634e94d029.zip |
selftests: add basic posix timers selftests
Add some initial basic tests on a few posix timers interface such as
setitimer() and timer_settime().
These simply check that expiration happens in a reasonable timeframe after
expected elapsed clock time (user time, user + system time, real time,
...).
This is helpful for finding basic breakages while hacking
on this subsystem.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Cc: Olivier Langlois <olivier@trillion01.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests/timers/Makefile')
-rw-r--r-- | tools/testing/selftests/timers/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile new file mode 100644 index 000000000000..eb2859f4ad21 --- /dev/null +++ b/tools/testing/selftests/timers/Makefile @@ -0,0 +1,8 @@ +all: + gcc posix_timers.c -o posix_timers -lrt + +run_tests: all + ./posix_timers + +clean: + rm -f ./posix_timers |