From: John Ferlan Date: Tue, 24 Jan 2017 18:49:35 +0000 (-0500) Subject: tests: Add createVHBAByNodeDevice-parent-wwn to fchosttest X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=19ff43612c1c633837fa72a8150099f27974777e;p=libvirt.git tests: Add createVHBAByNodeDevice-parent-wwn to fchosttest Add a test that allows providing the parent wwnn/wwpn in the input XML in order to create the vHBA. --- diff --git a/tests/fchosttest.c b/tests/fchosttest.c index 15cda753a0..d083104dcb 100644 --- a/tests/fchosttest.c +++ b/tests/fchosttest.c @@ -53,6 +53,17 @@ static const char test8_xml[] = " " ""; +/* virNodeDeviceCreateXML using "" to find + * the vport capable HBA */ +static const char test9_xml[] = +"" +" " +" " +" " +" " +" " +""; + /* Test virIsVHBACapable */ static int test1(const void *data ATTRIBUTE_UNUSED) @@ -282,6 +293,9 @@ mymain(void) if (virTestRun("manageVHBAByNodeDevice-no-parent", manageVHBAByNodeDevice, test8_xml) < 0) ret = -1; + if (virTestRun("manageVHBAByNodeDevice-parent-wwn", manageVHBAByNodeDevice, + test9_xml) < 0) + ret = -1; cleanup: VIR_FREE(fchost_prefix);