]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - tools/testing/selftests/static_keys/test_static_keys.sh
Merge branches 'for-4.4/upstream-fixes', 'for-4.5/async-suspend', 'for-4.5/container...
[mirror_ubuntu-artful-kernel.git] / tools / testing / selftests / static_keys / test_static_keys.sh
CommitLineData
2bf9e0ab
IM
1#!/bin/sh
2# Runs static keys kernel module tests
3
4if /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
13else
14 echo "static_key: [FAIL]"
15 exit 1
16fi