]> Git Repo - qemu.git/blob - tests/check-block.sh
iotests: Add preallocated growth test for qcow2
[qemu.git] / tests / check-block.sh
1 #!/bin/sh
2
3 FORMAT_LIST="raw qcow2 qed vmdk vpc"
4 if [ "$#" -ne 0 ]; then
5     FORMAT_LIST="$@"
6 fi
7
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"
11
12 if [ ! -x $QEMU_PROG ]; then
13     echo "'make check-block' requires qemu-system-x86_64"
14     exit 1
15 fi
16
17 cd tests/qemu-iotests
18
19 ret=0
20 for FMT in $FORMAT_LIST ; do
21     ./check -T -nocache -$FMT || ret=1
22 done
23
24 exit $ret
This page took 0.025184 seconds and 4 git commands to generate.