From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2jXL-0007ci-Si for qemu-devel@nongnu.org; Wed, 29 Feb 2012 08:26:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2jXJ-0006QW-Ps for qemu-devel@nongnu.org; Wed, 29 Feb 2012 08:25:43 -0500 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:59801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2jXJ-0006Pa-HR for qemu-devel@nongnu.org; Wed, 29 Feb 2012 08:25:41 -0500 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 29 Feb 2012 13:25:33 -0000 Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1TDPWCk2887702 for ; Wed, 29 Feb 2012 13:25:32 GMT Received: from d06av12.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1TDPWN2020011 for ; Wed, 29 Feb 2012 06:25:32 -0700 From: Stefan Hajnoczi Date: Wed, 29 Feb 2012 13:25:19 +0000 Message-Id: <1330521922-32540-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v2 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 , 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. v2: * Python 2.6 compatibility, use public unittest.TextTestRunner [Kevin] 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 | 164 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 323 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