Skip to contentSkip to conversation

selftests/vm: add CATEGORY for ksm_functional_tests

PATCH In review Joel Savitz 2 participants 2 messages Oct 27, 2022 – Nov 17, 2022

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

PATCH 1/1 selftests/vm: add CATEGORY for ksm_functional_tests

commit e080ceaa69c1 ("selftests/vm: add KSM unmerge tests") in linux-next adds an entry to run_vmtests.sh. I recently submitted commit b5ba705c2608 ("selftests/vm: enable running select groups of tests") to linux-next which categorizes tests by functionality in order to allow more precise selection of which tests are to be run.

Since this newest test targets ksm and does not require more than one numa node, add 'CATEGORY="ksm"' to the invocation to group this test with the other ksm tests.

---
 tools/testing/selftests/vm/run_vmtests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/vm/run_vmtests.sh +1 -1
index af35dd3bc589..fff00bb77086 100755
@@ -252,7 +252,7 @@ CATEGORY="ksm_numa" run_test ./ksm_tests -N -m 1
 # KSM test with 2 NUMA nodes and merge_across_nodes = 0
 CATEGORY="ksm_numa" run_test ./ksm_tests -N -m 0
 
-run_test ./ksm_functional_tests
+CATEGORY="ksm" run_test ./ksm_functional_tests
 
 # protection_keys tests
 if [ -x ./protection_keys_32 ]
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · Joel Savitz

commit e080ceaa69c1 ("selftests/vm: add KSM unmerge tests") in linux-next adds an entry to run_vmtests.sh. I recently submitted commit b5ba705c2608 ("selftests/vm: enable running select groups of tests") to linux-next which categorizes tests by functionality in order to allow more precise selection of which tests are to be run.

Since this newest test targets ksm and does not require more than one numa node, add 'CATEGORY="ksm"' to the invocation to group this test with the other ksm tests.

---
  tools/testing/selftests/vm/run_vmtests.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/vm/run_vmtests.sh +0 -0
index af35dd3bc589..fff00bb77086 100755

tools/testing/selftests/vm/run_vmtests.sh CATEGORY="ksm_numa" run_test ./ksm_tests -N -m 1 · line 258

Quoted 8 lines
tools/testing/selftests/vm/run_vmtests.sh +1 -1
@@ -252,7 +252,7 @@ CATEGORY="ksm_numa" run_test ./ksm_tests -N -m 1
  # KSM test with 2 NUMA nodes and merge_across_nodes = 0
  CATEGORY="ksm_numa" run_test ./ksm_tests -N -m 0
 
-run_test ./ksm_functional_tests
+CATEGORY="ksm" run_test ./ksm_functional_tests
 
  # protection_keys tests
  if [ -x ./protection_keys_32 ]
Signature · 3 lines
Thanks,

David / dhildenb