From 713d76e82c4196342665b537c68aa8b3a17fb9cf Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 20 Jul 2009 14:33:53 +0200 Subject: qemu-iotests: test invalid pattern argument handling in qemu-io Signed-off-by: Christoph Hellwig Reviewed-by: Kevin Wolf --- tests/qemu-iotests/021 | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 tests/qemu-iotests/021 (limited to 'tests/qemu-iotests/021') diff --git a/tests/qemu-iotests/021 b/tests/qemu-iotests/021 new file mode 100644 index 0000000..c0241ae --- /dev/null +++ b/tests/qemu-iotests/021 @@ -0,0 +1,62 @@ +#!/bin/sh +# +# Test handling of invalid patterns arguments to qemu-io +# +# Copyright (C) 2009 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +# creator +owner=hch@lst.de + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! + +_cleanup() +{ + _cleanup_test_img +} +trap "_cleanup; exit \$status" 0 1 2 3 15 + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter + +_supported_fmt generic +_supported_os Linux + + +size=128M +_make_test_img $size + +INVALID_PATTERNS="-1 300 12m 4k route66" +TEST_OPS="writev read write readv aio_read aio_write" + +for pattern in $INVALID_PATTERNS; do + for op in $TEST_OPS; do + echo + echo "== testing $op -P $pattern ==" + $QEMU_IO -c "$op -P $pattern 0 4096" $TEST_IMG | _filter_qemu_io + done +done + +# success, all done +echo "*** done" +rm -f $seq.full +status=0 -- cgit v1.1 From 3da9c8fb028e48acd4872efb27c5101704563802 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Thu, 1 Oct 2009 14:30:13 -0300 Subject: qemu-iotests: 019: Make cluster size dynamic Change the offsets for test requests according to CLUSTER_SIZE. Signed-off-by: Kevin Wolf Signed-off-by: Christoph Hellwig --- tests/qemu-iotests/021 | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tests/qemu-iotests/021 (limited to 'tests/qemu-iotests/021') diff --git a/tests/qemu-iotests/021 b/tests/qemu-iotests/021 old mode 100644 new mode 100755 -- cgit v1.1 From 908eaf68027509f7bfc207c18770fdfc6144fcd0 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Mon, 26 Apr 2010 11:44:05 +0200 Subject: qemu-iotests: explicitly use bash interpreter The tests use bash language features like 'let', which aren't supported by /bin/sh on systems that use a conservative shell like dash. This patch changes the interpreter to /bin/bash. Signed-off-by: Stefan Hajnoczi Signed-off-by: Christoph Hellwig --- tests/qemu-iotests/021 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/qemu-iotests/021') diff --git a/tests/qemu-iotests/021 b/tests/qemu-iotests/021 index c0241ae..eb61230 100755 --- a/tests/qemu-iotests/021 +++ b/tests/qemu-iotests/021 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Test handling of invalid patterns arguments to qemu-io # -- cgit v1.1 From 9cdfa1b34e22bc09e80042b1ef3e4a5096f260d5 Mon Sep 17 00:00:00 2001 From: MORITA Kazutaka Date: Tue, 18 Jan 2011 02:01:17 +0900 Subject: qemu-iotests: add support for rbd and sheepdog protocols This patch introduces tests for protocols other than file, and initially supports rbd and sheepdog. Signed-off-by: MORITA Kazutaka Signed-off-by: Christoph Hellwig --- tests/qemu-iotests/021 | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/qemu-iotests/021') diff --git a/tests/qemu-iotests/021 b/tests/qemu-iotests/021 index eb61230..6da79eb 100755 --- a/tests/qemu-iotests/021 +++ b/tests/qemu-iotests/021 @@ -39,6 +39,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.filter _supported_fmt generic +_supported_proto generic _supported_os Linux -- cgit v1.1