target/arm: Reset btype for direct branches
[qemu/ar7.git] / tests / virtio-console-test.c
bloba7c6f167c3bc461deb5e3e4fe03dea9a23572c62
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"
12 #include "libqos/virtio.h"
14 /* Tests only initialization so far. TODO: Replace with functional tests */
15 static void console_nop(void)
17 global_qtest = qtest_initf("-device virtio-serial-%s,id=vser0 "
18 "-device virtconsole,bus=vser0.0",
19 qvirtio_get_dev_type());
20 qtest_end();
23 static void serialport_nop(void)
25 global_qtest = qtest_initf("-device virtio-serial-%s,id=vser0 "
26 "-device virtserialport,bus=vser0.0",
27 qvirtio_get_dev_type());
28 qtest_end();
31 int main(int argc, char **argv)
33 g_test_init(&argc, &argv, NULL);
34 qtest_add_func("/virtio/console/nop", console_nop);
35 qtest_add_func("/virtio/serialport/nop", serialport_nop);
37 return g_test_run();