]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
lib/crc: tests: Add a .kunitconfig file
authorEric Biggers <ebiggers@kernel.org>
Fri, 6 Mar 2026 03:35:57 +0000 (19:35 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 9 Mar 2026 20:29:47 +0000 (13:29 -0700)
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

Link: https://lore.kernel.org/r/20260306033557.250499-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crc/.kunitconfig [new file with mode: 0644]

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