diff options
author | Eric Sandeen <sandeen@redhat.com> | 2023-06-05 16:14:34 -0500 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2023-06-10 15:35:59 +0800 |
commit | 3ed1150fd7b8ee2d79cfc2120468fc62dec8d0ca (patch) | |
tree | 760113267f8784d9453c3dc569f0740f671d4b6f | |
parent | 2702c4208dae05470f5b8c001130b74cb7ced436 (diff) | |
download | xfstests-dev-3ed1150fd7b8ee2d79cfc2120468fc62dec8d0ca.tar.gz |
xfs: test shipped config files work properly with mkfs.xfs
Sanity check the shipped mkfs.xfs config files by using
them to format the scratch device.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-x | tests/xfs/569 | 32 | ||||
-rw-r--r-- | tests/xfs/569.out | 2 |
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/xfs/569 b/tests/xfs/569 new file mode 100755 index 0000000000..e8902708bc --- /dev/null +++ b/tests/xfs/569 @@ -0,0 +1,32 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2023 Red Hat, Inc. All Rights Reserved. +# +# FS QA Test 569 +# +# Check for any installed example mkfs config files and validate that +# mkfs.xfs can properly use them. +# +. ./common/preamble +_begin_fstest mkfs + +# real QA test starts here + +# Modify as appropriate. +_supported_fs xfs +_require_scratch + +ls /usr/share/xfsprogs/mkfs/*.conf &>/dev/null || \ + _notrun "No mkfs.xfs config files installed" + +# We only fail if mkfs.xfs fails outright, ignoring warnings etc +echo "Silence is golden" + +for CONFIG in /usr/share/xfsprogs/mkfs/*.conf; do + $MKFS_XFS_PROG -c options=$CONFIG -f $SCRATCH_DEV &>>$seqres.full || \ + echo "mkfs.xfs config file $CONFIG failed" +done + +# success, all done +status=0 +exit diff --git a/tests/xfs/569.out b/tests/xfs/569.out new file mode 100644 index 0000000000..c7aaf10840 --- /dev/null +++ b/tests/xfs/569.out @@ -0,0 +1,2 @@ +QA output created by 569 +Silence is golden |