]>
Commit | Line | Data |
---|---|---|
03438212 JS |
1 | CC = $(CROSS_COMPILE)gcc |
2 | BUILD_FLAGS = -DKTEST | |
3 | CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS) | |
4 | LDFLAGS += -lrt -lpthread | |
4e40d0a2 | 5 | bins = posix_timers nanosleep inconsistency-check nsleep-lat raw_skew \ |
de52133f | 6 | set-timer-lat threadtest mqueue-lat valid-adjtimex |
03438212 JS |
7 | |
8 | all: ${bins} | |
0bc4b0cf | 9 | |
de52133f JS |
10 | # these are all "safe" tests that don't modify |
11 | # system time or require escalated privledges | |
0bc4b0cf FW |
12 | run_tests: all |
13 | ./posix_timers | |
689f32fb | 14 | ./nanosleep |
c5fffcb2 | 15 | ./nsleep-lat |
4e40d0a2 | 16 | ./set-timer-lat |
274d631e | 17 | ./mqueue-lat |
ed3fe34a | 18 | ./inconsistency-check |
51f91cbd | 19 | ./raw_skew |
e39b60f3 | 20 | ./threadtest -t 30 -n 8 |
de52133f JS |
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 | ||
0bc4b0cf | 28 | clean: |
03438212 | 29 | rm -f ${bins} |