]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemumonitorjson: Old and empty test case for node name detection v3.6.0-rc2
authorPeter Krempa <pkrempa@redhat.com>
Wed, 26 Jul 2017 09:06:51 +0000 (11:06 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 28 Jul 2017 15:59:06 +0000 (17:59 +0200)
commit772a6e36a5cbed4992315c4a8325947020f7ec70
treeb18e54892f4ab1279f12ae0f57fe89456d8924c9
parent8b3a0b28ba2d62a90d15700540c30111f412d8a9
tests: qemumonitorjson: Old and empty test case for node name detection

Prior to qemu 2.5 the node names would not be generated, thus would be
missing from 'query-blockstats' and 'query-named-block-nodes'. Test that
the code correctly detects nothing.

Additionally make sure that a VM without disks does not cause problems.

The test case change is necessary as our test file checker does not play
well with empty files.
tests/qemumonitorjsondata/qemumonitorjson-nodename-empty-blockstats.json [new file with mode: 0644]
tests/qemumonitorjsondata/qemumonitorjson-nodename-empty-named-nodes.json [new file with mode: 0644]
tests/qemumonitorjsondata/qemumonitorjson-nodename-empty.result [new file with mode: 0644]
tests/qemumonitorjsondata/qemumonitorjson-nodename-old-blockstats.json [new file with mode: 0644]
tests/qemumonitorjsondata/qemumonitorjson-nodename-old-named-nodes.json [new file with mode: 0644]
tests/qemumonitorjsondata/qemumonitorjson-nodename-old.result [new file with mode: 0644]
tests/qemumonitorjsontest.c