pci-test.c 595 B

1234567891011121314151617181920212223242526
  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. #include "qemu/osdep.h"
  10. #include "libqtest.h"
  11. #include "qemu/module.h"
  12. #include "libqos/qgraph.h"
  13. #include "libqos/pci.h"
  14. /* Tests only initialization so far. TODO: Replace with functional tests */
  15. static void nop(void *obj, void *data, QGuestAllocator *alloc)
  16. {
  17. }
  18. static void register_pci_test(void)
  19. {
  20. qos_add_test("nop", "pci-device", nop, NULL);
  21. }
  22. libqos_init(register_pci_test);