mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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>
This commit is contained in:
parent
c23ea61726
commit
f16ff3b692
|
|
@ -114,6 +114,11 @@ TEST_PROGS := run_vmtests.sh
|
||||||
TEST_FILES := test_vmalloc.sh
|
TEST_FILES := test_vmalloc.sh
|
||||||
TEST_FILES += test_hmm.sh
|
TEST_FILES += test_hmm.sh
|
||||||
TEST_FILES += va_high_addr_switch.sh
|
TEST_FILES += va_high_addr_switch.sh
|
||||||
|
TEST_FILES += charge_reserved_hugetlb.sh
|
||||||
|
TEST_FILES += hugetlb_reparenting_test.sh
|
||||||
|
|
||||||
|
# required by charge_reserved_hugetlb.sh
|
||||||
|
TEST_FILES += write_hugetlb_memory.sh
|
||||||
|
|
||||||
include ../lib.mk
|
include ../lib.mk
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,11 @@ usage() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
usage: ${BASH_SOURCE[0]:-$0} [ options ]
|
usage: ${BASH_SOURCE[0]:-$0} [ options ]
|
||||||
|
|
||||||
-a: run all tests, including extra ones
|
-a: run all tests, including extra ones (other than destructive ones)
|
||||||
-t: specify specific categories to tests to run
|
-t: specify specific categories to tests to run
|
||||||
-h: display this message
|
-h: display this message
|
||||||
-n: disable TAP output
|
-n: disable TAP output
|
||||||
|
-d: run destructive tests
|
||||||
|
|
||||||
The default behavior is to run required tests only. If -a is specified,
|
The default behavior is to run required tests only. If -a is specified,
|
||||||
will run all tests.
|
will run all tests.
|
||||||
|
|
@ -79,6 +80,7 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
RUN_ALL=false
|
RUN_ALL=false
|
||||||
|
RUN_DESTRUCTIVE=false
|
||||||
TAP_PREFIX="# "
|
TAP_PREFIX="# "
|
||||||
|
|
||||||
while getopts "aht:n" OPT; do
|
while getopts "aht:n" OPT; do
|
||||||
|
|
@ -87,6 +89,7 @@ while getopts "aht:n" OPT; do
|
||||||
"h") usage ;;
|
"h") usage ;;
|
||||||
"t") VM_SELFTEST_ITEMS=${OPTARG} ;;
|
"t") VM_SELFTEST_ITEMS=${OPTARG} ;;
|
||||||
"n") TAP_PREFIX= ;;
|
"n") TAP_PREFIX= ;;
|
||||||
|
"d") RUN_DESTRUCTIVE=true ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
shift $((OPTIND -1))
|
shift $((OPTIND -1))
|
||||||
|
|
@ -309,6 +312,11 @@ CATEGORY="process_mrelease" run_test ./mrelease_test
|
||||||
CATEGORY="mremap" run_test ./mremap_test
|
CATEGORY="mremap" run_test ./mremap_test
|
||||||
|
|
||||||
CATEGORY="hugetlb" run_test ./thuge-gen
|
CATEGORY="hugetlb" run_test ./thuge-gen
|
||||||
|
CATEGORY="hugetlb" run_test ./charge_reserved_hugetlb.sh -cgroup-v2
|
||||||
|
CATEGORY="hugetlb" run_test ./hugetlb_reparenting_test.sh -cgroup-v2
|
||||||
|
if $RUN_DESTRUCTIVE; then
|
||||||
|
CATEGORY="hugetlb" run_test ./hugetlb-read-hwpoison
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $VADDR64 -ne 0 ]; then
|
if [ $VADDR64 -ne 0 ]; then
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user