Jason Baron
2015-07-30 03:59:44 +00:00
committed by Ingo Molnar
parent ed79e94673
commit 579e1acb15
7 changed files with 329 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ ifneq (1, $(quicktest))
TARGETS += timers
endif
TARGETS += user
TARGETS += jumplabel
TARGETS += vm
TARGETS += x86
#Please keep the TARGETS list alphabetically sorted

View File

@@ -0,0 +1,8 @@
# Makefile for jump label selftests
# No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
all:
TEST_PROGS := test_jump_label.sh
include ../lib.mk

View File

@@ -0,0 +1,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