]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: move nodedev xml2xml output to a separate dir
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 14 May 2021 21:28:58 +0000 (16:28 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 May 2021 08:59:45 +0000 (10:59 +0200)
commit86ecc06c068fadb3c681a502b82cbcb8a334f194
tree36dadff16c2c378584ed8b473bf6597aa389bef0
parent0ad0204ce7f7b512ee349dfbf5cdd751ab0adc1c
test: move nodedev xml2xml output to a separate dir

Currently, we're loading and parsing the xml from the input file, and
then formatting it and then comparing it directly back to the input
file. This works for now, but is severely limiting as it relies on the
input file being fully-specified and in the exact order as the output
xml format.

If optional elements are ommitted in the input XML, the output xml
may include default values for the ommitted elements and thus the output
will not match the input.

In order to allow more flexibility in testing, save the expected output
to a seprate 'out' directory similar to what most of the other xml2xml
tests are already doing.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
39 files changed:
tests/nodedevxml2xmlout/DVD_GCC_4247N.xml [new symlink]
tests/nodedevxml2xmlout/DVD_with_media.xml [new symlink]
tests/nodedevxml2xmlout/ap_07_0038.xml [new symlink]
tests/nodedevxml2xmlout/ap_card07.xml [new symlink]
tests/nodedevxml2xmlout/ap_matrix.xml [new symlink]
tests/nodedevxml2xmlout/ap_matrix_mdev_types.xml [new symlink]
tests/nodedevxml2xmlout/ccw_0_0_ffff.xml [new symlink]
tests/nodedevxml2xmlout/computer.xml [new symlink]
tests/nodedevxml2xmlout/css_0_0_fffe_mdev_types.xml [new symlink]
tests/nodedevxml2xmlout/css_0_0_ffff.xml [new symlink]
tests/nodedevxml2xmlout/drm_renderD129.xml [new symlink]
tests/nodedevxml2xmlout/mdev_3627463d_b7f0_4fea_b468_f1da537d301b.xml [new symlink]
tests/nodedevxml2xmlout/mdev_ee0b88c4_f554_4dc1_809d_b2a01e8e48ad.xml [new symlink]
tests/nodedevxml2xmlout/net_00_13_02_b9_f9_d3.xml [new symlink]
tests/nodedevxml2xmlout/net_00_15_58_2f_e9_55.xml [new symlink]
tests/nodedevxml2xmlout/pci_0000_00_02_0_header_type.xml [new symlink]
tests/nodedevxml2xmlout/pci_0000_00_1c_0_header_type.xml [new symlink]
tests/nodedevxml2xmlout/pci_0000_02_10_7_mdev_types.xml [new symlink]
tests/nodedevxml2xmlout/pci_0000_02_10_7_sriov.xml [new symlink]
tests/nodedevxml2xmlout/pci_0000_02_10_7_sriov_pf_vfs_all.xml [new symlink]
tests/nodedevxml2xmlout/pci_0000_02_10_7_sriov_pf_vfs_all_header_type.xml [new symlink]
tests/nodedevxml2xmlout/pci_0000_02_10_7_sriov_vfs.xml [new symlink]
tests/nodedevxml2xmlout/pci_0000_02_10_7_sriov_zero_vfs_max_count.xml [new symlink]
tests/nodedevxml2xmlout/pci_1002_71c4.xml [new symlink]
tests/nodedevxml2xmlout/pci_8086_0c0c_snd_hda_intel.xml [new symlink]
tests/nodedevxml2xmlout/pci_8086_10c9_sriov_pf.xml [new symlink]
tests/nodedevxml2xmlout/pci_8086_27c5_scsi_host.xml [new symlink]
tests/nodedevxml2xmlout/pci_8086_27c5_scsi_host_0.xml [new symlink]
tests/nodedevxml2xmlout/pci_8086_27c5_scsi_host_0_unique_id.xml [new symlink]
tests/nodedevxml2xmlout/pci_8086_27c5_scsi_host_scsi_device_lun0.xml [new symlink]
tests/nodedevxml2xmlout/pci_8086_27c5_scsi_host_scsi_host.xml [new symlink]
tests/nodedevxml2xmlout/pci_8086_4238_pcie_wireless.xml [new symlink]
tests/nodedevxml2xmlout/scsi_target0_0_0.xml [new symlink]
tests/nodedevxml2xmlout/scsi_target1_0_0.xml [new symlink]
tests/nodedevxml2xmlout/storage_serial_3600c0ff000d7a2a5d463ff4902000000.xml [new symlink]
tests/nodedevxml2xmlout/storage_serial_SATA_HTS721010G9SA00_MPCZ12Y0GNGWSE.xml [new symlink]
tests/nodedevxml2xmlout/usb_device_1d6b_1_0000_00_1d_0.xml [new symlink]
tests/nodedevxml2xmlout/usb_device_1d6b_1_0000_00_1d_0_if0.xml [new symlink]
tests/nodedevxml2xmltest.c