xfs/293: make test more robust
authorEric Sandeen <sandeen@redhat.com>
Thu, 20 Apr 2017 15:30:36 +0000 (10:30 -0500)
committerEryu Guan <eguan@redhat.com>
Fri, 21 Apr 2017 03:15:02 +0000 (11:15 +0800)
commit3501b86c9db5dfc701229f0388eb2c39b7f4aca3
treed717e4620a3511d3b75f48b76fcd164493cc41a0
parent62c42440ee55b1f9f1985d24260929e8fa3ec937
xfs/293: make test more robust

xfs/293 is supposed to make sure every command in xfs_io
is documented, but it was missing the inode command because
it's a common word, and depending on how man formatted the
page, the magic "   inode" string could show up and appear
to indicate that documentation is present for the command
when it's not actually there.

Change the test to inspect the manpage source directly, with
the assumption that each documented command will start
with ^\.B.*$COMMAND on a manpage line.

This handles a few different compressed manpage formats -
I don't know if anybody uses bz2 or xz, but hey.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/293