ui: introduce enum to track VNC client framebuffer update request state
[qemu/ar7.git] / tests / eepro100-test.c
blobbdc8a67d570f6f16eec6f94049a96f0b9c5112f2
1 /*
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.
8 */
10 #include "qemu/osdep.h"
11 #include "libqtest.h"
13 static void test_device(gconstpointer data)
15 const char *model = data;
16 QTestState *s;
17 char *args;
19 args = g_strdup_printf("-device %s", model);
20 s = qtest_start(args);
22 /* Tests only initialization so far. TODO: Implement functional tests */
24 if (s) {
25 qtest_quit(s);
27 g_free(args);
30 static const char *models[] = {
31 "i82550",
32 "i82551",
33 "i82557a",
34 "i82557b",
35 "i82557c",
36 "i82558a",
37 "i82558b",
38 "i82559a",
39 "i82559b",
40 "i82559c",
41 "i82559er",
42 "i82562",
43 "i82801",
46 int main(int argc, char **argv)
48 int i;
50 g_test_init(&argc, &argv, NULL);
52 for (i = 0; i < ARRAY_SIZE(models); i++) {
53 char *path;
55 path = g_strdup_printf("eepro100/%s", models[i]);
56 qtest_add_data_func(path, models[i], test_device);
57 g_free(path);
60 return g_test_run();