]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - tools/testing/selftests/timers/Makefile
selftests/timers: Add leap-a-day test from timetest suite
[mirror_ubuntu-zesty-kernel.git] / tools / testing / selftests / timers / Makefile
CommitLineData
03438212
JS
1CC = $(CROSS_COMPILE)gcc
2BUILD_FLAGS = -DKTEST
3CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
4LDFLAGS += -lrt -lpthread
4e40d0a2 5bins = posix_timers nanosleep inconsistency-check nsleep-lat raw_skew \
b7bb8442 6 set-timer-lat threadtest mqueue-lat valid-adjtimex \
7290ce14 7 alarmtimer-suspend change_skew skew_consistency clocksource-switch \
5bccfe41 8 leap-a-day
03438212
JS
9
10all: ${bins}
0bc4b0cf 11
de52133f
JS
12# these are all "safe" tests that don't modify
13# system time or require escalated privledges
0bc4b0cf
FW
14run_tests: all
15 ./posix_timers
689f32fb 16 ./nanosleep
c5fffcb2 17 ./nsleep-lat
4e40d0a2 18 ./set-timer-lat
274d631e 19 ./mqueue-lat
ed3fe34a 20 ./inconsistency-check
51f91cbd 21 ./raw_skew
e39b60f3 22 ./threadtest -t 30 -n 8
de52133f
JS
23
24# these tests require escalated privledges
25# and may modify the system time or trigger
26# other behavior like suspend
b7bb8442
JS
27run_destructive_tests: run_tests
28 ./alarmtimer-suspend
de52133f 29 ./valid-adjtimex
d8694245 30 ./change_skew
6e8b285b 31 ./skew_consistency
7290ce14 32 ./clocksource-switch
5bccfe41 33 ./leap-a-day -s -i 10
de52133f 34
0bc4b0cf 35clean:
03438212 36 rm -f ${bins}