]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/624: test multiple Merkle tree block sizes
authorEric Biggers <ebiggers@google.com>
Thu, 29 Dec 2022 23:32:21 +0000 (15:32 -0800)
committerZorro Lang <zlang@kernel.org>
Sun, 1 Jan 2023 13:35:37 +0000 (21:35 +0800)
commit772a394868c9eb9a386a65c6afc42f52309a8997
tree791dca6ec966b2fba78b11e6ee01e6ca5a5397d4
parenta89062a98d078f80b9160850331a59bdd9162a6e
generic/624: test multiple Merkle tree block sizes

Instead of only testing 4K Merkle tree blocks, test FSV_BLOCK_SIZE, and
also other sizes if they happen to be supported.  This allows this test
to run in cases where it couldn't before and improves test coverage in
cases where it did run before.

This required reworking the test to compute the expected digests using
the 'fsverity digest' command, instead of relying on .out file
comparisons.  (There isn't much downside to this, since comparison to
known-good file digests already happens in generic/575.  So if both the
kernel and fsverity-utils were to be broken in the same way, generic/575
would detect it.  generic/624 serves a different purpose.)

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/verity
tests/generic/624
tests/generic/624.out