[PATCH 3/3] lib/crc: tests: Add a .kunitconfig file

From: Eric Biggers

Date: Thu Mar 05 2026 - 22:38:32 EST


Add a .kunitconfig file to the lib/crc/ directory so that the CRC
library tests can be run more easily using kunit.py. Example with UML:

tools/testing/kunit/kunit.py run --kunitconfig=lib/crc

Example with QEMU:

tools/testing/kunit/kunit.py run --kunitconfig=lib/crc --arch=arm64 --make_options LLVM=1

Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
---
lib/crc/.kunitconfig | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 lib/crc/.kunitconfig

diff --git a/lib/crc/.kunitconfig b/lib/crc/.kunitconfig
new file mode 100644
index 000000000000..0a3671ba573f
--- /dev/null
+++ b/lib/crc/.kunitconfig
@@ -0,0 +1,3 @@
+CONFIG_KUNIT=y
+CONFIG_CRC_ENABLE_ALL_FOR_KUNIT=y
+CONFIG_CRC_KUNIT_TEST=y
--
2.53.0