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 <rf@opensource.cirrus.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20210514161206.30821-4-rf@opensource.cirrus.com
1 parent 50f530e commit ef04d4f

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

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
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)