summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/lib/printf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/lib/printf.sh')
-rw-r--r--tools/testing/selftests/lib/printf.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/selftests/lib/printf.sh b/tools/testing/selftests/lib/printf.sh
new file mode 100644
index 000000000000..4fdc70fe6980
--- /dev/null
+++ b/tools/testing/selftests/lib/printf.sh
@@ -0,0 +1,10 @@
+#!/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