xref: /openbmc/qemu/tests/qtest/spapr-phb-test.c (revision 907b5105)
11e8a1faeSThomas Huth /*
21e8a1faeSThomas Huth  * QTest testcase for SPAPR PHB
31e8a1faeSThomas Huth  *
41e8a1faeSThomas Huth  * Authors:
51e8a1faeSThomas Huth  *  Alexey Kardashevskiy <aik@ozlabs.ru>
61e8a1faeSThomas Huth  *
71e8a1faeSThomas Huth  * This work is licensed under the terms of the GNU GPL, version 2 or later.
81e8a1faeSThomas Huth  * See the COPYING file in the top-level directory.
91e8a1faeSThomas Huth  */
101e8a1faeSThomas Huth 
111e8a1faeSThomas Huth #include "qemu/osdep.h"
12*907b5105SMarc-André Lureau #include "libqtest.h"
131e8a1faeSThomas Huth #include "qemu/module.h"
141e8a1faeSThomas Huth #include "libqos/qgraph.h"
151e8a1faeSThomas Huth 
161e8a1faeSThomas Huth /* Tests only initialization so far. TODO: Replace with functional tests,
171e8a1faeSThomas Huth  * for example by producing pci-bus.
181e8a1faeSThomas Huth  */
test_phb_device(void * obj,void * data,QGuestAllocator * alloc)191e8a1faeSThomas Huth static void test_phb_device(void *obj, void *data, QGuestAllocator *alloc)
201e8a1faeSThomas Huth {
211e8a1faeSThomas Huth }
221e8a1faeSThomas Huth 
register_phb_test(void)231e8a1faeSThomas Huth static void register_phb_test(void)
241e8a1faeSThomas Huth {
251e8a1faeSThomas Huth     qos_add_test("spapr-phb-test", "ppc64/pseries",
261e8a1faeSThomas Huth                  test_phb_device, &(QOSGraphTestOptions) {
271e8a1faeSThomas Huth                      .edge.before_cmd_line = "-device spapr-pci-host-bridge"
281e8a1faeSThomas Huth                                              ",index=30",
291e8a1faeSThomas Huth                  });
301e8a1faeSThomas Huth }
311e8a1faeSThomas Huth 
321e8a1faeSThomas Huth libqos_init(register_phb_test);
33