xref: /openbmc/qemu/tests/qtest/pci-test.c (revision 907b5105)
11e8a1faeSThomas Huth /*
21e8a1faeSThomas Huth  * QTest testcase for PCI
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 Huth static void nop(void *obj, void *data, QGuestAllocator *alloc)
181e8a1faeSThomas Huth {
191e8a1faeSThomas Huth }
201e8a1faeSThomas Huth 
register_pci_test(void)211e8a1faeSThomas Huth static void register_pci_test(void)
221e8a1faeSThomas Huth {
231e8a1faeSThomas Huth     qos_add_test("nop", "pci-device", nop, NULL);
241e8a1faeSThomas Huth }
251e8a1faeSThomas Huth 
261e8a1faeSThomas Huth libqos_init(register_pci_test);
27