diff mbox series

[v3,2/3] drivers: base: test: Enable device model tests with KUNIT_ALL_TESTS

Message ID 20241216201148.535115-3-briannorris@chromium.org (mailing list archive)
State Handled Elsewhere, archived
Headers show
Series drivers: base: Don't match device with NULL of_node/fwnode/etc + tests | expand

Commit Message

Brian Norris Dec. 16, 2024, 8:11 p.m. UTC
Per commit bebe94b53eb7 ("drivers: base: default KUNIT_* fragments to
KUNIT_ALL_TESTS"), it seems like we should default to KUNIT_ALL_TESTS.

This enables these platform_device tests for common configurations, such
as with:
  ./tools/testing/kunit/kunit.py run

Signed-off-by: Brian Norris <briannorris@chromium.org>
---

(no changes since v1)

 drivers/base/test/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Maxime Ripard Dec. 17, 2024, 7:41 a.m. UTC | #1
On Mon, 16 Dec 2024 12:11:43 -0800, Brian Norris wrote:
> Per commit bebe94b53eb7 ("drivers: base: default KUNIT_* fragments to
> KUNIT_ALL_TESTS"), it seems like we should default to KUNIT_ALL_TESTS.
> 
> This enables these platform_device tests for common configurations, such
> as with:
> 
> [ ... ]

Reviewed-by: Maxime Ripard <mripard@kernel.org>

Thanks!
Maxime
David Gow Dec. 19, 2024, 5:45 a.m. UTC | #2
On Tue, 17 Dec 2024 at 04:12, Brian Norris <briannorris@chromium.org> wrote:
>
> Per commit bebe94b53eb7 ("drivers: base: default KUNIT_* fragments to
> KUNIT_ALL_TESTS"), it seems like we should default to KUNIT_ALL_TESTS.
>
> This enables these platform_device tests for common configurations, such
> as with:
>   ./tools/testing/kunit/kunit.py run
>
> Signed-off-by: Brian Norris <briannorris@chromium.org>
> ---

Excellent!

Reviewed-by: David Gow <davidgow@google.com>

Cheers,
-- David


>
> (no changes since v1)
>
>  drivers/base/test/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/base/test/Kconfig b/drivers/base/test/Kconfig
> index 5c7fac80611c..2756870615cc 100644
> --- a/drivers/base/test/Kconfig
> +++ b/drivers/base/test/Kconfig
> @@ -12,6 +12,7 @@ config TEST_ASYNC_DRIVER_PROBE
>  config DM_KUNIT_TEST
>         tristate "KUnit Tests for the device model" if !KUNIT_ALL_TESTS
>         depends on KUNIT
> +       default KUNIT_ALL_TESTS
>
>  config DRIVER_PE_KUNIT_TEST
>         tristate "KUnit Tests for property entry API" if !KUNIT_ALL_TESTS
> --
> 2.47.1.613.gc27f4b7a9f-goog
>
diff mbox series

Patch

diff --git a/drivers/base/test/Kconfig b/drivers/base/test/Kconfig
index 5c7fac80611c..2756870615cc 100644
--- a/drivers/base/test/Kconfig
+++ b/drivers/base/test/Kconfig
@@ -12,6 +12,7 @@  config TEST_ASYNC_DRIVER_PROBE
 config DM_KUNIT_TEST
 	tristate "KUnit Tests for the device model" if !KUNIT_ALL_TESTS
 	depends on KUNIT
+	default KUNIT_ALL_TESTS
 
 config DRIVER_PE_KUNIT_TEST
 	tristate "KUnit Tests for property entry API" if !KUNIT_ALL_TESTS