]> xenbits.xensource.com Git - libvirt.git/commitdiff
Make ZFS storage pool XML tests optional
authorGary R Hook <grhookatwork@gmail.com>
Fri, 16 Jan 2015 17:38:32 +0000 (17:38 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 19 Jan 2015 14:03:01 +0000 (15:03 +0100)
Do not run ZFS tests when ZFS is unsupported in the environment.

The recent patch b4af40226d09adeaf9e33a1d6594c4e8ce7f771d adds tests
to storagepoolxml2xmltest for the optional ZFS feature. When ZFS is
not included in the configuration these tests should not / cannot be
run. Modify the test source file to check for use of the feature and
compile in the tests accordingly.

Signed-off-by: Gary R Hook <gary.hook@nimboxx.com>
tests/storagepoolxml2xmltest.c

index 52e2193e8392443c26b1c6c7dfb5a65a0142d4d2..270f75d982ee1968294bc2a701f6e5c29f6bdf03 100644 (file)
@@ -106,8 +106,10 @@ mymain(void)
     DO_TEST("pool-gluster");
     DO_TEST("pool-gluster-sub");
     DO_TEST("pool-scsi-type-scsi-host-stable");
+#ifdef WITH_STORAGE_ZFS
     DO_TEST("pool-zfs");
     DO_TEST("pool-zfs-sourcedev");
+#endif
 
     return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }