[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Testing kernel version and kernel modules for testing



[CC me please]

Hi there,

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=)
[...]
override_dh_auto_test-arch:
ifeq ($(KCAPI_RNG), m)
# required to be run within 'test' subdir:
(cd test ; ENABLE_FUZZ_TEST=1 NO_32BIT_TEST=1 ./test-invocation.sh)
endif

But that seems to be (totally!) inaccurate for buildds:

https://buildd.debian.org/status/fetch.php?pkg=libkcapi&arch=amd64&ver=1.0.2-2&stamp=1516386027&raw=0

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.

Comments/suggestions welcome

-M


Reply to: