diff options
author | Milosz Wasilewski <milosz.wasilewski@hackbox.linaro.org> | 2015-11-15 23:02:29 +0000 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@hackbox.linaro.org> | 2015-11-15 23:02:29 +0000 |
commit | 88998027f6be359706650d48d2bec705e2672962 (patch) | |
tree | dcc6549d5797521553990dd1cd7a390bbbb39a92 /static_keys/test_static_keys.sh | |
parent | 751dc08e504621a230a1b556abdd2c660953708d (diff) |
Update to commit: 6a13feb9c82803e2b815eca72fa7a9f5561d78616a13feb9c82803e2b815eca72fa7a9f5561d7861
from repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
branch: master
Diffstat (limited to 'static_keys/test_static_keys.sh')
-rw-r--r-- | static_keys/test_static_keys.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/static_keys/test_static_keys.sh b/static_keys/test_static_keys.sh new file mode 100644 index 0000000..1261e3f --- /dev/null +++ b/static_keys/test_static_keys.sh @@ -0,0 +1,16 @@ +#!/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 |