Paolo Bonzini | db1f266 | 2018-10-05 19:00:19 +0200 | [diff] [blame] | 1 | /* |
| 2 | * QTest testcase for PCI |
| 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" |
Marc-André Lureau | 907b510 | 2022-03-30 13:39:05 +0400 | [diff] [blame] | 11 | #include "libqtest.h" |
Markus Armbruster | 0b8fa32 | 2019-05-23 16:35:07 +0200 | [diff] [blame] | 12 | #include "qemu/module.h" |
Paolo Bonzini | db1f266 | 2018-10-05 19:00:19 +0200 | [diff] [blame] | 13 | #include "libqos/qgraph.h" |
| 14 | #include "libqos/pci.h" |
| 15 | |
| 16 | /* Tests only initialization so far. TODO: Replace with functional tests */ |
| 17 | static void nop(void *obj, void *data, QGuestAllocator *alloc) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | static void register_pci_test(void) |
| 22 | { |
| 23 | qos_add_test("nop", "pci-device", nop, NULL); |
| 24 | } |
| 25 | |
| 26 | libqos_init(register_pci_test); |