mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
3b4d3819ec
Fixes:87b2d44026
("selftests: add memfd/sealing page-pinning tests") Fixes:2bf9e0ab08
("locking/static_keys: Provide a selftest") Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
17 lines
377 B
Bash
Executable File
17 lines
377 B
Bash
Executable File
#!/bin/sh
|
|
# Runs static keys kernel module tests
|
|
|
|
if /sbin/modprobe -q test_static_key_base; then
|
|
if /sbin/modprobe -q test_static_keys; then
|
|
echo "static_key: ok"
|
|
/sbin/modprobe -q -r test_static_keys
|
|
/sbin/modprobe -q -r test_static_key_base
|
|
else
|
|
echo "static_keys: [FAIL]"
|
|
/sbin/modprobe -q -r test_static_key_base
|
|
fi
|
|
else
|
|
echo "static_key: [FAIL]"
|
|
exit 1
|
|
fi
|