mbox series

[v3,0/5] selftests/mm: Improve run_vmtests.sh

Message ID 20240125154608.720072-1-usama.anjum@collabora.com (mailing list archive)
Headers show
Series selftests/mm: Improve run_vmtests.sh | expand

Message

Muhammad Usama Anjum Jan. 25, 2024, 3:46 p.m. UTC
In this series, I'm trying to add 3 missing tests to vm_runtests.sh
which is used to run all the tests in mm suite. These tests weren't
running by CIs. While enabling them and through review feedback, I've
fixed some problems in tests as well. I've found more flakiness in more
tests which I'll be fixing with future patches.

hugetlb-read-hwpoison test is being added where it can only run with
newly added "-d" (destructive) flag only. Not sure why it is failing
again. So once it become stable, we can think of moving it to default
set of tests if it doesn't have any side-effect to them.

Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
Changes in v3:
- Add cover letter
- Fix flakiness in tests found during enablement
- Move additional tests down in the file
- Add "-d" option which poisons the pages and aren't being useable after
  the test

v2: https://lore.kernel.org/all/20240123073615.920324-1-usama.anjum@collabora.com

Muhammad Usama Anjum (5):
  selftests/mm: hugetlb_reparenting_test: do not unmount
  selftests/mm: run_vmtests: remove sudo and conform to tap
  selftests/mm: save and restore nr_hugepages value
  selftests/mm: protection_keys: save/restore nr_hugepages settings
  selftests/mm: run_vmtests.sh: add missing tests

 tools/testing/selftests/mm/Makefile           |  5 +++
 .../selftests/mm/charge_reserved_hugetlb.sh   |  4 +++
 .../selftests/mm/hugetlb_reparenting_test.sh  |  9 +++--
 tools/testing/selftests/mm/on-fault-limit.c   | 36 +++++++++----------
 tools/testing/selftests/mm/protection_keys.c  | 34 ++++++++++++++++++
 tools/testing/selftests/mm/run_vmtests.sh     | 10 +++++-
 6 files changed, 76 insertions(+), 22 deletions(-)