kunit: configs: Enable coverage of the bitfield packing library
PATCH 1/1 kunit: configs: Enable coverage of the bitfield packing library
There are KUnit tests for the bitfield packing library but these depend on CONFIG_PACKING which is not enabled by anything in either the existing KUnit all_tests.config or the base UML config it runs on as standard. Enable that in all_tests.config to improve coverage.
--- tools/testing/kunit/configs/all_tests.config | 2 ++ 1 file changed, 2 insertions(+)
tools/testing/kunit/configs/all_tests.config +2 -0
@@ -51,3 +51,5 @@ CONFIG_SOUND=y CONFIG_SND=y CONFIG_SND_SOC=y CONFIG_SND_SOC_TOPOLOGY_BUILD=y + +CONFIG_PACKING=y
---
base-commit: 8ffd015db85fea3e15a77027fda6c02ced4d2444
change-id: 20250422-kunit-enable-missing-tests-9189ee930cae
Best regards,
Signature · 1 line
Mark Brown <[email protected]>
Quoted 7 lines · Mark Brown
There are KUnit tests for the bitfield packing library but these depend on
CONFIG_PACKINGwhich is not enabled by anything in either the existing KUnit all_tests.config or the base UML config it runs on as standard. Enable that in all_tests.config to improve coverage.Signed-off-by Mark Brown <[email protected]>
Hello,
This looks good to me. It adds about 70 tests to the "alltests" run. They all seem to pass and run fast so I am happy to add this.
Thanks!
-Rae
Quoted 23 lines
--- tools/testing/kunit/configs/all_tests.config | 2 ++ 1 file changed, 2 insertions(+)tools/testing/kunit/configs/all_tests.config +2
-1@@ -51,3 +51,5 @@ CONFIG_SOUND=y CONFIG_SND=y CONFIG_SND_SOC=y CONFIG_SND_SOC_TOPOLOGY_BUILD=y + +CONFIG_PACKING=y ---base-commit:
8ffd015db85fea3e15a77027fda6c02ced4d2444
change-id: 20250422-kunit-enable-missing-tests-9189ee930caeBest regards,
--
Mark Brown <[email protected]>