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