Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' into staging
[qemu/cris-port.git] / tests / display-vga-test.c
blob17f59101e8deb1e5c607fbda2e1d7a17f922eb4a
1 /*
2 * QTest testcase for vga cards
4 * Copyright (c) 2014 Red Hat, Inc
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 <glib.h>
11 #include <string.h>
12 #include "libqtest.h"
13 #include "qemu/osdep.h"
15 static void pci_cirrus(void)
17 qtest_start("-vga none -device cirrus-vga");
18 qtest_end();
21 static void pci_stdvga(void)
23 qtest_start("-vga none -device VGA");
24 qtest_end();
27 static void pci_secondary(void)
29 qtest_start("-vga none -device secondary-vga");
30 qtest_end();
33 static void pci_multihead(void)
35 qtest_start("-vga none -device VGA -device secondary-vga");
36 qtest_end();
39 int main(int argc, char **argv)
41 int ret;
43 g_test_init(&argc, &argv, NULL);
45 qtest_add_func("/display/pci/cirrus", pci_cirrus);
46 qtest_add_func("/display/pci/stdvga", pci_stdvga);
47 qtest_add_func("/display/pci/secondary", pci_secondary);
48 qtest_add_func("/display/pci/multihead", pci_multihead);
49 ret = g_test_run();
51 return ret;