summaryrefslogtreecommitdiff
path: root/tests/tpci200-test.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2014-02-09 03:48:44 +0100
committerAndreas Färber <afaerber@suse.de>2014-02-14 21:02:27 +0100
commit76491071b37e1d7cb2fba047cc391595b9e7b61a (patch)
tree5bdec3ff3f7b995b64639895ba5be0f2d7ecbc1c /tests/tpci200-test.c
parentb815ec5eea4eecbe77f0c57b631fb043fd9b3d0e (diff)
downloadqemu-76491071b37e1d7cb2fba047cc391595b9e7b61a.tar.gz
tests: Add tpci200 qtest
Acked-by: Alberto Garcia <agarcia@igalia.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'tests/tpci200-test.c')
-rw-r--r--tests/tpci200-test.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/tpci200-test.c b/tests/tpci200-test.c
new file mode 100644
index 0000000000..9ae01277ee
--- /dev/null
+++ b/tests/tpci200-test.c
@@ -0,0 +1,33 @@
+/*
+ * QTest testcase for tpci200 PCI-IndustryPack bridge
+ *
+ * Copyright (c) 2014 SUSE LINUX Products GmbH
+ *
+ * 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 <glib.h>
+#include <string.h>
+#include "libqtest.h"
+#include "qemu/osdep.h"
+
+/* Tests only initialization so far. TODO: Replace with functional tests */
+static void nop(void)
+{
+}
+
+int main(int argc, char **argv)
+{
+ int ret;
+
+ g_test_init(&argc, &argv, NULL);
+ qtest_add_func("/tpci200/nop", nop);
+
+ qtest_start("-device tpci200");
+ ret = g_test_run();
+
+ qtest_end();
+
+ return ret;
+}