Skip to content

Commit

Permalink
docker: Add test-block
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Fam Zheng committed Sep 22, 2017
1 parent 18d4e35 commit f300ca6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions 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

0 comments on commit f300ca6

Please sign in to comment.