11e8a1faeSThomas Huth /* 21e8a1faeSThomas Huth * QTest testcase for virtio 31e8a1faeSThomas Huth * 41e8a1faeSThomas Huth * Copyright (c) 2018 Red Hat, Inc. 51e8a1faeSThomas Huth * 61e8a1faeSThomas Huth * This work is licensed under the terms of the GNU GPL, version 2 or later. 71e8a1faeSThomas Huth * See the COPYING file in the top-level directory. 81e8a1faeSThomas Huth */ 91e8a1faeSThomas Huth 101e8a1faeSThomas Huth #include "qemu/osdep.h" 11*907b5105SMarc-André Lureau #include "libqtest.h" 121e8a1faeSThomas Huth #include "qemu/module.h" 131e8a1faeSThomas Huth #include "libqos/qgraph.h" 141e8a1faeSThomas Huth #include "libqos/pci.h" 151e8a1faeSThomas Huth 161e8a1faeSThomas Huth /* Tests only initialization so far. TODO: Replace with functional tests */ nop(void * obj,void * data,QGuestAllocator * alloc)171e8a1faeSThomas Huthstatic void nop(void *obj, void *data, QGuestAllocator *alloc) 181e8a1faeSThomas Huth { 191e8a1faeSThomas Huth } 201e8a1faeSThomas Huth register_virtio_test(void)211e8a1faeSThomas Huthstatic void register_virtio_test(void) 221e8a1faeSThomas Huth { 231e8a1faeSThomas Huth qos_add_test("nop", "virtio", nop, NULL); 241e8a1faeSThomas Huth } 251e8a1faeSThomas Huth 261e8a1faeSThomas Huth libqos_init(register_virtio_test); 27