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

0 views
Skip to first unread message

Eric Biggers

unread,
Mar 5, 2026, 10:38:18 PMMar 5
to linux-...@vger.kernel.org, linux-...@vger.kernel.org, Ard Biesheuvel, kuni...@googlegroups.com, Eric Biggers
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 <ebig...@kernel.org>
---
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

Reply all
Reply to author
Forward
0 new messages