Skip to content

fstests: Fix tests which checks for swapfile support

Ritesh Harjani fstests linux-btrfs linux-ext4 linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3common/rc: Make swapon check in _require_scratch_swapfile() specific to btrfscommon/rc+10 -81 reply
2/3shared/001: Verify swapon on fallocated files for supported FStests/shared/001 tests/shared/001.out tests/shared/group+104 -01 reply
3/3common/rc: source common/xfs and common/btrfscommon/rc+2 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] fstests: Fix tests which checks for swapfile support

For more details, pls refer commit msg of each patch.

Patch-1: modifies _require_scratch_swapfile() to check swapon only for btrfs
Patch-2: adds a swapfile test for fallocate files for ext4, xfs (assuming both FS supports and thus should pass).
Patch-3: added to support tests to run when multiple config section present in local.config file.

Ritesh Harjani (3):
common/rc: Make swapon check in _require_scratch_swapfile() specific to btrfs shared/001: Verify swapon on fallocated files for supported FS common/rc: source common/xfs and common/btrfs

 common/rc            | 20 +++++----
 tests/shared/001     | 97 ++++++++++++++++++++++++++++++++++++++++++++
 tests/shared/001.out |  6 +++
 tests/shared/group   |  1 +
 4 files changed, 116 insertions(+), 8 deletions(-)
 create mode 100755 tests/shared/001
 create mode 100644 tests/shared/001.out

--
2.26.2