jump_label: Provide a self-test
[linux-2.6-block.git] / tools / testing / selftests / jumplabel / test_jump_label.sh
CommitLineData
579e1acb
JB
1#!/bin/sh
2# Runs jump label kernel module tests
3
4if /sbin/modprobe -q test_jump_label_base; then
5 if /sbin/modprobe -q test_jump_label; then
6 echo "jump_label: ok"
7 /sbin/modprobe -q -r test_jump_label
8 /sbin/modprobe -q -r test_jump_label_base
9 else
10 echo "jump_label: [FAIL]"
11 /sbin/modprobe -q -r test_jump_label_base
12 fi
13else
14 echo "jump_label: [FAIL]"
15 exit 1
16fi