Hi,
test-qemu-drive-libvirt.sh fails to run with libvirt < 1.1.3, because
the <test:runstate> attribute (used to keep the domains shut off) has
been introduced in that libvirt version.
Create a small (uninstalled) C tool which just does this version check,
to be used in all the tests (just one, so far) written in
shell/scripting language.
Pino Toscano (2):
tests: add a a simple libvirt-is-version test tool
tests/disks: skip test-qemu-drive-libvirt.sh if libvirt is < 1.1.3
.gitignore | 1 +
Makefile.am | 1 +
configure.ac | 1 +
tests/disks/test-qemu-drive-libvirt.sh | 10 +++++
tests/libvirt/Makefile.am | 32 ++++++++++++++
tests/libvirt/libvirt-is-version.c | 76 ++++++++++++++++++++++++++++++++++
6 files changed, 121 insertions(+)
create mode 100644 tests/libvirt/Makefile.am
create mode 100644 tests/libvirt/libvirt-is-version.c
--
1.8.3.1