Commit 317dc34a authored by Kees Cook's avatar Kees Cook Committed by Linus Torvalds

selftests: run lib/test_printf module

This runs the lib/test_printf module to make sure printf is operating
Signed-off-by: default avatarKees Cook <>
Cc: Rasmus Villemoes <>
Cc: Shuah Khan <>
Cc: Andy Shevchenko <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 707cc728
......@@ -6,6 +6,7 @@ TARGETS += firmware
TARGETS += ftrace
TARGETS += futex
TARGETS += kcmp
TARGETS += lib
TARGETS += membarrier
TARGETS += memfd
TARGETS += memory-hotplug
# Makefile for lib/ function selftests
# No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
include ../
# Runs printf infrastructure using test_printf kernel module
if /sbin/modprobe -q test_printf; then
/sbin/modprobe -q -r test_printf
echo "printf: ok"
echo "printf: [FAIL]"
exit 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment