2014-02-10 04:52:56 +01:00
|
|
|
/*
|
|
|
|
* QTest testcase for SPAPR PHB
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Alexey Kardashevskiy <aik@ozlabs.ru>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*/
|
|
|
|
|
2018-08-17 13:35:12 +02:00
|
|
|
#include "qemu/osdep.h"
|
2020-08-04 20:00:40 +02:00
|
|
|
#include "libqos/libqtest.h"
|
2019-05-23 16:35:07 +02:00
|
|
|
#include "qemu/module.h"
|
2018-08-17 13:35:12 +02:00
|
|
|
#include "libqos/qgraph.h"
|
2014-02-10 04:52:56 +01:00
|
|
|
|
2018-08-17 13:35:12 +02:00
|
|
|
/* Tests only initialization so far. TODO: Replace with functional tests,
|
|
|
|
* for example by producing pci-bus.
|
|
|
|
*/
|
|
|
|
static void test_phb_device(void *obj, void *data, QGuestAllocator *alloc)
|
2014-02-10 04:52:56 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-08-17 13:35:12 +02:00
|
|
|
static void register_phb_test(void)
|
2014-02-10 04:52:56 +01:00
|
|
|
{
|
2018-08-17 13:35:12 +02:00
|
|
|
qos_add_test("spapr-phb-test", "ppc64/pseries",
|
|
|
|
test_phb_device, &(QOSGraphTestOptions) {
|
|
|
|
.edge.before_cmd_line = "-device spapr-pci-host-bridge"
|
|
|
|
",index=30",
|
|
|
|
});
|
2014-02-10 04:52:56 +01:00
|
|
|
}
|
2018-08-17 13:35:12 +02:00
|
|
|
|
|
|
|
libqos_init(register_phb_test);
|