Makefile 774 B

1234567891011121314151617181920212223
  1. # SPDX-License-Identifier: GPL-2.0
  2. CFLAGS += -O3 -Wl,-no-as-needed -Wall
  3. LDFLAGS += -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. include ../lib.mk
  13. # these tests require escalated privileges
  14. # and may modify the system time or trigger
  15. # other behavior like suspend
  16. run_destructive_tests: run_tests
  17. $(call RUN_TESTS, $(DESTRUCTIVE_TESTS))