hmp: Allow for error message hints on HMP
[qemu/ar7.git] / tests / spapr-phb-test.c
blobb629de475a1598d1b6ff88f13f0105abcfe3809b
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 */
10 #include <glib.h>
12 #include "libqtest.h"
14 #define TYPE_SPAPR_PCI_HOST_BRIDGE "spapr-pci-host-bridge"
16 /* Tests only initialization so far. TODO: Replace with functional tests */
17 static void test_phb_device(void)
21 int main(int argc, char **argv)
23 int ret;
25 g_test_init(&argc, &argv, NULL);
26 qtest_add_func("/spapr-phb/device", test_phb_device);
28 qtest_start("-device " TYPE_SPAPR_PCI_HOST_BRIDGE ",index=100");
30 ret = g_test_run();
32 qtest_end();
34 return ret;