From: Kalpana Shetty Date: Tue, 31 May 2022 10:25:56 +0000 (+0530) Subject: selftests/vm: add protection_keys tests to run_vmtests X-Git-Tag: maple_v12_fixes~164 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=417bc7164c2495fd0df053aeb84a0b897705c0ea;p=users%2Fjedix%2Flinux-maple.git selftests/vm: add protection_keys tests to run_vmtests Adding "protected_keys" tests to "run_vmtests.sh" helps running all VM related tests from a single shell script. Link: https://lkml.kernel.org/r/20220610090704.296-1-kalpana.shetty@amd.com Link: https://lkml.kernel.org/r/20220531102556.388-1-kalpana.shetty@amd.com Signed-off-by: Kalpana Shetty Cc: Shuah Khan Signed-off-by: Andrew Morton --- diff --git a/tools/testing/selftests/vm/run_vmtests.sh b/tools/testing/selftests/vm/run_vmtests.sh index 41fce8bea9293..54a0c28f810c9 100755 --- a/tools/testing/selftests/vm/run_vmtests.sh +++ b/tools/testing/selftests/vm/run_vmtests.sh @@ -179,4 +179,11 @@ run_test ./ksm_tests -N -m 1 # KSM test with 2 NUMA nodes and merge_across_nodes = 0 run_test ./ksm_tests -N -m 0 +# protection_keys tests +if [ $VADDR64 -eq 0 ]; then + run_test ./protection_keys_32 +else + run_test ./protection_keys_64 +fi + exit $exitcode