55b74ccd37ae8a02c0c4351a93bd4c5f20740e4d
[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         alarmtimer-suspend change_skew
8
9 all: ${bins}
10
11 # these are all "safe" tests that don't modify
12 # system time or require escalated privledges
13 run_tests: all
14         ./posix_timers
15         ./nanosleep
16         ./nsleep-lat
17         ./set-timer-lat
18         ./mqueue-lat
19         ./inconsistency-check
20         ./raw_skew
21         ./threadtest -t 30 -n 8
22
23 # these tests require escalated privledges
24 # and may modify the system time or trigger
25 # other behavior like suspend
26 run_destructive_tests: run_tests
27         ./alarmtimer-suspend
28         ./valid-adjtimex
29         ./change_skew
30
31 clean:
32         rm -f ${bins}