spapr_cpu_core: drop reference on ICP object during CPU realization
[qemu/ar7.git] / tests / virtio-console-test.c
blob1c3de072f4e82d62bb68134881d67fe40db5f65d
1 /*
2 * QTest testcase for VirtIO Console
4 * Copyright (c) 2014 SUSE LINUX Products GmbH
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */
10 #include "qemu/osdep.h"
11 #include "libqtest.h"
13 /* Tests only initialization so far. TODO: Replace with functional tests */
14 static void console_pci_nop(void)
16 qtest_start("-device virtio-serial-pci,id=vser0 "
17 "-device virtconsole,bus=vser0.0");
18 qtest_end();
21 static void serialport_pci_nop(void)
23 qtest_start("-device virtio-serial-pci,id=vser0 "
24 "-device virtserialport,bus=vser0.0");
25 qtest_end();
28 int main(int argc, char **argv)
30 g_test_init(&argc, &argv, NULL);
31 qtest_add_func("/virtio/console/pci/nop", console_pci_nop);
32 qtest_add_func("/virtio/serialport/pci/nop", serialport_pci_nop);
34 return g_test_run();