mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
tests: check documented tool options also for inspector and p2v
This includes the additional tests, and the few needed fixes.
Followup of commit 08e27451a6.
This commit is contained in:
@@ -41,6 +41,7 @@ EXTRA_DIST = \
|
||||
expected-coreos.img.xml \
|
||||
expected-windows.img.xml \
|
||||
test-virt-inspector.sh \
|
||||
test-virt-inspector-docs.sh \
|
||||
test-xmllint.sh.in \
|
||||
virt-inspector.pod
|
||||
|
||||
@@ -107,7 +108,14 @@ stamp-virt-inspector.pod: virt-inspector.pod
|
||||
touch $@
|
||||
|
||||
TESTS_ENVIRONMENT = $(top_builddir)/run --test
|
||||
TESTS = test-virt-inspector.sh
|
||||
|
||||
TESTS = \
|
||||
test-virt-inspector-docs.sh
|
||||
|
||||
if ENABLE_APPLIANCE
|
||||
TESTS += \
|
||||
test-virt-inspector.sh
|
||||
endif ENABLE_APPLIANCE
|
||||
if HAVE_XMLLINT
|
||||
TESTS += test-xmllint.sh
|
||||
endif
|
||||
|
||||
22
inspector/test-virt-inspector-docs.sh
Executable file
22
inspector/test-virt-inspector-docs.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash -
|
||||
# libguestfs
|
||||
# Copyright (C) 2016 Red Hat Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
export LANG=C
|
||||
set -e
|
||||
|
||||
$srcdir/../podcheck.pl virt-inspector.pod virt-inspector
|
||||
@@ -74,9 +74,9 @@ force a particular format use the I<--format=..> option.
|
||||
|
||||
Add a remote disk. See L<guestfish(1)/ADDING REMOTE STORAGE>.
|
||||
|
||||
=item B<-c URI>
|
||||
=item B<-c> URI
|
||||
|
||||
=item B<--connect URI>
|
||||
=item B<--connect> URI
|
||||
|
||||
If using libvirt, connect to the given I<URI>. If omitted,
|
||||
then we connect to the default libvirt hypervisor.
|
||||
|
||||
@@ -26,6 +26,7 @@ EXTRA_DIST = \
|
||||
launch-virt-p2v.in \
|
||||
p2v.ks.in \
|
||||
p2v.service \
|
||||
test-virt-p2v-docs.sh \
|
||||
test-virt-p2v-pxe.sshd_config.in \
|
||||
test-virt-p2v-scp.sh \
|
||||
test-virt-p2v-ssh.sh \
|
||||
@@ -238,7 +239,8 @@ virt-p2v.img: \
|
||||
TESTS_ENVIRONMENT = $(top_builddir)/run --test
|
||||
|
||||
TESTS = \
|
||||
test-virt-p2v-cmdline.sh
|
||||
test-virt-p2v-cmdline.sh \
|
||||
test-virt-p2v-docs.sh
|
||||
|
||||
if ENABLE_APPLIANCE
|
||||
TESTS += \
|
||||
|
||||
22
p2v/test-virt-p2v-docs.sh
Executable file
22
p2v/test-virt-p2v-docs.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash -
|
||||
# libguestfs
|
||||
# Copyright (C) 2016 Red Hat Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
export LANG=C
|
||||
set -e
|
||||
|
||||
$srcdir/../podcheck.pl virt-p2v.pod virt-p2v
|
||||
Reference in New Issue
Block a user