Received: from eggs.gnu.org ([208.118.235.92]:46545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2J0s-0002d4-Vn for qemu-devel@nongnu.org; Tue, 28 Feb 2012 04:06:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2J0q-0006kj-Nr for qemu-devel@nongnu.org; Tue, 28 Feb 2012 04:06:26 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:37604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2J0q-0006kJ-GK for qemu-devel@nongnu.org; Tue, 28 Feb 2012 04:06:24 -0500 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 28 Feb 2012 09:06:20 -0000 Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1S96H0q2429174 for ; Tue, 28 Feb 2012 09:06:17 GMT Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1S96DHa012096 for ; Tue, 28 Feb 2012 02:06:13 -0700 From: Stefan Hajnoczi Date: Tue, 28 Feb 2012 09:06:02 +0000 Message-Id: <1330419965-11493-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/3] qemu-iotests: add image streaming tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Jeff Cody , Stefan Hajnoczi This series adds the image streaming test suite to qemu-iotests. It covers the 'block_stream', 'block_job_cancel', 'block_job_set_speed', and 'query-block-jobs' QMP interfaces. Since these tests involve QMP it is no longer convenient to write them in bash. Instead these tests are written in Python and make use of the existing QMP/qmp.py module. In order to achieve this, it adds an iotests Python module that handles interaction with the qemu-iotests framework. If you want to review using a top-down approach, I suggest reading this series backwards, starting from Patch 3 which introduces 030, the image streaming test suite. Or if you like the bottom-up approach: * Patch 1 exports TEST_DIR from qemu-iotests so test executables can learn the temporary directory path. * Patch 2 adds the iotests.py module, which brings together qemu-iotests, unittest, and QEMU in a way that is easy to consume in Python. * Patch 3 adds 030, the image streaming test suite. Tests pass successfully with both qcow2 and qed on qemu.git/master. Stefan Hajnoczi (3): qemu-iotests: export TEST_DIR for non-bash tests qemu-iotests: add iotests Python module test: add image streaming tests tests/qemu-iotests/030 | 151 ++++++++++++++++++++++++++++++++++ tests/qemu-iotests/030.out | 5 + tests/qemu-iotests/common.config | 2 + tests/qemu-iotests/group | 1 + tests/qemu-iotests/iotests.py | 165 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 324 insertions(+), 0 deletions(-) create mode 100755 tests/qemu-iotests/030 create mode 100644 tests/qemu-iotests/030.out create mode 100644 tests/qemu-iotests/iotests.py -- 1.7.9