Skip to contentSkip to conversation

kunit: configs: Enable coverage of the bitfield packing library

PATCH In review Mark Brown 2 participants 2 messages Apr 25, 2025 – May 9, 2025

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

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
index cdd9782f9646..b0223b7aebde 100644
@@ -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]>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Mark Brown

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.

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
index cdd9782f9646..b0223b7aebde 100644
@@ -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,
--
Mark Brown <[email protected]>