]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
time/kunit: Add .kunitconfig
authorRyota Sakamoto <sakamo.ryota@gmail.com>
Mon, 23 Feb 2026 06:23:24 +0000 (15:23 +0900)
committerThomas Gleixner <tglx@kernel.org>
Tue, 24 Feb 2026 07:41:51 +0000 (08:41 +0100)
Add .kunitconfig file to the time directory to enable easy execution of
KUnit tests.

With the .kunitconfig, developers can run the tests:
  $ ./tools/testing/kunit/kunit.py run --kunitconfig kernel/time

Also, add the new .kunitconfig file to the TIMEKEEPING section in the
MAINTAINERS file.

Signed-off-by: Ryota Sakamoto <sakamo.ryota@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260223-add-time-kunitconfig-v1-1-1801eeb33ece@gmail.com
MAINTAINERS
kernel/time/.kunitconfig [new file with mode: 0644]

index 55af015174a54e17cc7449e5a80b6cdc83aa6fde..22ec64b1a7cc3474c5f7b7233e1a1aaa1e70bd87 100644 (file)
@@ -26618,6 +26618,7 @@ F:      include/linux/timekeeping.h
 F:     include/linux/timex.h
 F:     include/uapi/linux/time.h
 F:     include/uapi/linux/timex.h
+F:     kernel/time/.kunitconfig
 F:     kernel/time/alarmtimer.c
 F:     kernel/time/clocksource*
 F:     kernel/time/ntp*
diff --git a/kernel/time/.kunitconfig b/kernel/time/.kunitconfig
new file mode 100644 (file)
index 0000000..d60a611
--- /dev/null
@@ -0,0 +1,2 @@
+CONFIG_KUNIT=y
+CONFIG_TIME_KUNIT_TEST=y