Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / tools / testing / selftests / static_keys / test_static_keys.sh
blob24cff498b31aa831b388e638929f29c36db07dbd
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # Runs static keys kernel module tests
5 if /sbin/modprobe -q test_static_key_base; then
6 if /sbin/modprobe -q test_static_keys; then
7 echo "static_key: ok"
8 /sbin/modprobe -q -r test_static_keys
9 /sbin/modprobe -q -r test_static_key_base
10 else
11 echo "static_keys: [FAIL]"
12 /sbin/modprobe -q -r test_static_key_base
14 else
15 echo "static_key: [FAIL]"
16 exit 1