]> Git Repo - qemu.git/blame - tests/display-vga-test.c
tests: Clean up includes
[qemu.git] / tests / display-vga-test.c
CommitLineData
0850fd58
GH
1/*
2 * QTest testcase for vga cards
3 *
4 * Copyright (c) 2014 Red Hat, Inc
5 *
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 */
9
681c28a3 10#include "qemu/osdep.h"
0850fd58 11#include <glib.h>
0850fd58 12#include "libqtest.h"
0850fd58
GH
13
14static void pci_cirrus(void)
15{
16 qtest_start("-vga none -device cirrus-vga");
17 qtest_end();
18}
19
20static void pci_stdvga(void)
21{
22 qtest_start("-vga none -device VGA");
23 qtest_end();
24}
25
a889bc2b
GH
26static void pci_secondary(void)
27{
28 qtest_start("-vga none -device secondary-vga");
29 qtest_end();
30}
31
32static void pci_multihead(void)
33{
34 qtest_start("-vga none -device VGA -device secondary-vga");
35 qtest_end();
36}
37
501eea4f
GH
38static void pci_virtio_gpu(void)
39{
40 qtest_start("-vga none -device virtio-gpu-pci");
41 qtest_end();
42}
43
44#ifdef CONFIG_VIRTIO_VGA
45static void pci_virtio_vga(void)
46{
47 qtest_start("-vga none -device virtio-vga");
48 qtest_end();
49}
50#endif
51
0850fd58
GH
52int main(int argc, char **argv)
53{
54 int ret;
55
56 g_test_init(&argc, &argv, NULL);
57
58 qtest_add_func("/display/pci/cirrus", pci_cirrus);
59 qtest_add_func("/display/pci/stdvga", pci_stdvga);
a889bc2b
GH
60 qtest_add_func("/display/pci/secondary", pci_secondary);
61 qtest_add_func("/display/pci/multihead", pci_multihead);
501eea4f
GH
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);
65#endif
0850fd58
GH
66 ret = g_test_run();
67
68 return ret;
69}
This page took 0.125322 seconds and 4 git commands to generate.