qcow2: qcow2_co_preadv: improve locking
[qemu/ar7.git] / tests / check-block.sh
blobf3d12fd602d07b4a097a2e7e23ec1aa1c41cbc3c
1 #!/bin/sh
3 FORMAT_LIST="raw qcow2 qed vmdk vpc"
4 if [ "$#" -ne 0 ]; then
5 FORMAT_LIST="$@"
6 fi
8 export QEMU_PROG="$PWD/x86_64-softmmu/qemu-system-x86_64"
9 export QEMU_IMG_PROG="$PWD/qemu-img"
10 export QEMU_IO_PROG="$PWD/qemu-io"
12 if [ ! -x $QEMU_PROG ]; then
13 echo "'make check-block' requires qemu-system-x86_64"
14 exit 1
17 cd tests/qemu-iotests
19 ret=0
20 for FMT in $FORMAT_LIST ; do
21 ./check -T -nocache -$FMT || ret=1
22 done
24 exit $ret