]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: nodedevxml2xml: add test for SCSI target
authorBjoern Walk <bwalk@linux.vnet.ibm.com>
Mon, 21 Mar 2016 14:49:30 +0000 (15:49 +0100)
committerCole Robinson <crobinso@redhat.com>
Mon, 21 Mar 2016 16:06:49 +0000 (12:06 -0400)
Let's add a test for SCSI target nodedev devices.

Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
tests/nodedevschemadata/scsi_target0_0_0.xml [new file with mode: 0644]
tests/nodedevxml2xmltest.c

diff --git a/tests/nodedevschemadata/scsi_target0_0_0.xml b/tests/nodedevschemadata/scsi_target0_0_0.xml
new file mode 100644 (file)
index 0000000..b83c96d
--- /dev/null
@@ -0,0 +1,7 @@
+<device>
+  <name>scsi_target0_0_0</name>
+  <parent>scsi_host0</parent>
+  <capability type='scsi_target'>
+    <target>target0:0:0</target>
+  </capability>
+</device>
index f519bce6345f2c0b2939405ca73628bff6680c27..246cec71017850163d6c0d4c58fcc46bff311a6b 100644 (file)
@@ -93,6 +93,7 @@ mymain(void)
     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");
 
     return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }