Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: user: remove user suite

The user test suite has only one test, test_user_copy which loads
test_user_copy module for testing. But test_user_copy module has already
been converted to kunit (see fixes). Hence remove the entire suite.

Fixes: cf6219ee889f ("usercopy: Convert test_user_copy to KUnit test")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Muhammad Usama Anjum and committed by
Shuah Khan
4e51e13b 0b631ed3

-29
-1
tools/testing/selftests/Makefile
··· 107 107 TARGETS += tpm2 108 108 TARGETS += tty 109 109 TARGETS += uevent 110 - TARGETS += user 111 110 TARGETS += user_events 112 111 TARGETS += vDSO 113 112 TARGETS += mm
-9
tools/testing/selftests/user/Makefile
··· 1 - # SPDX-License-Identifier: GPL-2.0-only 2 - # Makefile for user memory selftests 3 - 4 - # No binaries, but make sure arg-less "make" doesn't trigger "run_tests" 5 - all: 6 - 7 - TEST_PROGS := test_user_copy.sh 8 - 9 - include ../lib.mk
-1
tools/testing/selftests/user/config
··· 1 - CONFIG_TEST_USER_COPY=m
-18
tools/testing/selftests/user/test_user_copy.sh
··· 1 - #!/bin/sh 2 - # SPDX-License-Identifier: GPL-2.0 3 - # Runs copy_to/from_user infrastructure using test_user_copy kernel module 4 - 5 - # Kselftest framework requirement - SKIP code is 4. 6 - ksft_skip=4 7 - 8 - if ! /sbin/modprobe -q -n test_user_copy; then 9 - echo "user: module test_user_copy is not found [SKIP]" 10 - exit $ksft_skip 11 - fi 12 - if /sbin/modprobe -q test_user_copy; then 13 - /sbin/modprobe -q -r test_user_copy 14 - echo "user_copy: ok" 15 - else 16 - echo "user_copy: [FAIL]" 17 - exit 1 18 - fi