virtio-test.c (981c9b88e674408a1579ca3aa8d42770e3b689de) | virtio-test.c (a2ce7dbd917a18408cf4bfd132578b46c2752a72) |
---|---|
1/* 2 * QTest testcase for virtio 3 * 4 * Copyright (c) 2018 Red Hat, Inc. 5 * 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 */ 9 10#include "qemu/osdep.h" | 1/* 2 * QTest testcase for virtio 3 * 4 * Copyright (c) 2018 Red Hat, Inc. 5 * 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 */ 9 10#include "qemu/osdep.h" |
11#include "libqtest.h" | 11#include "libqos/libqtest.h" |
12#include "qemu/module.h" 13#include "libqos/qgraph.h" 14#include "libqos/pci.h" 15 16/* Tests only initialization so far. TODO: Replace with functional tests */ 17static void nop(void *obj, void *data, QGuestAllocator *alloc) 18{ 19} 20 21static void register_virtio_test(void) 22{ 23 qos_add_test("nop", "virtio", nop, NULL); 24} 25 26libqos_init(register_virtio_test); | 12#include "qemu/module.h" 13#include "libqos/qgraph.h" 14#include "libqos/pci.h" 15 16/* Tests only initialization so far. TODO: Replace with functional tests */ 17static void nop(void *obj, void *data, QGuestAllocator *alloc) 18{ 19} 20 21static void register_virtio_test(void) 22{ 23 qos_add_test("nop", "virtio", nop, NULL); 24} 25 26libqos_init(register_virtio_test); |