diff options
author | Josh Durgin <josh.durgin@inktank.com> | 2013-04-12 17:33:45 -0700 |
---|---|---|
committer | Josh Durgin <josh.durgin@inktank.com> | 2013-04-12 17:59:35 -0700 |
commit | 98de67d424fd4ea972130ac737062aa8c093cbff (patch) | |
tree | 32aa1859e334440719b75500bda3d469a311d532 /qa | |
parent | 6b98162f2b80025be3904f2ecbec2f39ec55f4ee (diff) | |
download | ceph-98de67d424fd4ea972130ac737062aa8c093cbff.tar.gz |
qa: add workunit for running qemu-iotests
This uses the old stand-alone qemu-iotests repo so it works with the
version of qemu in Ubuntu 12.04. The tests depend tightly on qemu
version, so to use later tests we'd need to install corresponding
versions of qemu.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'qa')
-rwxr-xr-x | qa/workunits/rbd/qemu-iotests.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/qa/workunits/rbd/qemu-iotests.sh b/qa/workunits/rbd/qemu-iotests.sh new file mode 100755 index 00000000000..9031b1db536 --- /dev/null +++ b/qa/workunits/rbd/qemu-iotests.sh @@ -0,0 +1,22 @@ +#!/bin/sh -ex + +# Run qemu-iotests against rbd. These are block-level tests that go +# through qemu but do not involve running a full vm. Note that these +# require the admin ceph user, as there's no way to pass the ceph user +# to qemu-iotests currently. + +# This will only work with particular qemu versions, like 1.0. Later +# versions of qemu includ qemu-iotests directly in the qemu +# repository. +git clone git://repo.or.cz/qemu-iotests.git + +cd qemu-iotests +mkdir bin +# qemu-iotests expects a binary called just 'qemu' to be available +ln -s `which qemu-system-x86_64` bin/qemu + +# TEST_DIR is the pool for rbd +TEST_DIR=rbd PATH="$PATH:$PWD/bin" ./check -rbd + +cd .. +rm -rf qemu-iotests |