[PATCH v2 2/2] tests: nodedevxml2xml: add test for SCSI target

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

 



Let's add a test for SCSI target nodedev devices.

Signed-off-by: Bjoern Walk <bwalk@xxxxxxxxxxxxxxxxxx>
---
 tests/nodedevschemadata/scsi_target0_0_0.xml | 7 +++++++
 tests/nodedevxml2xmltest.c                   | 1 +
 2 files changed, 8 insertions(+)
 create mode 100644 tests/nodedevschemadata/scsi_target0_0_0.xml

diff --git a/tests/nodedevschemadata/scsi_target0_0_0.xml b/tests/nodedevschemadata/scsi_target0_0_0.xml
new file mode 100644
index 0000000..b83c96d
--- /dev/null
+++ b/tests/nodedevschemadata/scsi_target0_0_0.xml
@@ -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>
diff --git a/tests/nodedevxml2xmltest.c b/tests/nodedevxml2xmltest.c
index f519bce..246cec7 100644
--- a/tests/nodedevxml2xmltest.c
+++ b/tests/nodedevxml2xmltest.c
@@ -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;
 }
-- 
2.6.5

--
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]