selftests/timers: Add adjtimex validation test from timetest suite
[cascardo/linux.git] / tools / testing / selftests / timers / Makefile
1 CC = $(CROSS_COMPILE)gcc
2 BUILD_FLAGS = -DKTEST
3 CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
4 LDFLAGS += -lrt -lpthread
5 bins = posix_timers nanosleep inconsistency-check nsleep-lat raw_skew \
6         set-timer-lat threadtest mqueue-lat valid-adjtimex
7
8 all: ${bins}
9
10 # these are all "safe" tests that don't modify
11 # system time or require escalated privledges
12 run_tests: all
13         ./posix_timers
14         ./nanosleep
15         ./nsleep-lat
16         ./set-timer-lat
17         ./mqueue-lat
18         ./inconsistency-check
19         ./raw_skew
20         ./threadtest -t 30 -n 8
21
22 # these tests require escalated privledges
23 # and may modify the system time or trigger
24 # other behavior like suspend
25 run_destructive_tests: all
26         ./valid-adjtimex
27
28 clean:
29         rm -f ${bins}