test-tool: add a documentation test

Add the podcheck.pl test, to make sure the documentation is in sync with
the available options.

Also fix the formats of options in the current POD, so it matches what
used already in other documentations, and what podcheck.pl expects.
This commit is contained in:
Pino Toscano
2018-06-27 12:32:27 +02:00
parent 5565cf767a
commit 53de4aeec5
3 changed files with 40 additions and 5 deletions

View File

@@ -17,7 +17,9 @@
include $(top_srcdir)/subdir-rules.mk
EXTRA_DIST = libguestfs-test-tool.pod
EXTRA_DIST = \
libguestfs-test-tool.pod \
test-libguestfs-test-tool-docs.sh
bin_PROGRAMS = libguestfs-test-tool
man_MANS = libguestfs-test-tool.1
@@ -56,5 +58,13 @@ stamp-libguestfs-test-tool.pod: libguestfs-test-tool.pod
$<
touch $@
# Tests.
TESTS_ENVIRONMENT = \
$(top_builddir)/run --test
TESTS = \
test-libguestfs-test-tool-docs.sh
check-valgrind:
$(top_builddir)/run --test @VG@ ./libguestfs-test-tool