From 28edfce0f3e8536b30573343618635f8713d6326 Mon Sep 17 00:00:00 2001 From: Gonglei Date: Mon, 23 Jun 2014 19:53:51 +0800 Subject: tests: add OHCI qtest Signed-off-by: Gonglei Signed-off-by: Gerd Hoffmann --- tests/usb-hcd-ohci-test.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/usb-hcd-ohci-test.c (limited to 'tests/usb-hcd-ohci-test.c') diff --git a/tests/usb-hcd-ohci-test.c b/tests/usb-hcd-ohci-test.c new file mode 100644 index 0000000..fbc3ffe --- /dev/null +++ b/tests/usb-hcd-ohci-test.c @@ -0,0 +1,35 @@ +/* + * QTest testcase for USB OHCI controller + * + * Copyright (c) 2014 HUAWEI TECHNOLOGIES CO.,LTD. + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#include +#include +#include "libqtest.h" +#include "qemu/osdep.h" + + +static void test_ohci_init(void) +{ + qtest_start("-device pci-ohci,id=ohci"); + + qtest_end(); +} + + +int main(int argc, char **argv) +{ + int ret; + + g_test_init(&argc, &argv, NULL); + + qtest_add_func("/ohci/pci/init", test_ohci_init); + + ret = g_test_run(); + + return ret; +} -- cgit v1.1