Linux 4.19.133
[linux/fpc-iii.git] / tools / testing / selftests / lib / printf.sh
blob45a23e2d64ad47aac888e7cf62c3ec6e17516451
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # Runs printf infrastructure using test_printf kernel module
5 # Kselftest framework requirement - SKIP code is 4.
6 ksft_skip=4
8 if ! /sbin/modprobe -q -n test_printf; then
9 echo "printf: module test_printf is not found [SKIP]"
10 exit $ksft_skip
13 if /sbin/modprobe -q test_printf; then
14 /sbin/modprobe -q -r test_printf
15 echo "printf: ok"
16 else
17 echo "printf: [FAIL]"
18 exit 1