[PATCH 0/5] erofs-utils: tests: restructure test cases for xattr

Jingbo Xu jefflexu at linux.alibaba.com
Thu May 25 18:31:56 AEST 2023


This series restructures some existing test cases for xattr.

- patch 1/2: some generic helpers are extracted from erofs/019 [1]
- patch 3/4: the previous posted test case [2] checking xattrs in
  different layouts are split into two test cases, i.e. erofs/020 and
  erofs/021.
    - erofs/020 checks xattrs in different layouts and is independent on
      the "-b#" feature of mkfs.erofs
    - erofs/021 checks xattrs crossing block boundary.  It is dependent
      on the "-b#" feature of mkfs.erofs and will "notrun" if mkfs.erofs
      doesn't support this feature yet
- patch 5: it's the previous posted test case [3] checking long xattr
  name prefixes, except that it will "notrun" if mkfs.erofs doesn't
  support "--xattr-prefix" feature yet

[1] https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/tree/tests/erofs/019?h=experimental-tests
[2] https://lore.kernel.org/all/20230327123926.92934-1-jefflexu@linux.alibaba.com/
[3] https://lore.kernel.org/all/20230411103004.104064-1-jefflexu@linux.alibaba.com/

Huang Jianan (1):
  erofs-utils: tests: add test for xattrs

Jingbo Xu (4):
  erofs-utils: tests: add generic helper for xattrs
  erofs-utils: tests: add test for xattrs in different layouts
  erofs-utils: tests: add test for xattr crossing block boundary
  erofs-utils: tests: add test for long xattr name prefixes

 tests/Makefile.am   | 12 +++++++++
 tests/common/rc     | 44 ++++++++++++++++++++++++++++++
 tests/erofs/019     | 55 ++++++++++++++++++++++++++++++++++++++
 tests/erofs/019.out |  2 ++
 tests/erofs/020     | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/erofs/020.out |  2 ++
 tests/erofs/021     | 60 +++++++++++++++++++++++++++++++++++++++++
 tests/erofs/021.out |  2 ++
 tests/erofs/022     | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/erofs/022.out |  2 ++
 10 files changed, 333 insertions(+)
 create mode 100755 tests/erofs/019
 create mode 100644 tests/erofs/019.out
 create mode 100755 tests/erofs/020
 create mode 100644 tests/erofs/020.out
 create mode 100755 tests/erofs/021
 create mode 100644 tests/erofs/021.out
 create mode 100755 tests/erofs/022
 create mode 100644 tests/erofs/022.out

-- 
1.8.3.1



More information about the Linux-erofs mailing list