John Stultz | 03438212 | 2015-03-11 17:39:57 -0700 | [diff] [blame] | 1 | BUILD_FLAGS = -DKTEST |
| 2 | CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS) |
| 3 | LDFLAGS += -lrt -lpthread |
Frederic Weisbecker | 0bc4b0c | 2013-06-28 00:06:43 +0000 | [diff] [blame] | 4 | |
John Stultz | de52133 | 2015-03-11 17:40:06 -0700 | [diff] [blame] | 5 | # these are all "safe" tests that don't modify |
Geert Uytterhoeven | 1fb95c6 | 2017-02-17 16:41:03 +0100 | [diff] [blame] | 6 | # system time or require escalated privileges |
bamvor.zhangjian@huawei.com | 88baa78 | 2016-11-29 19:55:47 +0800 | [diff] [blame] | 7 | TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \ |
Prarit Bhargava | 4a5fd81 | 2015-03-23 16:32:09 -0400 | [diff] [blame] | 8 | inconsistency-check raw_skew threadtest rtctest |
Michael Ellerman | 5744de5 | 2015-03-19 11:20:40 +1100 | [diff] [blame] | 9 | |
bamvor.zhangjian@huawei.com | 88baa78 | 2016-11-29 19:55:47 +0800 | [diff] [blame] | 10 | TEST_GEN_PROGS_EXTENDED = alarmtimer-suspend valid-adjtimex adjtick change_skew \ |
Michael Ellerman | 5744de5 | 2015-03-19 11:20:40 +1100 | [diff] [blame] | 11 | skew_consistency clocksource-switch leap-a-day \ |
John Stultz | 1a77e2b | 2016-06-01 11:53:27 -0700 | [diff] [blame] | 12 | leapcrash set-tai set-2038 set-tz |
Michael Ellerman | 5744de5 | 2015-03-19 11:20:40 +1100 | [diff] [blame] | 13 | |
Michael Ellerman | 5744de5 | 2015-03-19 11:20:40 +1100 | [diff] [blame] | 14 | |
| 15 | include ../lib.mk |
John Stultz | de52133 | 2015-03-11 17:40:06 -0700 | [diff] [blame] | 16 | |
Geert Uytterhoeven | 1fb95c6 | 2017-02-17 16:41:03 +0100 | [diff] [blame] | 17 | # these tests require escalated privileges |
John Stultz | de52133 | 2015-03-11 17:40:06 -0700 | [diff] [blame] | 18 | # and may modify the system time or trigger |
| 19 | # other behavior like suspend |
John Stultz | b7bb844 | 2015-03-11 17:40:07 -0700 | [diff] [blame] | 20 | run_destructive_tests: run_tests |
| 21 | ./alarmtimer-suspend |
John Stultz | de52133 | 2015-03-11 17:40:06 -0700 | [diff] [blame] | 22 | ./valid-adjtimex |
John Stultz | 6035519 | 2015-10-05 18:16:57 -0700 | [diff] [blame] | 23 | ./adjtick |
John Stultz | d869424 | 2015-03-11 17:40:08 -0700 | [diff] [blame] | 24 | ./change_skew |
John Stultz | 6e8b285 | 2015-03-11 17:40:09 -0700 | [diff] [blame] | 25 | ./skew_consistency |
John Stultz | 7290ce1 | 2015-03-11 17:40:10 -0700 | [diff] [blame] | 26 | ./clocksource-switch |
John Stultz | 5bccfe4 | 2015-03-11 17:40:11 -0700 | [diff] [blame] | 27 | ./leap-a-day -s -i 10 |
John Stultz | d7b2902 | 2015-03-11 17:40:12 -0700 | [diff] [blame] | 28 | ./leapcrash |
John Stultz | 1a77e2b | 2016-06-01 11:53:27 -0700 | [diff] [blame] | 29 | ./set-tz |
John Stultz | 3a92a15 | 2015-03-11 17:40:13 -0700 | [diff] [blame] | 30 | ./set-tai |
John Stultz | 0d02a75 | 2015-03-11 17:40:14 -0700 | [diff] [blame] | 31 | ./set-2038 |
John Stultz | de52133 | 2015-03-11 17:40:06 -0700 | [diff] [blame] | 32 | |