2015-03-12 08:39:57 +08:00
|
|
|
BUILD_FLAGS = -DKTEST
|
|
|
|
CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
|
2017-06-09 19:43:17 +08:00
|
|
|
LDFLAGS += -lrt -lpthread -lm
|
2013-06-28 08:06:43 +08:00
|
|
|
|
2015-03-12 08:40:06 +08:00
|
|
|
# these are all "safe" tests that don't modify
|
2017-02-17 23:41:03 +08:00
|
|
|
# system time or require escalated privileges
|
2016-11-29 19:55:47 +08:00
|
|
|
TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
|
2015-03-24 04:32:09 +08:00
|
|
|
inconsistency-check raw_skew threadtest rtctest
|
2015-03-19 08:20:40 +08:00
|
|
|
|
2016-11-29 19:55:47 +08:00
|
|
|
TEST_GEN_PROGS_EXTENDED = alarmtimer-suspend valid-adjtimex adjtick change_skew \
|
2017-06-09 19:43:17 +08:00
|
|
|
skew_consistency clocksource-switch freq-step leap-a-day \
|
2017-06-19 17:36:20 +08:00
|
|
|
leapcrash set-tai set-2038 set-tz rtctest_setdate
|
2015-03-19 08:20:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
include ../lib.mk
|
2015-03-12 08:40:06 +08:00
|
|
|
|
2017-02-17 23:41:03 +08:00
|
|
|
# these tests require escalated privileges
|
2015-03-12 08:40:06 +08:00
|
|
|
# and may modify the system time or trigger
|
|
|
|
# other behavior like suspend
|
2015-03-12 08:40:07 +08:00
|
|
|
run_destructive_tests: run_tests
|
|
|
|
./alarmtimer-suspend
|
2015-03-12 08:40:06 +08:00
|
|
|
./valid-adjtimex
|
2015-10-06 09:16:57 +08:00
|
|
|
./adjtick
|
2015-03-12 08:40:08 +08:00
|
|
|
./change_skew
|
2015-03-12 08:40:09 +08:00
|
|
|
./skew_consistency
|
2015-03-12 08:40:10 +08:00
|
|
|
./clocksource-switch
|
2017-06-09 19:43:17 +08:00
|
|
|
./freq-step
|
2015-03-12 08:40:11 +08:00
|
|
|
./leap-a-day -s -i 10
|
2015-03-12 08:40:12 +08:00
|
|
|
./leapcrash
|
2016-06-02 02:53:27 +08:00
|
|
|
./set-tz
|
2015-03-12 08:40:13 +08:00
|
|
|
./set-tai
|
2015-03-12 08:40:14 +08:00
|
|
|
./set-2038
|
2015-03-12 08:40:06 +08:00
|
|
|
|