Skip to contentSkip to conversation

selftests/vm: Add protection_keys tests to run_vmtests

PATCH Applied Kalpana Shetty 1 participant 1 message Jun 17, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 selftests/vm: Add protection_keys tests to run_vmtests

Adding "protected_keys" tests to "run_vmtests.sh" would help out to run all VM related tests from a single shell script.

---
Changes in V4:
Shuah Khan's review comments incorporated, added -x executable check.

 tools/testing/selftests/vm/run_vmtests.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)
tools/testing/selftests/vm/run_vmtests.sh +11 -0
index 41fce8bea929..61b1ca129a30 100755
@@ -179,4 +179,15 @@ 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 [ -x ./protection_keys_32 ]
+then
+	run_test ./protection_keys_32
+fi
+
+if [ -x ./protection_keys_64 ]
+then
+	run_test ./protection_keys_64
+fi
+
 exit $exitcode
Signature · 1 line
2.25.1