]> git.proxmox.com Git - mirror_qemu.git/commitdiff
docker: Add test-block
authorFam Zheng <famz@redhat.com>
Tue, 5 Sep 2017 02:56:13 +0000 (10:56 +0800)
committerFam Zheng <famz@redhat.com>
Fri, 22 Sep 2017 02:20:34 +0000 (10:20 +0800)
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170905025614.579-6-famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Based-on: 20170905021201.25684-1-famz@redhat.com

tests/docker/test-block [new file with mode: 0755]

diff --git a/tests/docker/test-block b/tests/docker/test-block
new file mode 100755 (executable)
index 0000000..2ca1ce5
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash
+#
+# Run block test cases
+#
+# Copyright 2017 Red Hat Inc.
+#
+# Authors:
+#  Fam Zheng <famz@redhat.com>
+#
+# This code is licensed under the GPL version 2 or later.  See
+# the COPYING file in the top-level directory.
+
+. ./common.rc
+
+cd "$BUILD_DIR"
+
+build_qemu --target-list=x86_64-softmmu
+cd tests/qemu-iotests
+for t in raw qcow2 nbd luks; do
+    ./check -g quick -$t || test_fail "Test failed: iotests $t"
+done