blob: 093dc22f2f41d707ffcdbe3af6a8c897669ea0b6 [file] [log] [blame]
Alexey Kardashevskiy04e9a202014-02-10 14:52:56 +11001/*
2 * QTest testcase for SPAPR PHB
3 *
4 * Authors:
5 * Alexey Kardashevskiy <aik@ozlabs.ru>
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.
9 */
Emanuele Giuseppe Espositodca06302018-08-17 13:35:12 +020010
Peter Maydell681c28a2016-02-08 18:08:51 +000011#include "qemu/osdep.h"
Marc-André Lureau907b5102022-03-30 13:39:05 +040012#include "libqtest.h"
Markus Armbruster0b8fa322019-05-23 16:35:07 +020013#include "qemu/module.h"
Emanuele Giuseppe Espositodca06302018-08-17 13:35:12 +020014#include "libqos/qgraph.h"
Alexey Kardashevskiy04e9a202014-02-10 14:52:56 +110015
Emanuele Giuseppe Espositodca06302018-08-17 13:35:12 +020016/* Tests only initialization so far. TODO: Replace with functional tests,
17 * for example by producing pci-bus.
18 */
19static void test_phb_device(void *obj, void *data, QGuestAllocator *alloc)
Alexey Kardashevskiy04e9a202014-02-10 14:52:56 +110020{
21}
22
Emanuele Giuseppe Espositodca06302018-08-17 13:35:12 +020023static void register_phb_test(void)
Alexey Kardashevskiy04e9a202014-02-10 14:52:56 +110024{
Emanuele Giuseppe Espositodca06302018-08-17 13:35:12 +020025 qos_add_test("spapr-phb-test", "ppc64/pseries",
26 test_phb_device, &(QOSGraphTestOptions) {
27 .edge.before_cmd_line = "-device spapr-pci-host-bridge"
28 ",index=30",
29 });
Alexey Kardashevskiy04e9a202014-02-10 14:52:56 +110030}
Emanuele Giuseppe Espositodca06302018-08-17 13:35:12 +020031
32libqos_init(register_phb_test);