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 | |
0bc4b0cf | 5 | |
de52133f JS |
6 | # these are all "safe" tests that don't modify |
7 | # system time or require escalated privledges | |
5744de54 | 8 | TEST_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \ |
4a5fd815 | 9 | inconsistency-check raw_skew threadtest rtctest |
5744de54 | 10 | |
6035519f | 11 | TEST_PROGS_EXTENDED = alarmtimer-suspend valid-adjtimex adjtick change_skew \ |
5744de54 | 12 | skew_consistency clocksource-switch leap-a-day \ |
1a77e2bd | 13 | leapcrash set-tai set-2038 set-tz |
5744de54 ME |
14 | |
15 | bins = $(TEST_PROGS) $(TEST_PROGS_EXTENDED) | |
16 | ||
17 | all: ${bins} | |
18 | ||
19 | include ../lib.mk | |
de52133f JS |
20 | |
21 | # these tests require escalated privledges | |
22 | # and may modify the system time or trigger | |
23 | # other behavior like suspend | |
b7bb8442 JS |
24 | run_destructive_tests: run_tests |
25 | ./alarmtimer-suspend | |
de52133f | 26 | ./valid-adjtimex |
6035519f | 27 | ./adjtick |
d8694245 | 28 | ./change_skew |
6e8b285b | 29 | ./skew_consistency |
7290ce14 | 30 | ./clocksource-switch |
5bccfe41 | 31 | ./leap-a-day -s -i 10 |
d7b2902c | 32 | ./leapcrash |
1a77e2bd | 33 | ./set-tz |
3a92a15f | 34 | ./set-tai |
0d02a753 | 35 | ./set-2038 |
de52133f | 36 | |
0bc4b0cf | 37 | clean: |
03438212 | 38 | rm -f ${bins} |