2 * QTest testcase for e1000 NIC
4 * Copyright (c) 2013-2014 SUSE LINUX Products GmbH
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
10 #include "qemu/osdep.h"
13 /* Tests only initialization so far. TODO: Replace with functional tests */
14 static void test_device(gconstpointer data
)
16 const char *model
= data
;
20 args
= g_strdup_printf("-device %s", model
);
21 s
= qtest_start(args
);
29 static const char *models
[] = {
36 int main(int argc
, char **argv
)
40 g_test_init(&argc
, &argv
, NULL
);
42 for (i
= 0; i
< ARRAY_SIZE(models
); i
++) {
45 path
= g_strdup_printf("e1000/%s", models
[i
]);
46 qtest_add_data_func(path
, models
[i
], test_device
);