qtest: rename qtest_qmp_receive to qtest_qmp_receive_dict
[qemu/ar7.git] / tests / qtest / spapr-phb-test.c
blobea8d59650721533b23e3c8836079b2834be314bf
1 /*
2 * QTest testcase for SPAPR PHB
4 * Authors:
5 * Alexey Kardashevskiy <aik@ozlabs.ru>
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 */
11 #include "qemu/osdep.h"
12 #include "libqos/libqtest.h"
13 #include "qemu/module.h"
14 #include "libqos/qgraph.h"
16 /* Tests only initialization so far. TODO: Replace with functional tests,
17 * for example by producing pci-bus.
19 static void test_phb_device(void *obj, void *data, QGuestAllocator *alloc)
23 static void register_phb_test(void)
25 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 });
32 libqos_init(register_phb_test);