| .. | .. |
|---|
| 1 | 1 | #!/bin/sh |
|---|
| 2 | 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. |
|---|
| 6 | | -ksft_skip=4 |
|---|
| 7 | | - |
|---|
| 8 | | -if ! /sbin/modprobe -q -n test_printf; then |
|---|
| 9 | | - echo "printf: module test_printf is not found [SKIP]" |
|---|
| 10 | | - exit $ksft_skip |
|---|
| 11 | | -fi |
|---|
| 12 | | - |
|---|
| 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 |
|---|
| 19 | | -fi |
|---|
| 3 | +# Tests the printf infrastructure using test_printf kernel module. |
|---|
| 4 | +$(dirname $0)/../kselftest/module.sh "printf" test_printf |
|---|