]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/testing/selftests/static_keys/test_static_keys.sh
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / tools / testing / selftests / static_keys / test_static_keys.sh
CommitLineData
2bf9e0ab 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
2bf9e0ab
IM
3# Runs static keys kernel module tests
4
5if /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
13 fi
14else
15 echo "static_key: [FAIL]"
16 exit 1
17fi