| * QTest testcase for e1000 NIC |
| * Copyright (c) 2013-2014 SUSE LINUX Products GmbH |
| * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| * See the COPYING file in the top-level directory. |
| /* Tests only initialization so far. TODO: Replace with functional tests */ |
| static void test_device(gconstpointer data) |
| const char *model = data; |
| args = g_strdup_printf("-device %s", model); |
| static const char *models[] = { |
| int main(int argc, char **argv) |
| g_test_init(&argc, &argv, NULL); |
| for (i = 0; i < ARRAY_SIZE(models); i++) { |
| path = g_strdup_printf("e1000/%s", models[i]); |
| qtest_add_data_func(path, models[i], test_device); |