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