From: Eric Biggers <ebiggers@xxxxxxxxxx> This RFC patchset adds tests for the FS_IOC_READ_VERITY_METADATA ioctl which I've proposed at https://lkml.kernel.org/linux-fscrypt/20210115181819.34732-1-ebiggers@xxxxxxxxxx/T/#u. It relies on a new 'dump_metadata' subcommand for the 'fsverity' program from fsverity-utils, which I've proposed at https://lkml.kernel.org/linux-fscrypt/20210115182402.35691-1-ebiggers@xxxxxxxxxx/T/#u. The tests run on ext4 and f2fs (the filesystems that support fs-verity). Eric Biggers (4): generic: factor out helpers for fs-verity built-in signatures generic: add helpers for dumping fs-verity metadata generic: test retrieving verity Merkle tree and descriptor generic: test retrieving verity signature common/verity | 73 ++++++++++++++++++++++++++++++++++++++- tests/generic/577 | 15 ++------ tests/generic/901 | 79 +++++++++++++++++++++++++++++++++++++++++++ tests/generic/901.out | 16 +++++++++ tests/generic/902 | 66 ++++++++++++++++++++++++++++++++++++ tests/generic/902.out | 7 ++++ tests/generic/group | 2 ++ 7 files changed, 245 insertions(+), 13 deletions(-) create mode 100755 tests/generic/901 create mode 100644 tests/generic/901.out create mode 100644 tests/generic/902 create mode 100644 tests/generic/902.out -- 2.30.0