]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - tools/testing/selftests/timers/Makefile
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[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
0bc4b0cf 5
de52133f
JS
6# these are all "safe" tests that don't modify
7# system time or require escalated privledges
5744de54 8TEST_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
4a5fd815 9 inconsistency-check raw_skew threadtest rtctest
5744de54 10
6035519f 11TEST_PROGS_EXTENDED = alarmtimer-suspend valid-adjtimex adjtick change_skew \
5744de54 12 skew_consistency clocksource-switch leap-a-day \
1a77e2bd 13 leapcrash set-tai set-2038 set-tz
5744de54
ME
14
15bins = $(TEST_PROGS) $(TEST_PROGS_EXTENDED)
16
17all: ${bins}
18
19include ../lib.mk
de52133f
JS
20
21# these tests require escalated privledges
22# and may modify the system time or trigger
23# other behavior like suspend
b7bb8442
JS
24run_destructive_tests: run_tests
25 ./alarmtimer-suspend
de52133f 26 ./valid-adjtimex
6035519f 27 ./adjtick
d8694245 28 ./change_skew
6e8b285b 29 ./skew_consistency
7290ce14 30 ./clocksource-switch
5bccfe41 31 ./leap-a-day -s -i 10
d7b2902c 32 ./leapcrash
1a77e2bd 33 ./set-tz
3a92a15f 34 ./set-tai
0d02a753 35 ./set-2038
de52133f 36
0bc4b0cf 37clean:
03438212 38 rm -f ${bins}