block: Remove cache.writeback from blockdev-add
[qemu/ar7.git] / tests / virtio-console-test.c
blob0b9c2a55efde2f0229b4e3e99b6368cdce9004e9
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 <glib.h>
12 #include "libqtest.h"
14 /* Tests only initialization so far. TODO: Replace with functional tests */
15 static void console_pci_nop(void)
17 qtest_start("-device virtio-serial-pci,id=vser0 "
18 "-device virtconsole,bus=vser0.0");
19 qtest_end();
22 static void serialport_pci_nop(void)
24 qtest_start("-device virtio-serial-pci,id=vser0 "
25 "-device virtserialport,bus=vser0.0");
26 qtest_end();
29 int main(int argc, char **argv)
31 int ret;
33 g_test_init(&argc, &argv, NULL);
34 qtest_add_func("/virtio/console/pci/nop", console_pci_nop);
35 qtest_add_func("/virtio/serialport/pci/nop", serialport_pci_nop);
37 ret = g_test_run();
39 return ret;