* [PATCH V2] mkfs.xfs: test that shipped config files work properly
@ 2023-06-05 21:11 Eric Sandeen
2023-06-05 21:14 ` [PATCH V3] " Eric Sandeen
0 siblings, 1 reply; 3+ messages in thread
From: Eric Sandeen @ 2023-06-05 21:11 UTC (permalink / raw)
To: linux-xfs, fstests
Sanity check the shipped mkfs.xfs config files by using
them to format the scratch device.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
tests/xfs/569 | 32 ++++++++++++++++++++++++++++++++
tests/xfs/569.out | 2 ++
2 files changed, 34 insertions(+)
create mode 100755 tests/xfs/569
create mode 100644 tests/xfs/569.out
diff --git a/tests/xfs/569 b/tests/xfs/569
new file mode 100755
index 0000000..ebcaaab
--- /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 || \
+ _fail "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 0000000..c7aaf10
--- /dev/null
+++ b/tests/xfs/569.out
@@ -0,0 +1,2 @@
+QA output created by 569
+Silence is golden
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH V3] mkfs.xfs: test that shipped config files work properly
2023-06-05 21:11 [PATCH V2] mkfs.xfs: test that shipped config files work properly Eric Sandeen
@ 2023-06-05 21:14 ` Eric Sandeen
2023-06-05 22:06 ` Darrick J. Wong
0 siblings, 1 reply; 3+ messages in thread
From: Eric Sandeen @ 2023-06-05 21:14 UTC (permalink / raw)
To: linux-xfs, fstests
Sanity check the shipped mkfs.xfs config files by using
them to format the scratch device.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
tests/xfs/569 | 32 ++++++++++++++++++++++++++++++++
tests/xfs/569.out | 2 ++
2 files changed, 34 insertions(+)
create mode 100755 tests/xfs/569
create mode 100644 tests/xfs/569.out
diff --git a/tests/xfs/569 b/tests/xfs/569
new file mode 100755
index 0000000..e890270
--- /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 0000000..c7aaf10
--- /dev/null
+++ b/tests/xfs/569.out
@@ -0,0 +1,2 @@
+QA output created by 569
+Silence is golden
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH V3] mkfs.xfs: test that shipped config files work properly
2023-06-05 21:14 ` [PATCH V3] " Eric Sandeen
@ 2023-06-05 22:06 ` Darrick J. Wong
0 siblings, 0 replies; 3+ messages in thread
From: Darrick J. Wong @ 2023-06-05 22:06 UTC (permalink / raw)
To: Eric Sandeen; +Cc: linux-xfs, fstests
On Mon, Jun 05, 2023 at 04:14:34PM -0500, Eric Sandeen wrote:
> Sanity check the shipped mkfs.xfs config files by using
> them to format the scratch device.
>
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Looks good,
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
--D
> ---
> tests/xfs/569 | 32 ++++++++++++++++++++++++++++++++
> tests/xfs/569.out | 2 ++
> 2 files changed, 34 insertions(+)
> create mode 100755 tests/xfs/569
> create mode 100644 tests/xfs/569.out
>
> diff --git a/tests/xfs/569 b/tests/xfs/569
> new file mode 100755
> index 0000000..e890270
> --- /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 0000000..c7aaf10
> --- /dev/null
> +++ b/tests/xfs/569.out
> @@ -0,0 +1,2 @@
> +QA output created by 569
> +Silence is golden
> --
> 1.8.3.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-05 22:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-05 21:11 [PATCH V2] mkfs.xfs: test that shipped config files work properly Eric Sandeen
2023-06-05 21:14 ` [PATCH V3] " Eric Sandeen
2023-06-05 22:06 ` Darrick J. Wong
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.