Makefile 919 B

12345678910111213141516171819202122232425262728293031323334353637
  1. CC = $(CROSS_COMPILE)gcc
  2. BUILD_FLAGS = -DKTEST
  3. CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
  4. LDFLAGS += -lrt -lpthread
  5. # these are all "safe" tests that don't modify
  6. # system time or require escalated privledges
  7. TEST_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
  8. inconsistency-check raw_skew threadtest rtctest
  9. TEST_PROGS_EXTENDED = alarmtimer-suspend valid-adjtimex change_skew \
  10. skew_consistency clocksource-switch leap-a-day \
  11. leapcrash set-tai set-2038
  12. bins = $(TEST_PROGS) $(TEST_PROGS_EXTENDED)
  13. all: ${bins}
  14. include ../lib.mk
  15. # these tests require escalated privledges
  16. # and may modify the system time or trigger
  17. # other behavior like suspend
  18. run_destructive_tests: run_tests
  19. ./alarmtimer-suspend
  20. ./valid-adjtimex
  21. ./change_skew
  22. ./skew_consistency
  23. ./clocksource-switch
  24. ./leap-a-day -s -i 10
  25. ./leapcrash
  26. ./set-tai
  27. ./set-2038
  28. clean:
  29. rm -f ${bins}