1 #include "qemu/osdep.h"
4 static void test_modules_load(const void *data
)
7 const char **args
= (const char **)data
;
9 qts
= qtest_init(NULL
);
10 qtest_module_load(qts
, args
[0], args
[1]);
14 int main(int argc
, char *argv
[])
16 const char *modules
[] = {
20 #ifdef CONFIG_GLUSTERFS
23 #ifdef CONFIG_LIBISCSI
35 #ifdef CONFIG_AUDIO_ALSA
38 #ifdef CONFIG_AUDIO_OSS
41 #ifdef CONFIG_AUDIO_PA
44 #ifdef CONFIG_AUDIO_SDL
50 #if defined(CONFIG_GTK) && defined(CONFIG_VTE)
59 g_test_init(&argc
, &argv
, NULL
);
61 for (i
= 0; i
< G_N_ELEMENTS(modules
); i
+= 2) {
62 char *testname
= g_strdup_printf("/module/load/%s", modules
[i
+ 1]);
63 qtest_add_data_func(testname
, modules
+ i
, test_modules_load
);