Skip to content

Commit c78fd76

Browse files
keesshuahkh
authored andcommitted
selftests: Move kselftest_module.sh into kselftest/
The kselftest_module.sh file was not being installed by the Makefile "install" target, rendering the lib/*.sh tests nonfunction. This fixes that and takes the opportunity to move it into the kselftest/ subdirectory which is where the kselftest infrastructure bits are collecting. Reported-by: Naresh Kamboju <[email protected]> Link: https://lore.kernel.org/lkml/CA+G9fYsfJpXQvOvHdjtg8z4a89dSStOQZOKa9zMjjQgWKng1aw@mail.gmail.com Fixes: d346052 ("kselftest: Add test runner creation script") Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent ea1bf0b commit c78fd76

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

tools/testing/selftests/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ install: all
191191
ifdef INSTALL_PATH
192192
@# Ask all targets to install their files
193193
mkdir -p $(INSTALL_PATH)/kselftest
194+
install -m 744 kselftest/module.sh $(INSTALL_PATH)/kselftest/
194195
install -m 744 kselftest/runner.sh $(INSTALL_PATH)/kselftest/
195196
install -m 744 kselftest/prefix.pl $(INSTALL_PATH)/kselftest/
196197
@for TARGET in $(TARGETS); do \

tools/testing/selftests/lib/bitmap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
# SPDX-License-Identifier: GPL-2.0
3-
$(dirname $0)/../kselftest_module.sh "bitmap" test_bitmap
3+
$(dirname $0)/../kselftest/module.sh "bitmap" test_bitmap
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
# SPDX-License-Identifier: GPL-2.0
33
# Checks fast/slow prime_number generation for inconsistencies
4-
$(dirname $0)/../kselftest_module.sh "prime numbers" prime_numbers selftest=65536
4+
$(dirname $0)/../kselftest/module.sh "prime numbers" prime_numbers selftest=65536

tools/testing/selftests/lib/printf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
# SPDX-License-Identifier: GPL-2.0
33
# Tests the printf infrastructure using test_printf kernel module.
4-
$(dirname $0)/../kselftest_module.sh "printf" test_printf
4+
$(dirname $0)/../kselftest/module.sh "printf" test_printf
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
# SPDX-License-Identifier: GPL-2.0+
3-
$(dirname $0)/../kselftest_module.sh "strscpy*" test_strscpy
3+
$(dirname $0)/../kselftest/module.sh "strscpy*" test_strscpy

0 commit comments

Comments
 (0)