]> xenbits.xensource.com Git - libvirt.git/commitdiff
virdrivermoduletest: Test all the modules
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 22 Aug 2014 09:37:50 +0000 (11:37 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 27 Aug 2014 05:41:48 +0000 (07:41 +0200)
Even though we kept adding new and new modules (e.g. vbox or bhyve)
the test wasn't updated. Do that now. Moreover, while it's not
crucial, it's nice to reorder test cases to match the order in which
the daemon loads the modules.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/virdrivermoduletest.c

index 840fc280f6b5e06a97c9d62cec16f7f4de6dc2cf..d823ad9737c60a800e4beebcf108830a707d0885 100644 (file)
@@ -71,6 +71,9 @@ mymain(void)
 #else
 # define USE_NETWORK NULL
 #endif
+#ifdef WITH_INTERFACE
+    TEST("interface", NULL);
+#endif
 #ifdef WITH_STORAGE
     TEST("storage", NULL);
 #endif
@@ -83,8 +86,11 @@ mymain(void)
 #ifdef WITH_NWFILTER
     TEST("nwfilter", NULL);
 #endif
-#ifdef WITH_INTERFACE
-    TEST("interface", NULL);
+#ifdef WITH_XEN
+    TEST("xen", NULL);
+#endif
+#ifdef WITH_LIBXL
+    TEST("libxl", NULL);
 #endif
 #ifdef WITH_QEMU
     TEST("qemu", USE_NETWORK);
@@ -95,11 +101,11 @@ mymain(void)
 #ifdef WITH_UML
     TEST("uml", NULL);
 #endif
-#ifdef WITH_XEN
-    TEST("xen", NULL);
+#ifdef WITH_VBOX
+    TEST("vbox", NULL);
 #endif
-#ifdef WITH_LIBXL
-    TEST("libxl", NULL);
+#ifdef WITH_BHYVE
+    TEST("bhyve", NULL);
 #endif
 
     return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;