mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
tests: Self test virt-admin
Just like we are running 'virsh self-test' from within our test suite, we should run 'virt-admin self-test' too. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d920090c72
commit
4a457adda6
1
.gitignore
vendored
1
.gitignore
vendored
@ -169,6 +169,7 @@
|
|||||||
/tests/qemucapsprobe
|
/tests/qemucapsprobe
|
||||||
!/tests/virsh-self-test
|
!/tests/virsh-self-test
|
||||||
!/tests/virt-aa-helper-test
|
!/tests/virt-aa-helper-test
|
||||||
|
!/tests/virt-admin-self-test
|
||||||
/tests/objectlocking
|
/tests/objectlocking
|
||||||
/tests/objectlocking-files.txt
|
/tests/objectlocking-files.txt
|
||||||
/tests/objectlocking.cm[ix]
|
/tests/objectlocking.cm[ix]
|
||||||
|
@ -369,6 +369,7 @@ libvirtd_test_scripts = \
|
|||||||
virsh-read-non-seekable \
|
virsh-read-non-seekable \
|
||||||
virsh-schedinfo \
|
virsh-schedinfo \
|
||||||
virsh-self-test \
|
virsh-self-test \
|
||||||
|
virt-admin-self-test \
|
||||||
virsh-start \
|
virsh-start \
|
||||||
virsh-undefine \
|
virsh-undefine \
|
||||||
virsh-uriprecedence \
|
virsh-uriprecedence \
|
||||||
|
@ -21,14 +21,25 @@
|
|||||||
|
|
||||||
fail=0
|
fail=0
|
||||||
|
|
||||||
test_url=test:///default
|
basename=$(basename $0)
|
||||||
|
|
||||||
test_intro "virsh-self-test"
|
if test "x$basename" = "xvirsh-self-test" ; then
|
||||||
$abs_top_builddir/tools/virsh -c $test_url self-test > /dev/null
|
binary=virsh
|
||||||
|
extra_args="-c test:///default"
|
||||||
|
elif test "x$basename" = "xvirt-admin-self-test" ; then
|
||||||
|
binary=virt-admin
|
||||||
|
extra_args=""
|
||||||
|
else
|
||||||
|
echo "Unknown binary: $basename";
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
test_intro "$0"
|
||||||
|
$abs_top_builddir/tools/${binary} ${extra_args} self-test > /dev/null
|
||||||
status=$?
|
status=$?
|
||||||
test_result 1 "virsh-self-test" $status
|
test_result 1 "$0" ${status}
|
||||||
|
|
||||||
if test "$status" != "0" ; then
|
if test "${status}" != "0" ; then
|
||||||
fail=1
|
fail=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
1
tests/virt-admin-self-test
Symbolic link
1
tests/virt-admin-self-test
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
./virsh-self-test
|
@ -1242,6 +1242,7 @@ static const vshCmdDef vshAdmCmds[] = {
|
|||||||
VSH_CMD_HELP,
|
VSH_CMD_HELP,
|
||||||
VSH_CMD_PWD,
|
VSH_CMD_PWD,
|
||||||
VSH_CMD_QUIT,
|
VSH_CMD_QUIT,
|
||||||
|
VSH_CMD_SELF_TEST,
|
||||||
{.name = "uri",
|
{.name = "uri",
|
||||||
.handler = cmdURI,
|
.handler = cmdURI,
|
||||||
.opts = NULL,
|
.opts = NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user