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

Configure Feed

Select the types of activity you want to include in your feed.

selftests/mm: run_vmtests.sh: add missing tests

Add missing tests to run_vmtests.sh. The mm kselftests are run through
run_vmtests.sh. If a test isn't present in this script, it'll not run
with run_tests or `make -C tools/testing/selftests/mm run_tests`.

[usama.anjum@collabora.com: use correct flag in the code]
Link: https://lkml.kernel.org/r/20240201130538.1404897-2-usama.anjum@collabora.com
Link: https://lkml.kernel.org/r/20240125154608.720072-6-usama.anjum@collabora.com
Cc: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Muhammad Usama Anjum and committed by
Andrew Morton
f16ff3b6 c23ea617

+14 -1
+5
tools/testing/selftests/mm/Makefile
··· 114 114 TEST_FILES := test_vmalloc.sh 115 115 TEST_FILES += test_hmm.sh 116 116 TEST_FILES += va_high_addr_switch.sh 117 + TEST_FILES += charge_reserved_hugetlb.sh 118 + TEST_FILES += hugetlb_reparenting_test.sh 119 + 120 + # required by charge_reserved_hugetlb.sh 121 + TEST_FILES += write_hugetlb_memory.sh 117 122 118 123 include ../lib.mk 119 124
+9 -1
tools/testing/selftests/mm/run_vmtests.sh
··· 15 15 cat <<EOF 16 16 usage: ${BASH_SOURCE[0]:-$0} [ options ] 17 17 18 - -a: run all tests, including extra ones 18 + -a: run all tests, including extra ones (other than destructive ones) 19 19 -t: specify specific categories to tests to run 20 20 -h: display this message 21 21 -n: disable TAP output 22 + -d: run destructive tests 22 23 23 24 The default behavior is to run required tests only. If -a is specified, 24 25 will run all tests. ··· 80 79 } 81 80 82 81 RUN_ALL=false 82 + RUN_DESTRUCTIVE=false 83 83 TAP_PREFIX="# " 84 84 85 85 while getopts "aht:n" OPT; do ··· 89 87 "h") usage ;; 90 88 "t") VM_SELFTEST_ITEMS=${OPTARG} ;; 91 89 "n") TAP_PREFIX= ;; 90 + "d") RUN_DESTRUCTIVE=true ;; 92 91 esac 93 92 done 94 93 shift $((OPTIND -1)) ··· 312 309 CATEGORY="mremap" run_test ./mremap_test 313 310 314 311 CATEGORY="hugetlb" run_test ./thuge-gen 312 + CATEGORY="hugetlb" run_test ./charge_reserved_hugetlb.sh -cgroup-v2 313 + CATEGORY="hugetlb" run_test ./hugetlb_reparenting_test.sh -cgroup-v2 314 + if $RUN_DESTRUCTIVE; then 315 + CATEGORY="hugetlb" run_test ./hugetlb-read-hwpoison 316 + fi 315 317 316 318 if [ $VADDR64 -ne 0 ]; then 317 319