Statistics
| Branch: | Revision:

root / tests / check-block.sh @ 9dd69d65

History | View | Annotate | Download (471 Bytes)

1 b8c6f29e Kevin Wolf
#!/bin/sh
2 b8c6f29e Kevin Wolf
3 b8c6f29e Kevin Wolf
export QEMU_PROG="$(pwd)/x86_64-softmmu/qemu-system-x86_64"
4 b8c6f29e Kevin Wolf
export QEMU_IMG_PROG="$(pwd)/qemu-img"
5 b8c6f29e Kevin Wolf
export QEMU_IO_PROG="$(pwd)/qemu-io"
6 b8c6f29e Kevin Wolf
7 b8c6f29e Kevin Wolf
if [ ! -x $QEMU_PROG ]; then
8 b8c6f29e Kevin Wolf
    echo "'make check-block' requires qemu-system-x86_64"
9 b8c6f29e Kevin Wolf
    exit 1
10 b8c6f29e Kevin Wolf
fi
11 b8c6f29e Kevin Wolf
12 b8c6f29e Kevin Wolf
cd $SRC_PATH/tests/qemu-iotests
13 b8c6f29e Kevin Wolf
14 b8c6f29e Kevin Wolf
ret=0
15 b8c6f29e Kevin Wolf
./check -T -nocache -raw || ret=1
16 b8c6f29e Kevin Wolf
./check -T -nocache -qcow2 || ret=1
17 b8c6f29e Kevin Wolf
./check -T -nocache -qed|| ret=1
18 b8c6f29e Kevin Wolf
./check -T -nocache -vmdk|| ret=1
19 b8c6f29e Kevin Wolf
./check -T -nocache -vpc || ret=1
20 b8c6f29e Kevin Wolf
21 b8c6f29e Kevin Wolf
exit $ret