blob: 45a23e2d64ad47aac888e7cf62c3ec6e17516451 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3# Runs printf infrastructure using test_printf kernel module
4
5# Kselftest framework requirement - SKIP code is 4.
6ksft_skip=4
7
8if ! /sbin/modprobe -q -n test_printf; then
9 echo "printf: module test_printf is not found [SKIP]"
10 exit $ksft_skip
11fi
12
13if /sbin/modprobe -q test_printf; then
14 /sbin/modprobe -q -r test_printf
15 echo "printf: ok"
16else
17 echo "printf: [FAIL]"
18 exit 1
19fi