1f300ca63SFam Zheng#!/bin/bash 2f300ca63SFam Zheng# 3f300ca63SFam Zheng# Run block test cases 4f300ca63SFam Zheng# 5f300ca63SFam Zheng# Copyright 2017 Red Hat Inc. 6f300ca63SFam Zheng# 7f300ca63SFam Zheng# Authors: 8f300ca63SFam Zheng# Fam Zheng <famz@redhat.com> 9f300ca63SFam Zheng# 10f300ca63SFam Zheng# This code is licensed under the GPL version 2 or later. See 11f300ca63SFam Zheng# the COPYING file in the top-level directory. 12f300ca63SFam Zheng 13f300ca63SFam Zheng. ./common.rc 14f300ca63SFam Zheng 15f300ca63SFam Zhengcd "$BUILD_DIR" 16f300ca63SFam Zheng 17*12b25a7dSFam Zhengbuild_qemu --target-list=x86_64-softmmu || test_fail "Build failed" 18f300ca63SFam Zhengcd tests/qemu-iotests 19f300ca63SFam Zhengfor t in raw qcow2 nbd luks; do 20f300ca63SFam Zheng ./check -g quick -$t || test_fail "Test failed: iotests $t" 21f300ca63SFam Zhengdone 22