From: Tomas Racek Date: Sun, 3 Feb 2013 10:19:56 +0000 (+0000) Subject: xfstests: Provide dumpe2fs via standard common.config interface X-Git-Tag: v2022.05.01~3543 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=03b0089e9b18ee6b4e5e990db98a1f545cc2521b;p=users%2Fhch%2Fxfstests-dev.git xfstests: Provide dumpe2fs via standard common.config interface dumpe2fs can be now accessed via $DUMPE2FS_PROG, tests that require it can check for its availability by _require_dumpe2fs function. Signed-off-by: Tomas Racek Reviewed-by: Ben Myers Signed-off-by: Rich Johnston --- diff --git a/common.config b/common.config index 57f505de6..717412780 100644 --- a/common.config +++ b/common.config @@ -159,6 +159,7 @@ export KILLALL_PROG="`set_prog_path killall`" export INDENT_PROG="`set_prog_path indent`" export XFS_COPY_PROG="`set_prog_path xfs_copy`" export FSTRIM_PROG="`set_prog_path fstrim`" +export DUMPE2FS_PROG="`set_prog_path dumpe2fs`" # Generate a comparable xfsprogs version number in the form of # major * 10000 + minor * 100 + release diff --git a/common.rc b/common.rc index 2e8581e00..0cccb94bb 100644 --- a/common.rc +++ b/common.rc @@ -1826,6 +1826,13 @@ _test_batched_discard() $FSTRIM_PROG ${1} &>/dev/null } +_require_dumpe2fs() +{ + if [ -z "$DUMPE2FS_PROG" ]; then + _notrun "This test requires dumpe2fs utility." + fi +} + ################################################################################ if [ "$iam" != new -a "$iam" != bench ]