[PATCH] kunit: configs: Enable DRM tests

Mark Brown posted 1 patch 1 week, 6 days ago
tools/testing/kunit/configs/all_tests.config | 2 ++
1 file changed, 2 insertions(+)
[PATCH] kunit: configs: Enable DRM tests
Posted by Mark Brown 1 week, 6 days ago
There are a number of KUnit tests in the DRM subsystem but these are not
run as standard since they are gated behind the main DRM config option
and all_tests.config does not ensure that is enabled.  Add it.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 tools/testing/kunit/configs/all_tests.config | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/kunit/configs/all_tests.config b/tools/testing/kunit/configs/all_tests.config
index bccc2c77196d5..bee893f9fbbc6 100644
--- a/tools/testing/kunit/configs/all_tests.config
+++ b/tools/testing/kunit/configs/all_tests.config
@@ -59,3 +59,5 @@ CONFIG_SND=y
 CONFIG_SND_SOC=y
 CONFIG_SND_SOC_TOPOLOGY_BUILD=y
 CONFIG_SND_SOC_CS35L56_I2C=y
+
+CONFIG_DRM=y

---
base-commit: 8cdeaa50eae8dad34885515f62559ee83e7e8dda
change-id: 20260911-kunit-drm-9cce0032e098

Best regards,
--  
Mark Brown <broonie@kernel.org>
Re: [PATCH] kunit: configs: Enable DRM tests
Posted by David Gow 1 week, 5 days ago
Le 12/09/2026 à 04:25, 'Mark Brown' via KUnit Development a écrit :
> There are a number of KUnit tests in the DRM subsystem but these are not
> run as standard since they are gated behind the main DRM config option
> and all_tests.config does not ensure that is enabled.  Add it.
> 
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---

I think this is overall a worthwhile change, but the 
drm_sched_scheduler_overhead_tests do fail on UML at the moment.

I've sent a potential fix out (the test seems to fail if CONFIG_HZ is 
100) here:
https://lore.kernel.org/all/20260913084155.520015-2-david@davidgow.net/

Ideally, that'd land first so we don't end up with yet more breakage, 
but otherwise we can perhaps disable those tests on UML for now.

Regardless, this is:

Reviewed-by: David Gow <david@davidgow.net>

Cheers,
-- David

>   tools/testing/kunit/configs/all_tests.config | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/tools/testing/kunit/configs/all_tests.config b/tools/testing/kunit/configs/all_tests.config
> index bccc2c77196d5..bee893f9fbbc6 100644
> --- a/tools/testing/kunit/configs/all_tests.config
> +++ b/tools/testing/kunit/configs/all_tests.config
> @@ -59,3 +59,5 @@ CONFIG_SND=y
>   CONFIG_SND_SOC=y
>   CONFIG_SND_SOC_TOPOLOGY_BUILD=y
>   CONFIG_SND_SOC_CS35L56_I2C=y
> +
> +CONFIG_DRM=y
> 
> ---
> base-commit: 8cdeaa50eae8dad34885515f62559ee83e7e8dda
> change-id: 20260911-kunit-drm-9cce0032e098
> 
> Best regards,
> --
> Mark Brown <broonie@kernel.org>
>