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 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
28 # real QA test starts here
30 # Modify as appropriate.
34 _require_command "$MAN_PROG" man
36 echo "Silence is golden"
38 MANPAGE=`$MAN_PROG --path xfs_io`
41 *.gz|*.z\|*.Z) CAT=zcat;;
47 _require_command `which $CAT` $CAT
49 for COMMAND in `$XFS_IO_PROG -c help | awk '{print $1}' | grep -v "^Use"`; do
50 $CAT "$MANPAGE" | egrep -q "^\.B.*$COMMAND" || \
51 echo "$COMMAND not documented in the xfs_io manpage"