selftest/lkdtm: Skip stack-entropy test if lkdtm is not available
authorMisono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Thu, 5 Aug 2021 10:12:36 +0000 (19:12 +0900)
committerKees Cook <keescook@chromium.org>
Thu, 16 Dec 2021 23:54:38 +0000 (15:54 -0800)
commit90091c367e74d5b58d9ebe979cc363f7468f58d3
tree8324365bb49bf7f4f210c7501ffa77bcf5f698c8
parentbc93a22a19eb2b68a16ecf04cdf4b2ed65aaf398
selftest/lkdtm: Skip stack-entropy test if lkdtm is not available

Exit with return code 4 if lkdtm is not available like other tests
in order to properly skip the test.

Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210805101236.1140381-1-misono.tomohiro@jp.fujitsu.com
tools/testing/selftests/lkdtm/stack-entropy.sh