]> Git Repo - qemu.git/commitdiff
qemu-iotests: Speed up make check-block
authorFam Zheng <[email protected]>
Mon, 15 Dec 2014 05:07:18 +0000 (13:07 +0800)
committerStefan Hajnoczi <[email protected]>
Tue, 13 Jan 2015 11:47:55 +0000 (11:47 +0000)
Using /tmp, which is usually mounted as tmpfs, the quick group can be
quicker.

On my laptop (Lenovo T430s with Fedora 20), this reduces the time from
50s to 30s.

Signed-off-by: Fam Zheng <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
tests/qemu-iotests-quick.sh
tests/qemu-iotests/check

index 12af731c682f65b6cd7d6a5b907e4734d6caa289..0e554bb97240de643945fa784c26d6cbf50aece7 100755 (executable)
@@ -3,6 +3,6 @@
 cd tests/qemu-iotests
 
 ret=0
-./check -T -qcow2 -g quick || ret=1
+TEST_DIR=${TEST_DIR:-/tmp/qemu-iotests-quick-$$} ./check -T -qcow2 -g quick || ret=1
 
 exit $ret
index 8ca40116d745bba9955372955fb185a6c1d4ca67..baeae80f96bb8b5c1cb20754fde6923f4baf4091 100755 (executable)
@@ -238,6 +238,7 @@ QEMU_NBD      -- $QEMU_NBD
 IMGFMT        -- $FULL_IMGFMT_DETAILS
 IMGPROTO      -- $FULL_IMGPROTO_DETAILS
 PLATFORM      -- $FULL_HOST_DETAILS
+TEST_DIR      -- $TEST_DIR
 SOCKET_SCM_HELPER -- $SOCKET_SCM_HELPER
 
 EOF
This page took 0.023499 seconds and 4 git commands to generate.