1#!/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
20