1 #include "qemu/osdep.h"
2 #include "libqos/libqtest.h"
4 const char common_args
[] = "-nodefaults -machine none";
6 static void test_modules_load(const void *data
)
9 const char **args
= (const char **)data
;
11 qts
= qtest_init(common_args
);
12 qtest_module_load(qts
, args
[0], args
[1]);
16 int main(int argc
, char *argv
[])
18 const char *modules
[] = {
22 #ifdef CONFIG_GLUSTERFS
25 #ifdef CONFIG_LIBISCSI
37 #ifdef CONFIG_AUDIO_ALSA
40 #ifdef CONFIG_AUDIO_OSS
43 #ifdef CONFIG_AUDIO_PA
46 #ifdef CONFIG_AUDIO_SDL
52 #if defined(CONFIG_GTK) && defined(CONFIG_VTE)
58 #if defined(CONFIG_SPICE) && defined(CONFIG_GIO)
64 g_test_init(&argc
, &argv
, NULL
);
66 for (i
= 0; i
< G_N_ELEMENTS(modules
); i
+= 2) {
67 char *testname
= g_strdup_printf("/module/load/%s%s",
68 modules
[i
], modules
[i
+ 1]);
69 qtest_add_data_func(testname
, modules
+ i
, test_modules_load
);