jump_label: Provide a self-test
Signed-off-by: Jason Baron <jbaron@akamai.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: benh@kernel.crashing.org Cc: bp@alien8.de Cc: davem@davemloft.net Cc: ddaney@caviumnetworks.com Cc: heiko.carstens@de.ibm.com Cc: linux-kernel@vger.kernel.org Cc: liuj97@gmail.com Cc: luto@amacapital.net Cc: michael@ellerman.id.au Cc: rabin@rab.in Cc: ralf@linux-mips.org Cc: rostedt@goodmis.org Cc: shuahkh@osg.samsung.com Cc: vbabka@suse.cz Cc: will.deacon@arm.com Link: http://lkml.kernel.org/r/0c091ecebd78a879ed8a71835d205a691a75ab4e.1438227999.git.jbaron@akamai.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
@@ -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
|
||||
|
8
tools/testing/selftests/jumplabel/Makefile
Normal file
8
tools/testing/selftests/jumplabel/Makefile
Normal 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
|
16
tools/testing/selftests/jumplabel/test_jump_label.sh
Normal file
16
tools/testing/selftests/jumplabel/test_jump_label.sh
Normal 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
|
Reference in New Issue
Block a user