]> git.proxmox.com Git - mirror_qemu.git/blame - tests/check-block.sh
minikconf: do not include variables from MINIKCONF_ARGS in config-all-devices.mak
[mirror_qemu.git] / tests / check-block.sh
CommitLineData
b8c6f29e
KW
1#!/bin/sh
2
c2519009
DL
3FORMAT_LIST="raw qcow2 qed vmdk vpc"
4if [ "$#" -ne 0 ]; then
5 FORMAT_LIST="$@"
6fi
7
e8d81a61
MZ
8export QEMU_PROG="$PWD/x86_64-softmmu/qemu-system-x86_64"
9export QEMU_IMG_PROG="$PWD/qemu-img"
10export QEMU_IO_PROG="$PWD/qemu-io"
b8c6f29e
KW
11
12if [ ! -x $QEMU_PROG ]; then
13 echo "'make check-block' requires qemu-system-x86_64"
14 exit 1
15fi
16
7467d94c 17cd tests/qemu-iotests
b8c6f29e
KW
18
19ret=0
c2519009
DL
20for FMT in $FORMAT_LIST ; do
21 ./check -T -nocache -$FMT || ret=1
22done
b8c6f29e
KW
23
24exit $ret