Fix sys/opencrypto/blake2_test when kern.cryptodevallowsoft=0
Two of these testcases require software crypto to be enabled. Curiously, it
isn't by default.
PR: 230671
Differential D16755
fix sys/opencrypto/blake2_test when kern.cryptodevallowsoft=0 asomers on Aug 16 2018, 8:44 PM. Authored by Tags None Referenced Files
Subscribers
Details Fix sys/opencrypto/blake2_test when kern.cryptodevallowsoft=0 Two of these testcases require software crypto to be enabled. Curiously, it PR: 230671
Diff Detail
Event TimelineComment Actions I like the general idea, but think we should add it to freebsd_test_suite macros (like ATF_REQUIRE_KERNEL_MODULE) since I am adding very similar tests right now and would like to use the same thing elsewhere. It could also be made more generally useful, e.g., ATF_REQUIRE_SYSCTL_VALUE("kern.cryptodevallowsoft", 1). But that would require some sophistication to deal with differing sysctl sizes, so I am fine with the more restricted scope for now.
Comment Actions create a common ATF_REQUIRE_SYSCTL_INT macro The macro can't be general across all sysctl types because they can have Comment Actions LGTM with some questions below. Sort of true, sort of not. sysctl(8) manages to be general across integer-type sysctls, and it's written in C. I'm ok with the less general approach for now, though.
|