2 # SPDX-License-Identifier: GPL-2.0-or-newer
3 # Copyright (c) 2020, Oracle and/or its affiliates. All Rights Reserved.
7 # Ensure all xfs_quota commands are documented.
10 _begin_fstest auto quick quota
12 # Override the default cleanup function.
19 # Import common functions.
21 # real QA test starts here
23 _require_command "$XFS_QUOTA_PROG" "xfs_quota"
24 _require_command "$MAN_PROG" man
27 echo "Silence is golden"
29 MANPAGE=$($MAN_PROG --path xfs_quota)
32 *.gz|*.z\|*.Z) CAT=zcat;;
37 _require_command `which $CAT` $CAT
39 for COMMAND in `$XFS_QUOTA_PROG -x -c help $file | awk '{print $1}' | grep -v "^Use"`; do
40 $CAT "$MANPAGE" | egrep -q "^\.B.*$COMMAND" || \
41 echo "$COMMAND not documented in the xfs_quota manpage"