]> Git Repo - qemu.git/blob - tests/display-vga-test.c
add display-vga test
[qemu.git] / tests / display-vga-test.c
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
10 #include <glib.h>
11 #include <string.h>
12 #include "libqtest.h"
13 #include "qemu/osdep.h"
14
15 static void pci_cirrus(void)
16 {
17     qtest_start("-vga none -device cirrus-vga");
18     qtest_end();
19 }
20
21 static void pci_stdvga(void)
22 {
23     qtest_start("-vga none -device VGA");
24     qtest_end();
25 }
26
27 int main(int argc, char **argv)
28 {
29     int ret;
30
31     g_test_init(&argc, &argv, NULL);
32
33     qtest_add_func("/display/pci/cirrus", pci_cirrus);
34     qtest_add_func("/display/pci/stdvga", pci_stdvga);
35     ret = g_test_run();
36
37     return ret;
38 }
This page took 0.025932 seconds and 4 git commands to generate.