* [PATCH] xfs/293: tighten up checks for documented xfs_io commands
@ 2015-12-04 21:18 Eric Sandeen
2015-12-11 9:25 ` Eryu Guan
0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2015-12-04 21:18 UTC (permalink / raw)
To: fstests
Some commands (like "zero") are simple words which commonly
occur in the manpage text even if they aren't documented as
commands.
Grep for " $COMMAND" instead of the bare word, because
the documented commands show up as indented.
This reveals that the "zero" command is not documented yet.
(It catches "help" too, because it's documented differently;
I'll fix that up in the manpage when I add "zero").
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff --git a/tests/xfs/293 b/tests/xfs/293
index d1a2853..ade6015 100755
--- a/tests/xfs/293
+++ b/tests/xfs/293
@@ -49,7 +49,7 @@ _supported_os IRIX Linux
echo "Silence is golden"
for COMMAND in `$XFS_IO_PROG -c help | awk '{print $1}' | grep -v "^Use"`; do
- man xfs_io | col -b | grep -wq $COMMAND || \
+ man xfs_io | col -b | grep -wq " $COMMAND" || \
echo "$COMMAND not documented in the xfs_io manpage"
done
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xfs/293: tighten up checks for documented xfs_io commands
2015-12-04 21:18 [PATCH] xfs/293: tighten up checks for documented xfs_io commands Eric Sandeen
@ 2015-12-11 9:25 ` Eryu Guan
0 siblings, 0 replies; 2+ messages in thread
From: Eryu Guan @ 2015-12-11 9:25 UTC (permalink / raw)
To: Eric Sandeen; +Cc: fstests
On Fri, Dec 04, 2015 at 03:18:14PM -0600, Eric Sandeen wrote:
> Some commands (like "zero") are simple words which commonly
> occur in the manpage text even if they aren't documented as
> commands.
>
> Grep for " $COMMAND" instead of the bare word, because
> the documented commands show up as indented.
>
> This reveals that the "zero" command is not documented yet.
> (It catches "help" too, because it's documented differently;
> I'll fix that up in the manpage when I add "zero").
>
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
> ---
>
> diff --git a/tests/xfs/293 b/tests/xfs/293
> index d1a2853..ade6015 100755
> --- a/tests/xfs/293
> +++ b/tests/xfs/293
> @@ -49,7 +49,7 @@ _supported_os IRIX Linux
> echo "Silence is golden"
>
> for COMMAND in `$XFS_IO_PROG -c help | awk '{print $1}' | grep -v "^Use"`; do
> - man xfs_io | col -b | grep -wq $COMMAND || \
> + man xfs_io | col -b | grep -wq " $COMMAND" || \
> echo "$COMMAND not documented in the xfs_io manpage"
> done
>
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-11 9:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-04 21:18 [PATCH] xfs/293: tighten up checks for documented xfs_io commands Eric Sandeen
2015-12-11 9:25 ` Eryu Guan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox