1 #include "qemu/osdep.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
[] = {
25 #ifdef CONFIG_GLUSTERFS
28 #ifdef CONFIG_LIBISCSI
40 #ifdef CONFIG_AUDIO_ALSA
43 #ifdef CONFIG_AUDIO_OSS
46 #ifdef CONFIG_AUDIO_PA
49 #ifdef CONFIG_AUDIO_SDL
55 #if defined(CONFIG_GTK) && defined(CONFIG_VTE)
61 #if defined(CONFIG_SPICE) && defined(CONFIG_GIO)
67 g_test_init(&argc
, &argv
, NULL
);
69 for (i
= 0; i
< G_N_ELEMENTS(modules
); i
+= 2) {
70 char *testname
= g_strdup_printf("/module/load/%s%s",
71 modules
[i
], modules
[i
+ 1]);
72 qtest_add_data_func(testname
, modules
+ i
, test_modules_load
);