Skip to content

selftests/mm: Improve Hugepage Test Handling in MM Selftests

Nico Pache linux-kselftest linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] selftests-mm-skip-the-hugetlb-madvise-tests-on-unmet-hugepage-requirements.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesApplied 3/3
  2. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

- Added checks to skip tests when hugepage requirements are not met, rather than exiting with a failure.

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3selftests/mm: Dont fail testsuite due to a lack of hugepagestools/testing/selftests/mm/run_vmtests.sh+0 -10 repliesApplied
2/3selftests/mm: Skip uffd hugetlb tests with insufficient hugepagestools/testing/selftests/mm/uffd-stress.c+6 -00 repliesApplied
3/3selftests/mm: Skip the hugetlb-madvise tests on unmet hugepage requirementstools/testing/selftests/mm/hugetlb-madvise.c+2 -10 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] selftests/mm: Improve Hugepage Test Handling in MM Selftests

This series addresses issues related to hugepage requirements in the MM selftests, ensuring tests are skipped rather than failing when the necessary hugepage count is not met.

This adjustment allows for a more graceful handling for systems with insufficient hugepages, preventing unnecessary test failures and improving the overall robustness of the test suite.

Nico Pache (3):
selftests/mm: Dont fail testsuite due to a lack of hugepages selftests/mm: Skip uffd hugetlb tests with insufficient hugepages selftests/mm: Skip the hugetlb-madvise tests on unmet hugepage
requirements

Changes from v1:
- Added checks to skip tests when hugepage requirements are not met, rather than exiting with a failure.

 tools/testing/selftests/mm/hugetlb-madvise.c | 2 +-
 tools/testing/selftests/mm/run_vmtests.sh    | 1 -
 tools/testing/selftests/mm/uffd-stress.c     | 6 ++++++
 3 files changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
2.44.0