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.
10 #include "qemu/osdep.h"
14 static void pci_cirrus(void)
16 qtest_start("-vga none -device cirrus-vga");
20 static void pci_stdvga(void)
22 qtest_start("-vga none -device VGA");
26 static void pci_secondary(void)
28 qtest_start("-vga none -device secondary-vga");
32 static void pci_multihead(void)
34 qtest_start("-vga none -device VGA -device secondary-vga");
38 static void pci_virtio_gpu(void)
40 qtest_start("-vga none -device virtio-gpu-pci");
44 #ifdef CONFIG_VIRTIO_VGA
45 static void pci_virtio_vga(void)
47 qtest_start("-vga none -device virtio-vga");
52 int main(int argc
, char **argv
)
56 g_test_init(&argc
, &argv
, NULL
);
58 qtest_add_func("/display/pci/cirrus", pci_cirrus
);
59 qtest_add_func("/display/pci/stdvga", pci_stdvga
);
60 qtest_add_func("/display/pci/secondary", pci_secondary
);
61 qtest_add_func("/display/pci/multihead", pci_multihead
);
62 qtest_add_func("/display/pci/virtio-gpu", pci_virtio_gpu
);
63 #ifdef CONFIG_VIRTIO_VGA
64 qtest_add_func("/display/pci/virtio-vga", pci_virtio_vga
);