diff options
Diffstat (limited to 'tools/testing/selftests/static_keys/test_static_keys.sh')
-rw-r--r-- | tools/testing/selftests/static_keys/test_static_keys.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/testing/selftests/static_keys/test_static_keys.sh b/tools/testing/selftests/static_keys/test_static_keys.sh new file mode 100644 index 000000000000..1261e3fa1e3a --- /dev/null +++ b/tools/testing/selftests/static_keys/test_static_keys.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | # Runs static keys kernel module tests | ||
3 | |||
4 | if /sbin/modprobe -q test_static_key_base; then | ||
5 | if /sbin/modprobe -q test_static_keys; then | ||
6 | echo "static_key: ok" | ||
7 | /sbin/modprobe -q -r test_static_keys | ||
8 | /sbin/modprobe -q -r test_static_key_base | ||
9 | else | ||
10 | echo "static_keys: [FAIL]" | ||
11 | /sbin/modprobe -q -r test_static_key_base | ||
12 | fi | ||
13 | else | ||
14 | echo "static_key: [FAIL]" | ||
15 | exit 1 | ||
16 | fi | ||