Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

selftests: run lib/test_printf module



This runs the lib/test_printf module to make sure printf is operating
sanely.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 707cc728
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ TARGETS += firmware
TARGETS += ftrace
TARGETS += futex
TARGETS += kcmp
TARGETS += lib
TARGETS += membarrier
TARGETS += memfd
TARGETS += memory-hotplug
+8 −0
Original line number Diff line number Diff line
# Makefile for lib/ function selftests

# No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
all:

TEST_PROGS := printf.sh

include ../lib.mk
+10 −0
Original line number Diff line number Diff line
#!/bin/sh
# Runs printf infrastructure using test_printf kernel module

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