Testing kernel version and kernel modules for testing
[CC me please]
I am debating whether or not I should be running the unit test of one
of my package: libkcapi.
I tried a naive solution:
$ cat debian/rules
KCAPI_RNG ?= $(shell grep CONFIG_CRYPTO_USER_API_RNG
/boot/config-$(shell uname -r) | cut -f2 -d=)
ifeq ($(KCAPI_RNG), m)
# required to be run within 'test' subdir:
(cd test ; ENABLE_FUZZ_TEST=1 NO_32BIT_TEST=1 ./test-invocation.sh)
But that seems to be (totally!) inaccurate for buildds:
Since CONFIG_CRYPTO_USER_API_RNG is only available since bug 868291 I
am wondering if this makes sens to run the test suite or not ? Most
buildds do not seems to be running a kernel new enough anyway.