Makefile 796 B

123456789101112131415161718192021222324
  1. # SPDX-License-Identifier: GPL-2.0
  2. CFLAGS += -O3 -Wl,-no-as-needed -Wall
  3. LDLIBS += -lrt -lpthread -lm
  4. # these are all "safe" tests that don't modify
  5. # system time or require escalated privileges
  6. TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
  7. inconsistency-check raw_skew threadtest rtcpie
  8. DESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
  9. skew_consistency clocksource-switch freq-step leap-a-day \
  10. leapcrash set-tai set-2038 set-tz
  11. TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
  12. TEST_FILES := settings
  13. include ../lib.mk
  14. # these tests require escalated privileges
  15. # and may modify the system time or trigger
  16. # other behavior like suspend
  17. run_destructive_tests: run_tests
  18. $(call RUN_TESTS, $(DESTRUCTIVE_TESTS))