mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT PULL] kunit next update for Linux 6.19-rc1
@ 2025-12-03  0:09 Shuah Khan
  2025-12-03 23:50 ` pr-tracker-bot
  2025-12-03 23:50 ` pr-tracker-bot
  0 siblings, 2 replies; 3+ messages in thread
From: Shuah Khan @ 2025-12-03  0:09 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: shuah, Shuah Khan, David Gow, Brendan Higgins, raemoar63,
	linux-kernel, linux-kselftest

[-- Attachment #1: Type: text/plain, Size: 1483 bytes --]

Hi Linus,

Please pull the following kunit next update for Linux 6.19-rc1.

Makes filter parameters configurable via Kconfig.
Adds description of kunit.enable parameter documentation.

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit 3a8660878839faadb4f1a6dd72c3179c1df56787:

   Linux 6.18-rc1 (2025-10-12 13:42:36 -0700)

are available in the Git repository at:

   git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-kunit-6.19-rc1

for you to fetch changes up to 7bc16e72ddb993d706f698c2f6cee694e485f557:

   kunit: Make filter parameters configurable via Kconfig (2025-11-14 11:02:34 -0700)

----------------------------------------------------------------
linux_kselftest-kunit-6.19-rc1

Makes filter parameters configurable via Kconfig.
Adds description of kunit.enable parameter documentation.

----------------------------------------------------------------
Thomas Weißschuh (1):
       kunit: Make filter parameters configurable via Kconfig

Yuya Ishikawa (1):
       Documentation: kunit: add description of kunit.enable parameter

  Documentation/dev-tools/kunit/run_manual.rst |  6 ++++++
  lib/kunit/Kconfig                            | 24 ++++++++++++++++++++++++
  lib/kunit/executor.c                         |  8 +++++---
  3 files changed, 35 insertions(+), 3 deletions(-)
----------------------------------------------------------------

[-- Attachment #2: linux_kselftest-kunit-6.19-rc1.diff --]
[-- Type: text/x-patch, Size: 2861 bytes --]

diff --git a/Documentation/dev-tools/kunit/run_manual.rst b/Documentation/dev-tools/kunit/run_manual.rst
index 699d92885075..98e8d5b28808 100644
--- a/Documentation/dev-tools/kunit/run_manual.rst
+++ b/Documentation/dev-tools/kunit/run_manual.rst
@@ -35,6 +35,12 @@ or be built into the kernel.
 	a good way of quickly testing everything applicable to the current
 	config.
 
+	KUnit can be enabled or disabled at boot time, and this behavior is
+	controlled by the kunit.enable kernel parameter.
+	By default, kunit.enable is set to 1 because KUNIT_DEFAULT_ENABLED is
+	enabled by default. To ensure that tests are executed as expected,
+	verify that kunit.enable=1 at boot time.
+
 Once we have built our kernel (and/or modules), it is simple to run
 the tests. If the tests are built-in, they will run automatically on the
 kernel boot. The results will be written to the kernel log (``dmesg``)
diff --git a/lib/kunit/Kconfig b/lib/kunit/Kconfig
index 7a6af361d2fc..50ecf55d2b9c 100644
--- a/lib/kunit/Kconfig
+++ b/lib/kunit/Kconfig
@@ -93,6 +93,30 @@ config KUNIT_AUTORUN_ENABLED
 	  In most cases this should be left as Y. Only if additional opt-in
 	  behavior is needed should this be set to N.
 
+config KUNIT_DEFAULT_FILTER_GLOB
+	string "Default value of the filter_glob module parameter"
+	help
+	  Sets the default value of kunit.filter_glob. If set to a non-empty
+	  string only matching tests are executed.
+
+	  If unsure, leave empty so all tests are executed.
+
+config KUNIT_DEFAULT_FILTER
+	string "Default value of the filter module parameter"
+	help
+	  Sets the default value of kunit.filter. If set to a non-empty
+	  string only matching tests are executed.
+
+	  If unsure, leave empty so all tests are executed.
+
+config KUNIT_DEFAULT_FILTER_ACTION
+	string "Default value of the filter_action module parameter"
+	help
+	  Sets the default value of kunit.filter_action. If set to a non-empty
+	  string only matching tests are executed.
+
+	  If unsure, leave empty so all tests are executed.
+
 config KUNIT_DEFAULT_TIMEOUT
 	int "Default value of the timeout module parameter"
 	default 300
diff --git a/lib/kunit/executor.c b/lib/kunit/executor.c
index 0061d4c7e351..02ff380ab793 100644
--- a/lib/kunit/executor.c
+++ b/lib/kunit/executor.c
@@ -45,9 +45,11 @@ bool kunit_autorun(void)
 	return autorun_param;
 }
 
-static char *filter_glob_param;
-static char *filter_param;
-static char *filter_action_param;
+#define PARAM_FROM_CONFIG(config) (config[0] ? config : NULL)
+
+static char *filter_glob_param = PARAM_FROM_CONFIG(CONFIG_KUNIT_DEFAULT_FILTER_GLOB);
+static char *filter_param = PARAM_FROM_CONFIG(CONFIG_KUNIT_DEFAULT_FILTER);
+static char *filter_action_param = PARAM_FROM_CONFIG(CONFIG_KUNIT_DEFAULT_FILTER_ACTION);
 
 module_param_named(filter_glob, filter_glob_param, charp, 0600);
 MODULE_PARM_DESC(filter_glob,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [GIT PULL] kunit next update for Linux 6.19-rc1
  2025-12-03  0:09 [GIT PULL] kunit next update for Linux 6.19-rc1 Shuah Khan
@ 2025-12-03 23:50 ` pr-tracker-bot
  2025-12-03 23:50 ` pr-tracker-bot
  1 sibling, 0 replies; 3+ messages in thread
From: pr-tracker-bot @ 2025-12-03 23:50 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Linus Torvalds, shuah, Shuah Khan, David Gow, Brendan Higgins,
	raemoar63, linux-kernel, linux-kselftest

The pull request you sent on Tue, 2 Dec 2025 17:09:20 -0700:

> git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-kunit-6.19-rc1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/b6d993310a65b994f37e3347419d9ed398ee37a3

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [GIT PULL] kunit next update for Linux 6.19-rc1
  2025-12-03  0:09 [GIT PULL] kunit next update for Linux 6.19-rc1 Shuah Khan
  2025-12-03 23:50 ` pr-tracker-bot
@ 2025-12-03 23:50 ` pr-tracker-bot
  1 sibling, 0 replies; 3+ messages in thread
From: pr-tracker-bot @ 2025-12-03 23:50 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Linus Torvalds, shuah, Shuah Khan, David Gow, Brendan Higgins,
	raemoar63, linux-kernel, linux-kselftest

The pull request you sent on Tue, 2 Dec 2025 17:09:20 -0700:

> git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-kunit-6.19-rc1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/b6d993310a65b994f37e3347419d9ed398ee37a3

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-03 23:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-03  0:09 [GIT PULL] kunit next update for Linux 6.19-rc1 Shuah Khan
2025-12-03 23:50 ` pr-tracker-bot
2025-12-03 23:50 ` pr-tracker-bot

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®