]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - tools/testing/selftests/lib/printf.sh
Merge remote-tracking branches 'asoc/topic/max98925', 'asoc/topic/max98927', 'asoc...
[mirror_ubuntu-bionic-kernel.git] / tools / testing / selftests / lib / printf.sh
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # Runs printf infrastructure using test_printf kernel module
4 if ! /sbin/modprobe -q -n test_printf; then
5 echo "printf: [SKIP]"
6 exit 77
7 fi
8
9 if /sbin/modprobe -q test_printf; then
10 /sbin/modprobe -q -r test_printf
11 echo "printf: ok"
12 else
13 echo "printf: [FAIL]"
14 exit 1
15 fi