1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
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
18