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