blob: 5fa1d7e9a9158ab6e3edee87ac8388236159e5e0 [file] [log] [blame]
John Stultz034382122015-03-11 17:39:57 -07001BUILD_FLAGS = -DKTEST
2CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
3LDFLAGS += -lrt -lpthread
Frederic Weisbecker0bc4b0c2013-06-28 00:06:43 +00004
John Stultzde521332015-03-11 17:40:06 -07005# these are all "safe" tests that don't modify
Geert Uytterhoeven1fb95c62017-02-17 16:41:03 +01006# system time or require escalated privileges
bamvor.zhangjian@huawei.com88baa782016-11-29 19:55:47 +08007TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
Prarit Bhargava4a5fd812015-03-23 16:32:09 -04008 inconsistency-check raw_skew threadtest rtctest
Michael Ellerman5744de52015-03-19 11:20:40 +11009
bamvor.zhangjian@huawei.com88baa782016-11-29 19:55:47 +080010TEST_GEN_PROGS_EXTENDED = alarmtimer-suspend valid-adjtimex adjtick change_skew \
Michael Ellerman5744de52015-03-19 11:20:40 +110011 skew_consistency clocksource-switch leap-a-day \
John Stultz1a77e2b2016-06-01 11:53:27 -070012 leapcrash set-tai set-2038 set-tz
Michael Ellerman5744de52015-03-19 11:20:40 +110013
Michael Ellerman5744de52015-03-19 11:20:40 +110014
15include ../lib.mk
John Stultzde521332015-03-11 17:40:06 -070016
Geert Uytterhoeven1fb95c62017-02-17 16:41:03 +010017# these tests require escalated privileges
John Stultzde521332015-03-11 17:40:06 -070018# and may modify the system time or trigger
19# other behavior like suspend
John Stultzb7bb8442015-03-11 17:40:07 -070020run_destructive_tests: run_tests
21 ./alarmtimer-suspend
John Stultzde521332015-03-11 17:40:06 -070022 ./valid-adjtimex
John Stultz60355192015-10-05 18:16:57 -070023 ./adjtick
John Stultzd8694242015-03-11 17:40:08 -070024 ./change_skew
John Stultz6e8b2852015-03-11 17:40:09 -070025 ./skew_consistency
John Stultz7290ce12015-03-11 17:40:10 -070026 ./clocksource-switch
John Stultz5bccfe42015-03-11 17:40:11 -070027 ./leap-a-day -s -i 10
John Stultzd7b29022015-03-11 17:40:12 -070028 ./leapcrash
John Stultz1a77e2b2016-06-01 11:53:27 -070029 ./set-tz
John Stultz3a92a152015-03-11 17:40:13 -070030 ./set-tai
John Stultz0d02a752015-03-11 17:40:14 -070031 ./set-2038
John Stultzde521332015-03-11 17:40:06 -070032