2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2012 Red Hat, Inc. All Rights Reserved.
7 # Ensure all xfs_io commands are documented
10 _begin_fstest auto quick
12 # Import common functions.
15 # real QA test starts here
17 # Modify as appropriate.
20 _require_command "$MAN_PROG" man
22 echo "Silence is golden"
24 MANPAGE=`$MAN_PROG --path xfs_io`
27 *.gz|*.z\|*.Z) CAT=zcat;;
33 _require_command "$(type -P $CAT)" $CAT
35 for COMMAND in `$XFS_IO_PROG -c help | awk '{print $1}' | grep -v "^Use"`; do
36 $CAT "$MANPAGE" | egrep -q "^\.B.*$COMMAND" || \
37 echo "$COMMAND not documented in the xfs_io manpage"