2 * QTest testcase for eepro100 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.
13 #include "qemu/osdep.h"
15 static void test_device(gconstpointer data)
17 const char *model = data;
21 args = g_strdup_printf("-device %s", model);
22 s = qtest_start(args);
24 /* Tests only initialization so far. TODO: Implement functional tests */
32 static const char *models[] = {
48 int main(int argc, char **argv)
52 g_test_init(&argc, &argv, NULL);
54 for (i = 0; i < ARRAY_SIZE(models); i++) {
57 path = g_strdup_printf("/%s/eepro100/%s",
58 qtest_get_arch(), models[i]);
59 g_test_add_data_func(path, models[i], test_device);