]>
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 \ |
b7bb8442 | 6 | set-timer-lat threadtest mqueue-lat valid-adjtimex \ |
6e8b285b | 7 | alarmtimer-suspend change_skew skew_consistency |
03438212 JS |
8 | |
9 | all: ${bins} | |
0bc4b0cf | 10 | |
de52133f JS |
11 | # these are all "safe" tests that don't modify |
12 | # system time or require escalated privledges | |
0bc4b0cf FW |
13 | run_tests: all |
14 | ./posix_timers | |
689f32fb | 15 | ./nanosleep |
c5fffcb2 | 16 | ./nsleep-lat |
4e40d0a2 | 17 | ./set-timer-lat |
274d631e | 18 | ./mqueue-lat |
ed3fe34a | 19 | ./inconsistency-check |
51f91cbd | 20 | ./raw_skew |
e39b60f3 | 21 | ./threadtest -t 30 -n 8 |
de52133f JS |
22 | |
23 | # these tests require escalated privledges | |
24 | # and may modify the system time or trigger | |
25 | # other behavior like suspend | |
b7bb8442 JS |
26 | run_destructive_tests: run_tests |
27 | ./alarmtimer-suspend | |
de52133f | 28 | ./valid-adjtimex |
d8694245 | 29 | ./change_skew |
6e8b285b | 30 | ./skew_consistency |
de52133f | 31 | |
0bc4b0cf | 32 | clean: |
03438212 | 33 | rm -f ${bins} |