Skip to content

selftests/mm: use pattern matching in .gitignore

[email protected] linux-kselftest linux-mm lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 4 repliesIn review 1 of 2 applied
  2. v32 patches 3 repliesSuperseded
  3. v21 patch 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC1 patch6 repliesSuperseded

Changelog since v1 (RFC) [1] from the cover letter

- Renamed local_config.h to local_config.h_gen to avoid conflict with !*.h.
- Updated Makefile, check_config.sh, and affected .c files for the rename.
- Removed *.mod.c as it was unnecessary.

Patches in v4 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2selftests/mm: rename local_config.h to local_config.h_gentools/testing/selftests/mm/Makefile tools/testing/selftests/mm/check_config.sh tools/testing/selftests/mm/cow.c +1 more+6 -62 replies
2/2selftests/mm: use pattern matching in .gitignoretools/testing/selftests/mm/.gitignore+9 -622 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLorenzo StoakesMike Rapoport (Microsoft)SJ ParkDavid Hildenbrand (Arm)
1/2R-b A-b R-b
2/2R-b A-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/2] selftests/mm: use pattern matching in .gitignore

From: Pratyush Mallick <[email protected]>

The current selftests/mm/.gitignore hardcodes each generated test binary by name, which requires manual updates every time a new test is added.

This series switches to a pattern-matching approach (similar to KVM selftests), ignoring everything by default and allowing specific source extensions. To accommodate this without tracking generated headers, local_config.h is renamed to local_config.h_gen.

Changelog since v3 [3]:
- Reordered the patches so that local_config.h is renamed before updating .gitignore, preventing local_config.h from temporarily showing up as an untracked file in git status (SeongJae Park).

Changelog since v2 [2]:
- Split the changes into two separate patches (header rename and .gitignore update).
- Added Suggested-by for David Hildenbrand for the header rename approach.
- Dropped David's and Yosry's Reviewed-by tags.
- Kept Lorenzo Stoakes's Reviewed-by and added Mike Rapoport's Acked-by.

Changelog since v1 (RFC) [1]:
- Renamed local_config.h to local_config.h_gen to avoid conflict with !*.h.
- Updated Makefile, check_config.sh, and affected .c files for the rename.
- Removed *.mod.c as it was unnecessary.

Links:
[1] RFC: https://lore.kernel.org/linux-mm/afnMAaz1jY94db2n@lucifer/
[2] v2: https://lore.kernel.org/linux-mm/[email protected]/
[3] v3: https://lore.kernel.org/linux-mm/[email protected]/

Pratyush Mallick (2):
selftests/mm: rename local_config.h to local_config.h_gen selftests/mm: use pattern matching in .gitignore

 tools/testing/selftests/mm/.gitignore      | 71 +++-------------------
 tools/testing/selftests/mm/Makefile        |  6 +-
 tools/testing/selftests/mm/check_config.sh |  2 +-
 tools/testing/selftests/mm/cow.c           |  2 +-
 tools/testing/selftests/mm/gup_longterm.c  |  2 +-
 5 files changed, 15 insertions(+), 68 deletions(-)
Signature · 1 line
2.55.0.571.g244d577d93-goog