License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / tools / testing / selftests / lib / printf.sh
CommitLineData
317dc34a 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
317dc34a 3# Runs printf infrastructure using test_printf kernel module
e0912c01
SS
4if ! /sbin/modprobe -q -n test_printf; then
5 echo "printf: [SKIP]"
6 exit 77
7fi
317dc34a
KC
8
9if /sbin/modprobe -q test_printf; then
10 /sbin/modprobe -q -r test_printf
11 echo "printf: ok"
12else
13 echo "printf: [FAIL]"
14 exit 1
15fi