summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/jumplabel/test_jump_label.sh
blob: 3457e8a64e77fac77544d6ec23f6c9a05ce39c7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Runs jump label kernel module tests

if /sbin/modprobe -q test_jump_label_base; then
	if /sbin/modprobe -q test_jump_label; then
		echo "jump_label: ok"
		/sbin/modprobe -q -r test_jump_label
		/sbin/modprobe -q -r test_jump_label_base
	else
		echo "jump_label: [FAIL]"
		/sbin/modprobe -q -r test_jump_label_base
	fi
else
	echo "jump_label: [FAIL]"
	exit 1
fi