Skip to content

lib/crc: Fix crc_kunit dependency and add kunitconfig

Eric Biggers linux-crypto lkml stable 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=crc-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3lib/crc: tests: Make crc_kunit test only the enabled CRC variantslib/crc/Kconfig lib/crc/tests/crc_kunit.c+23 -120 replies
2/3lib/crc: tests: Add CRC_ENABLE_ALL_FOR_KUNITlib/crc/Kconfig+14 -00 replies
3/3lib/crc: tests: Add a .kunitconfig filelib/crc/.kunitconfig+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] lib/crc: Fix crc_kunit dependency and add kunitconfig

This series fixes crc_kunit to follow the standard KUnit convention of depending on the code it tests rather than selecting it, adds a kconfig option that enables all the CRC variants for KUnit testing, and adds a kunitconfig file for lib/crc/.

This follows similar changes to lib/crypto/ (except lib/crypto/ doesn't have an equivalent to CRC_ENABLE_ALL_FOR_KUNIT yet, but we could consider adding one).

This series applies to v7.0-rc2 and is targeting crc-next.

Eric Biggers (3):
lib/crc: tests: Make crc_kunit test only the enabled CRC variants lib/crc: tests: Add CRC_ENABLE_ALL_FOR_KUNIT
lib/crc: tests: Add a .kunitconfig file

 lib/crc/.kunitconfig      |  3 +++
 lib/crc/Kconfig           | 17 +++++++++++++----
 lib/crc/tests/crc_kunit.c | 28 ++++++++++++++++++++++------
 3 files changed, 38 insertions(+), 10 deletions(-)
 create mode 100644 lib/crc/.kunitconfig

base-commit: 11439c4635edd669ae435eec308f4ab8a0804808

Signature · 1 line
2.53.0