Skip to content

Commit ef04d4f

Browse files
rfvirgilpmladek
authored andcommitted
selftests: lib: Add wrapper script for test_scanf
Adds a wrapper shell script for the test_scanf module. Signed-off-by: Richard Fitzgerald <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 50f530e commit ef04d4f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

tools/testing/selftests/lib/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
55
all:
66

7-
TEST_PROGS := printf.sh bitmap.sh prime_numbers.sh strscpy.sh
7+
TEST_PROGS := printf.sh bitmap.sh prime_numbers.sh scanf.sh strscpy.sh
88

99
include ../lib.mk

tools/testing/selftests/lib/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG_TEST_PRINTF=m
2+
CONFIG_TEST_SCANF=m
23
CONFIG_TEST_BITMAP=m
34
CONFIG_PRIME_NUMBERS=m
45
CONFIG_TEST_STRSCPY=m

tools/testing/selftests/lib/scanf.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
# SPDX-License-Identifier: GPL-2.0
3+
# Tests the scanf infrastructure using test_scanf kernel module.
4+
$(dirname $0)/../kselftest/module.sh "scanf" test_scanf

0 commit comments

Comments
 (0)