summaryrefslogtreecommitdiff
path: root/tests/nodedevxml2xmltest.c
diff options
context:
space:
mode:
authorMartin Kletzander <mkletzan@redhat.com>2016-04-03 21:01:06 +0200
committerMartin Kletzander <mkletzan@redhat.com>2016-05-02 15:46:23 +0200
commit541f21afa609a3698908fa21a6e78bcd8dbdfcc9 (patch)
tree3f3a22c3c56820ca5711b5b71ca7ee63a31b4737 /tests/nodedevxml2xmltest.c
parent9840761fb4d43f7379a3e2f7116420f5e5cc17df (diff)
downloadlibvirt-541f21afa609a3698908fa21a6e78bcd8dbdfcc9.tar.gz
conf: Parse more of our nodedev XML
We were lacking tests that are checking for the completeness of our nodedev XMLs and also whether we output properly formatted ones. This patch adds parsing for the capability elements inside the <capability type='pci'> element. Also bunch of tests are added to show everything works properly. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Diffstat (limited to 'tests/nodedevxml2xmltest.c')
-rw-r--r--tests/nodedevxml2xmltest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/nodedevxml2xmltest.c b/tests/nodedevxml2xmltest.c
index 96041f50b9..0ed06fdff3 100644
--- a/tests/nodedevxml2xmltest.c
+++ b/tests/nodedevxml2xmltest.c
@@ -91,7 +91,14 @@ mymain(void)
DO_TEST("usb_device_1d6b_1_0000_00_1d_0");
DO_TEST("pci_8086_4238_pcie_wireless");
DO_TEST("pci_8086_0c0c_snd_hda_intel");
+ DO_TEST("pci_0000_00_02_0_header_type");
+ DO_TEST("pci_0000_00_1c_0_header_type");
DO_TEST("scsi_target0_0_0");
+ DO_TEST("pci_0000_02_10_7_sriov");
+ DO_TEST("pci_0000_02_10_7_sriov_vfs");
+ DO_TEST("pci_0000_02_10_7_sriov_zero_vfs_max_count");
+ DO_TEST("pci_0000_02_10_7_sriov_pf_vfs_all");
+ DO_TEST("pci_0000_02_10_7_sriov_pf_vfs_all_header_type");
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}