diff options
author | Fam Zheng <famz@redhat.com> | 2017-09-05 10:56:13 +0800 |
---|---|---|
committer | Fam Zheng <famz@redhat.com> | 2017-09-22 10:20:34 +0800 |
commit | f300ca63c7be30ab15be3e151375ee7c61f83171 (patch) | |
tree | a5ad2ea91884139685ef84b710b75c511d96a92b /tests/docker | |
parent | 18d4e35f93c67b191506f7634fa2ebc83e295f74 (diff) |
docker: Add test-block
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
Diffstat (limited to 'tests/docker')
-rwxr-xr-x | tests/docker/test-block | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/docker/test-block b/tests/docker/test-block new file mode 100755 index 0000000000..2ca1ce54f6 --- /dev/null +++ b/tests/docker/test-block @@ -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 |