Re: [PATCH 11/11] tests: qemublock: Add testing of 'blockdev-create' generators

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 04, 2019 at 04:26:35PM +0200, Peter Krempa wrote:
Test the output against the schema and also against what we expect.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
tests/qemublocktest.c                         | 170 ++++++++++++++++++
.../imagecreate/luks-encopts.json             |  19 ++
.../imagecreate/luks-encopts.xml              |  16 ++
.../imagecreate/luks-noopts.json              |  14 ++
.../imagecreate/luks-noopts.xml               |  14 ++
.../imagecreate/network-gluster-qcow2.json    |  28 +++
.../imagecreate/network-gluster-qcow2.xml     |  13 ++
.../imagecreate/network-rbd-qcow2.json        |  26 +++
.../imagecreate/network-rbd-qcow2.xml         |  13 ++
.../imagecreate/network-sheepdog-qcow2.json   |  20 +++
.../imagecreate/network-sheepdog-qcow2.xml    |  12 ++
.../imagecreate/network-ssh-qcow2.json        |  19 ++
.../imagecreate/network-ssh-qcow2.xml         |  12 ++
.../imagecreate/qcow2-backing-luks.json       |  15 ++
.../imagecreate/qcow2-backing-luks.xml        |   1 +
.../imagecreate/qcow2-backing-raw-nbd.json    |  15 ++
.../imagecreate/qcow2-backing-raw-nbd.xml     |   1 +
.../imagecreate/qcow2-backing-raw.json        |  15 ++
.../imagecreate/qcow2-backing-raw.xml         |   1 +
.../qcow2-luks-encopts-backing.json           |  24 +++
.../qcow2-luks-encopts-backing.xml            |   1 +
.../imagecreate/qcow2-luks-encopts.json       |  22 +++
.../imagecreate/qcow2-luks-encopts.xml        |  16 ++
.../imagecreate/qcow2-luks-noopts.json        |  17 ++
.../imagecreate/qcow2-luks-noopts.xml         |  14 ++
.../qemublocktestdata/imagecreate/qcow2.json  |  13 ++
tests/qemublocktestdata/imagecreate/qcow2.xml |  11 ++
.../imagecreate/raw-nbd.json                  |   4 +
.../qemublocktestdata/imagecreate/raw-nbd.xml |  12 ++
tests/qemublocktestdata/imagecreate/raw.json  |   9 +
tests/qemublocktestdata/imagecreate/raw.xml   |  11 ++
31 files changed, 578 insertions(+)
create mode 100644 tests/qemublocktestdata/imagecreate/luks-encopts.json
create mode 100644 tests/qemublocktestdata/imagecreate/luks-encopts.xml
create mode 100644 tests/qemublocktestdata/imagecreate/luks-noopts.json
create mode 100644 tests/qemublocktestdata/imagecreate/luks-noopts.xml
create mode 100644 tests/qemublocktestdata/imagecreate/network-gluster-qcow2.json
create mode 100644 tests/qemublocktestdata/imagecreate/network-gluster-qcow2.xml
create mode 100644 tests/qemublocktestdata/imagecreate/network-rbd-qcow2.json
create mode 100644 tests/qemublocktestdata/imagecreate/network-rbd-qcow2.xml
create mode 100644 tests/qemublocktestdata/imagecreate/network-sheepdog-qcow2.json
create mode 100644 tests/qemublocktestdata/imagecreate/network-sheepdog-qcow2.xml
create mode 100644 tests/qemublocktestdata/imagecreate/network-ssh-qcow2.json
create mode 100644 tests/qemublocktestdata/imagecreate/network-ssh-qcow2.xml
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2-backing-luks.json
create mode 120000 tests/qemublocktestdata/imagecreate/qcow2-backing-luks.xml
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2-backing-raw-nbd.json
create mode 120000 tests/qemublocktestdata/imagecreate/qcow2-backing-raw-nbd.xml
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2-backing-raw.json
create mode 120000 tests/qemublocktestdata/imagecreate/qcow2-backing-raw.xml
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2-luks-encopts-backing.json
create mode 120000 tests/qemublocktestdata/imagecreate/qcow2-luks-encopts-backing.xml
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2-luks-encopts.json
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2-luks-encopts.xml
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2-luks-noopts.json
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2-luks-noopts.xml
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2.json
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2.xml
create mode 100644 tests/qemublocktestdata/imagecreate/raw-nbd.json
create mode 100644 tests/qemublocktestdata/imagecreate/raw-nbd.xml
create mode 100644 tests/qemublocktestdata/imagecreate/raw.json
create mode 100644 tests/qemublocktestdata/imagecreate/raw.xml


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux