On 2026/2/4 19:26, Mark Brown wrote: > On Wed, Feb 04, 2026 at 03:33:29PM +0800, Miaohe Lin wrote: > >> +TEST_HARNESS_MAIN >> diff --git a/tools/testing/selftests/mm/run_vmtests.sh >> b/tools/testing/selftests/mm/run_vmtests.sh >> index 29be9038bfb0..afdcfd0d7cef 100755 >> --- a/tools/testing/selftests/mm/run_vmtests.sh >> +++ b/tools/testing/selftests/mm/run_vmtests.sh >> @@ -91,6 +91,8 @@ separated by spaces: >> test VMA merge cases behave as expected >> - rmap >> test rmap behaves as expected >> +- memory-failure >> + test memory-failure behaves as expected > > In -next I added a hack with wrapper scripts per category to improve the > integration of the mm selftests with the kselftest framework, could you > please wire things up into that, see: > > 6ce964c02f1c (selftests/mm: have the harness run each test category > separately)
Sorry, I missed that. Do you mean adding something like below to run memory-failure test separately? diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile index cd7ed1d6769f..b531fd2f4e4c 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -171,6 +171,7 @@ TEST_PROGS += ksft_thp.sh TEST_PROGS += ksft_userfaultfd.sh TEST_PROGS += ksft_vma_merge.sh TEST_PROGS += ksft_vmalloc.sh +TEST_PROGS += ksft_memory_failure.sh TEST_FILES := test_vmalloc.sh TEST_FILES += test_hmm.sh diff --git a/tools/testing/selftests/mm/ksft_memory_failure.sh b/tools/testing/selftests/mm/ksft_memory_failure.sh new file mode 100644 index 000000000000..ae1614d4d49b --- /dev/null +++ b/tools/testing/selftests/mm/ksft_memory_failure.sh @@ -0,0 +1,4 @@ +#!/bin/sh -e +# SPDX-License-Identifier: GPL-2.0 + +./run_vmtests.sh -t memory-failure Thanks. .

