* [PATCH] time/kunit: add .kunitconfig
@ 2026-02-23 6:23 Ryota Sakamoto
2026-02-24 7:47 ` [tip: timers/core] time/kunit: Add .kunitconfig tip-bot2 for Ryota Sakamoto
0 siblings, 1 reply; 2+ messages in thread
From: Ryota Sakamoto @ 2026-02-23 6:23 UTC (permalink / raw)
To: John Stultz, Thomas Gleixner, Stephen Boyd; +Cc: linux-kernel, Ryota Sakamoto
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. Since the corresponding KUnit test file
(kernel/time/time_test.c) is already managed under this section, it is the
logical place to track the test configuration and ensures that
get_maintainer.pl routes future modifications correctly.
Signed-off-by: Ryota Sakamoto <sakamo.ryota@gmail.com>
---
MAINTAINERS | 1 +
kernel/time/.kunitconfig | 2 ++
2 files changed, 3 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 55af015174a54e17cc7449e5a80b6cdc83aa6fde..22ec64b1a7cc3474c5f7b7233e1a1aaa1e70bd87 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -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
index 0000000000000000000000000000000000000000..d60a611b285370a6590290ecf05392688520c165
--- /dev/null
+++ b/kernel/time/.kunitconfig
@@ -0,0 +1,2 @@
+CONFIG_KUNIT=y
+CONFIG_TIME_KUNIT_TEST=y
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260223-add-time-kunitconfig-2204b9895ed1
Best regards,
--
Ryota Sakamoto <sakamo.ryota@gmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip: timers/core] time/kunit: Add .kunitconfig
2026-02-23 6:23 [PATCH] time/kunit: add .kunitconfig Ryota Sakamoto
@ 2026-02-24 7:47 ` tip-bot2 for Ryota Sakamoto
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Ryota Sakamoto @ 2026-02-24 7:47 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Ryota Sakamoto, Thomas Gleixner, x86, linux-kernel
The following commit has been merged into the timers/core branch of tip:
Commit-ID: bc47b2e823914966c15a09422f8fc3aa98d34c1b
Gitweb: https://git.kernel.org/tip/bc47b2e823914966c15a09422f8fc3aa98d34c1b
Author: Ryota Sakamoto <sakamo.ryota@gmail.com>
AuthorDate: Mon, 23 Feb 2026 15:23:24 +09:00
Committer: Thomas Gleixner <tglx@kernel.org>
CommitterDate: Tue, 24 Feb 2026 08:41:51 +01:00
time/kunit: Add .kunitconfig
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 | 1 +
kernel/time/.kunitconfig | 2 ++
2 files changed, 3 insertions(+)
create mode 100644 kernel/time/.kunitconfig
diff --git a/MAINTAINERS b/MAINTAINERS
index 55af015..22ec64b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -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
index 0000000..d60a611
--- /dev/null
+++ b/kernel/time/.kunitconfig
@@ -0,0 +1,2 @@
+CONFIG_KUNIT=y
+CONFIG_TIME_KUNIT_TEST=y
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-24 7:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-23 6:23 [PATCH] time/kunit: add .kunitconfig Ryota Sakamoto
2026-02-24 7:47 ` [tip: timers/core] time/kunit: Add .kunitconfig tip-bot2 for Ryota Sakamoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®