selftests: move RTC tests to rtc subfolder
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 19 Apr 2018 12:50:29 +0000 (14:50 +0200)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 30 May 2018 21:21:51 +0000 (15:21 -0600)
Move the RTC tests out of the timers folder as they are mostly unrelated.
Keep rtcpie in timers as it only test hrtimers.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
MAINTAINERS
tools/testing/selftests/Makefile
tools/testing/selftests/rtc/.gitignore [new file with mode: 0644]
tools/testing/selftests/rtc/Makefile [new file with mode: 0644]
tools/testing/selftests/rtc/rtctest.c [moved from tools/testing/selftests/timers/rtctest.c with 100% similarity]
tools/testing/selftests/rtc/setdate.c [moved from tools/testing/selftests/timers/rtctest_setdate.c with 100% similarity]
tools/testing/selftests/timers/.gitignore
tools/testing/selftests/timers/Makefile

index ca4afd68530ca7e83f403b9bb1f5025f6579cd01..a376a4adc6755f6f3f93dcb393e9752eabe29e99 100644 (file)
@@ -11878,7 +11878,7 @@ F:      include/linux/rtc.h
 F:     include/uapi/linux/rtc.h
 F:     include/linux/rtc/
 F:     include/linux/platform_data/rtc-*
-F:     tools/testing/selftests/timers/rtctest.c
+F:     tools/testing/selftests/rtc/
 
 REALTEK AUDIO CODECS
 M:     Bard Liao <bardliao@realtek.com>
index 32aafa92074c5049fa5bd5fbc08432d3603278dc..a368279301b7faa720bda0bf0b082b13407e3cfd 100644 (file)
@@ -28,6 +28,7 @@ TARGETS += powerpc
 TARGETS += proc
 TARGETS += pstore
 TARGETS += ptrace
+TARGETS += rtc
 TARGETS += seccomp
 TARGETS += sigaltstack
 TARGETS += size
diff --git a/tools/testing/selftests/rtc/.gitignore b/tools/testing/selftests/rtc/.gitignore
new file mode 100644 (file)
index 0000000..d0ad44f
--- /dev/null
@@ -0,0 +1,2 @@
+rtctest
+setdate
diff --git a/tools/testing/selftests/rtc/Makefile b/tools/testing/selftests/rtc/Makefile
new file mode 100644 (file)
index 0000000..de9c856
--- /dev/null
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0
+CFLAGS += -O3 -Wl,-no-as-needed -Wall
+LDFLAGS += -lrt -lpthread -lm
+
+TEST_GEN_PROGS = rtctest
+
+TEST_GEN_PROGS_EXTENDED = setdate
+
+include ../lib.mk
index 353ae15daa1e5c2bc52e5aedd8c6bf6f160ea68e..32a9eadb2d4ebcca81b05291521c52cf1b999681 100644 (file)
@@ -10,7 +10,6 @@ nsleep-lat
 posix_timers
 raw_skew
 rtcpie
-rtctest
 set-2038
 set-tai
 set-timer-lat
@@ -20,4 +19,3 @@ valid-adjtimex
 adjtick
 set-tz
 freq-step
-rtctest_setdate
index 8be7895ff918964c9dc9853b362c01c279b4cf6a..c02683cfb6c9a9f403bbc330fc124d8f8c8e9751 100644 (file)
@@ -5,13 +5,13 @@ LDFLAGS += -lrt -lpthread -lm
 # these are all "safe" tests that don't modify
 # system time or require escalated privileges
 TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
-            inconsistency-check raw_skew threadtest rtctest rtcpie
+            inconsistency-check raw_skew threadtest rtcpie
 
 DESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
                      skew_consistency clocksource-switch freq-step leap-a-day \
                      leapcrash set-tai set-2038 set-tz
 
-TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS) rtctest_setdate
+TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
 
 
 include ../lib.mk