Skip to contentSkip to conversation

lib/842: depend on the decompressor for KUnit tests

PATCH In review Karl Mehltretter 3 participants 3 messages Sep 17 – Sep 23

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/842: depend on the decompressor for KUnit tests

842_DECOMPRESS_KUNIT_TEST selects the decompressor even when no other option needs it, including through KUNIT_ALL_TESTS.

Depend on 842_DECOMPRESS as required by Documentation/dev-tools/kunit/style.rst. This also prevents the test from promoting a modular decompressor to built-in.

---
Follow-up to the accepted commit, based on cryptodev-2.6/master.

Testing: Checked Kconfig dependency resolution for eight x86_64 configurations before and after the change, including KUNIT_ALL_TESTS and modular/built-in combinations.

 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/Kconfig.debug +1 -1
index 48201092b3df..49f74005394b 100644
@@ -2228,7 +2228,7 @@ if RUNTIME_TESTING_MENU
 config 842_DECOMPRESS_KUNIT_TEST
 	tristate "KUnit tests for the 842 decompressor" if !KUNIT_ALL_TESTS
 	depends on KUNIT
-	select 842_DECOMPRESS
+	depends on 842_DECOMPRESS
 	default KUNIT_ALL_TESTS
 	help
 	  Enable stream-validation and boundary tests for the software 842

base-commit: 9e06d371730b841ad8fe79ebfccf0def9470201f

Signature · 1 line
2.39.5 (Apple Git-154)
Acked-by on v1 1/1
#1 lore raw

Le 17/09/2026 à 13:56, Karl Mehltretter a écrit :

Quoted 12 lines

842_DECOMPRESS_KUNIT_TEST selects the decompressor even when no other option needs it, including through KUNIT_ALL_TESTS.

Depend on 842_DECOMPRESS as required by Documentation/dev-tools/kunit/style.rst. This also prevents the test from promoting a modular decompressor to built-in.

Quoted 7 lines

---
Follow-up to the accepted commit, based on cryptodev-2.6/master.

Testing: Checked Kconfig dependency resolution for eight x86_64 configurations before and after the change, including KUNIT_ALL_TESTS and modular/built-in combinations.

Thanks!

-- David

maintainer
#2 lore raw
In reply to Karl Mehltretter
Quoted 15 lines · Karl Mehltretter

842_DECOMPRESS_KUNIT_TEST selects the decompressor even when no other option needs it, including through KUNIT_ALL_TESTS.

Depend on 842_DECOMPRESS as required by Documentation/dev-tools/kunit/style.rst. This also prevents the test from promoting a modular decompressor to built-in.

---
Follow-up to the accepted commit, based on cryptodev-2.6/master.

Quoted 6 lines

Testing: Checked Kconfig dependency resolution for eight x86_64 configurations before and after the change, including KUNIT_ALL_TESTS and modular/built-in combinations.

 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt