mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
920ab8bdce
A new hidden command for virsh that will iterate over all command groups and commands and print help for every single one. This involves running vshCmddefOptParse so we can get an error if one of the command's option structure is invalid.
38 lines
1.0 KiB
Bash
Executable File
38 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# run virsh self-test to make sure command option structures are valid
|
|
|
|
# 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, see
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
. "$(dirname $0)/test-lib.sh"
|
|
|
|
fail=0
|
|
|
|
test_url=test:///default
|
|
|
|
test_intro "virsh-self-test"
|
|
$abs_top_builddir/tools/virsh -c $test_url self-test > /dev/null
|
|
status=$?
|
|
test_result 1 "virsh-self-test" $status
|
|
|
|
if test "$status" = "1" ; then
|
|
fail=1
|
|
fi
|
|
|
|
test_final $counter $fail
|
|
|
|
(exit $fail); exit $fail
|