linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/3] kunit: arch/um/configs: Enable KUNIT_ALL_TESTS by default
@ 2021-05-22  4:42 David Gow
  2021-05-22  4:42 ` [PATCH v2 2/3] kunit: Move default config from arch/um -> tools/testing/kunit David Gow
  2021-05-22  4:42 ` [PATCH v2 3/3] kunit: Remove the unused all_tests.config David Gow
  0 siblings, 2 replies; 5+ messages in thread
From: David Gow @ 2021-05-22  4:42 UTC (permalink / raw)
  To: Brendan Higgins, Shuah Khan
  Cc: David Gow, Jeff Dike, Richard Weinberger, kunit-dev,
	linux-kselftest, linux-um, linux-kernel, Daniel Latypov

Make the default .kunitconfig (specified in
arch/um/configs/kunit_defconfig) specify CONFIG_KUNIT_ALL_TESTS by
default. KUNIT_ALL_TESTS runs all tests which have satisfied
dependencies in the current .config (which would be the architecture
defconfig).

Currently, the default .kunitconfig enables only the example tests and
KUnit's own tests. While this does provide a good example of what a
.kunitconfig for running a few individual tests should look like, it
does mean that kunit_tool runs a pretty paltry collection of tests by
default.

The example tests' config entry (CONFIG_KUNIT_EXAMPLE_TEST=y) continues
to be included -- despite now being redundant -- to provide an example
of how tests are enabled when KUNIT_ALL_TESTS is disabled.

A default run of ./tools/testing/kunit/kunit.py run now runs 70 tests
instead of 14.

Signed-off-by: David Gow <davidgow@google.com>
Acked-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
---

Changes since v1:
https://lore.kernel.org/linux-kselftest/20210518035825.1885357-1-davidgow@google.com/
- Keep the KUNIT_EXAMPLE_TEST entry as an example.
- Move (in patches 2,3) kunit_defconfig to tools/testing/kunit/configs
  and replace all_tests.config.

 arch/um/configs/kunit_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/um/configs/kunit_defconfig b/arch/um/configs/kunit_defconfig
index 9235b7d42d38..e67af7b9f1bb 100644
--- a/arch/um/configs/kunit_defconfig
+++ b/arch/um/configs/kunit_defconfig
@@ -1,3 +1,3 @@
 CONFIG_KUNIT=y
-CONFIG_KUNIT_TEST=y
 CONFIG_KUNIT_EXAMPLE_TEST=y
+CONFIG_KUNIT_ALL_TESTS=y
-- 
2.31.1.818.g46aad6cb9e-goog


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

end of thread, other threads:[~2021-06-16 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-22  4:42 [PATCH v2 1/3] kunit: arch/um/configs: Enable KUNIT_ALL_TESTS by default David Gow
2021-05-22  4:42 ` [PATCH v2 2/3] kunit: Move default config from arch/um -> tools/testing/kunit David Gow
2021-06-16 20:36   ` Brendan Higgins
2021-05-22  4:42 ` [PATCH v2 3/3] kunit: Remove the unused all_tests.config David Gow
2021-06-16 20:41   ` Brendan Higgins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).