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.
13 #include "qemu/osdep.h"
15 /* Tests only initialization so far. TODO: Replace with functional tests */
16 static void console_pci_nop(void)
18 qtest_start("-device virtio-serial-pci,id=vser0 "
19 "-device virtconsole,bus=vser0.0");
23 static void serialport_pci_nop(void)
25 qtest_start("-device virtio-serial-pci,id=vser0 "
26 "-device virtserialport,bus=vser0.0");
30 int main(int argc
, char **argv
)
34 g_test_init(&argc
, &argv
, NULL
);
35 qtest_add_func("/virtio/console/pci/nop", console_pci_nop
);
36 qtest_add_func("/virtio/serialport/pci/nop", serialport_pci_nop
);