]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
selftests/vm: add protection_keys tests to run_vmtests
authorKalpana Shetty <kalpana.shetty@amd.com>
Tue, 31 May 2022 10:25:56 +0000 (15:55 +0530)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Jul 2022 00:15:02 +0000 (20:15 -0400)
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 <kalpana.shetty@amd.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/vm/run_vmtests.sh

index 41fce8bea92930011024b45b7eebe7e44de03b3a..54a0c28f810c9ca0d4bad6acfe0dafdd39b83f26 100755 (executable)
@@ -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