<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qemu-iotests/common.pattern, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/common.pattern?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/common.pattern?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2020-04-07T11:51:09+00:00</updated>
<entry>
<title>iotests/common.pattern: Quote echos</title>
<updated>2020-04-07T11:51:09+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2020-04-03T10:11:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=25fb2e9c39db85ef41cf242872944145563df571'/>
<id>urn:sha1:25fb2e9c39db85ef41cf242872944145563df571</id>
<content type='text'>
From time to time, my shell decides to repace the bracketed numbers here
by the numbers inside (i.e., "=== Clusters to be compressed [1]" is
printed as "=== Clusters to be compressed 1").  That makes tests that
use common.pattern fail.  Prevent that from happening by quoting the
arguments to all echos in common.pattern.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Message-Id: &lt;20200403101134.805871-1-mreitz@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests/qemu-iotests: Don't use 'seq' in the iotests</title>
<updated>2019-07-23T14:53:25+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2019-07-23T11:12:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=30edd9fa50e86fbf40c780bf47d7cb214e6f8438'/>
<id>urn:sha1:30edd9fa50e86fbf40c780bf47d7cb214e6f8438</id>
<content type='text'>
The 'seq' command is not available by default on OpenBSD, so these
iotests are currently failing there. It could be installed as 'gseq'
from the coreutils package - but since it is using a different name
there and we are running the iotests with the "bash" shell anyway,
let's simply use the built-in double parentheses for the for-loops
instead.

Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
Message-Id: &lt;20190723111201.1926-1-thuth@redhat.com&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: Improve portability by searching bash in the $PATH</title>
<updated>2019-03-08T11:26:45+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2019-03-07T14:58:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=11a82d14293cd66f428f535741717ff338c0722b'/>
<id>urn:sha1:11a82d14293cd66f428f535741717ff338c0722b</id>
<content type='text'>
Bash is not always installed as /bin/bash. In particular on OpenBSD,
the package installs it in /usr/local/bin.
Use the 'env' shebang to search bash in the $PATH.

Patch created mechanically by running:

  $ git grep -lE '#! ?/bin/bash' -- tests/qemu-iotests \
    | while read f; do \
      sed -i 's|^#!.\?/bin/bash$|#!/usr/bin/env bash|' $f; \
    done

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Drop use of bash keyword 'function'</title>
<updated>2018-11-19T17:16:46+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2018-11-16T21:50:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8cedcffdc195bc39aeb1373826ba0a45629741e0'/>
<id>urn:sha1:8cedcffdc195bc39aeb1373826ba0a45629741e0</id>
<content type='text'>
Bash allows functions to be declared with or without the leading
keyword 'function'; but including the keyword does not comply with
POSIX syntax, and is confusing to ksh users where the use of the
keyword changes the scoping rules for functions.  Stick to the
POSIX form through iotests.

Done mechanically with:
  sed -i 's/^function //' $(git ls-files tests/qemu-iotests)

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20181116215002.2124581-1-eblake@redhat.com&gt;
Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-io: Switch 'alloc' command to byte-based length</title>
<updated>2017-05-11T12:28:05+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2017-04-29T19:14:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4401fdc77cb6d79e53ce2fc2193444cad8b95749'/>
<id>urn:sha1:4401fdc77cb6d79e53ce2fc2193444cad8b95749</id>
<content type='text'>
For the 'alloc' command, accepting an offset in bytes but a length
in sectors, and reporting output in sectors, is confusing.  Do
everything in bytes, and adjust the expected output accordingly.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-id: 20170429191419.30051-3-eblake@redhat.com
Reviewed-by: Max Reitz &lt;mreitz@redhat.com&gt;
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: qemu-iotests, add quotes to $TEST_IMG usage io pattern tests</title>
<updated>2013-11-07T12:53:31+00:00</updated>
<author>
<name>Jeff Cody</name>
</author>
<published>2013-10-31T15:57:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=0084043888f6773d905c1b5d644b89c79d1c7714'/>
<id>urn:sha1:0084043888f6773d905c1b5d644b89c79d1c7714</id>
<content type='text'>
The usage of $TEST_IMG was not properly quoted everywhere in
common.pattern.

Signed-off-by: Jeff Cody &lt;jcody@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: Whitespace cleanup</title>
<updated>2013-09-06T13:25:09+00:00</updated>
<author>
<name>Kevin Wolf</name>
</author>
<published>2013-09-04T11:16:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=79e40ab10e1f4450c11ab8430cb2547146ded639'/>
<id>urn:sha1:79e40ab10e1f4450c11ab8430cb2547146ded639</id>
<content type='text'>
These scripts used to have a four characters indentation, with eight
consecutive spaces converted into a tab. Convert everything into spaces.

Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: Use zero-based offsets for IO patterns</title>
<updated>2012-02-23T09:29:46+00:00</updated>
<author>
<name>Stefan Hajnoczi</name>
</author>
<published>2011-02-04T12:55:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=dd0c35d69b31cfccaca30842787f0450ab70056c'/>
<id>urn:sha1:dd0c35d69b31cfccaca30842787f0450ab70056c</id>
<content type='text'>
The io_pattern style functions have the following loop:

  for i in `seq 1 $count`; do
      echo ... $(( start + i * step )) ...
  done

Offsets are 1-based so start=1024, step=512, count=4 yields:
1536, 2048, 2560, 3072

Normally we expect:
1024, 1536, 2048, 2560

Most tests ignore this detail, which means that they perform I/O to a
slightly different range than expected by the test author.

Later on things got less innocent and tests started trying to compensate
for the 1-based indexing.  This included negative start values in test
024 and my own attempt with count-1 in test 028!

The end result is that tests that use io_pattern are hard to reason
about and don't work the way you'd expect.  It's time to clean this mess
up.

This patch switches io_pattern to 0-based offsets.  This requires
adjusting the golden outputs since I/O ranges are now shifted and output
differs.

Verifying these output diffs is easy, however.  Each diff hunk moves one
I/O from beyond the end of the pattern range to the beginning.

Signed-off-by: Stefan Hajnoczi &lt;stefanha@linux.vnet.ibm.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: explicitly use bash interpreter</title>
<updated>2012-02-22T15:17:03+00:00</updated>
<author>
<name>Stefan Hajnoczi</name>
</author>
<published>2010-04-26T09:44:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=908eaf68027509f7bfc207c18770fdfc6144fcd0'/>
<id>urn:sha1:908eaf68027509f7bfc207c18770fdfc6144fcd0</id>
<content type='text'>
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 &lt;stefanha@linux.vnet.ibm.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: test larger clusters sizes on qcow2</title>
<updated>2012-02-22T15:17:02+00:00</updated>
<author>
<name>Kevin Wolf</name>
</author>
<published>2009-10-01T17:30:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ac5e2b201b11e552182b87c34970448e65f23c70'/>
<id>urn:sha1:ac5e2b201b11e552182b87c34970448e65f23c70</id>
<content type='text'>
This patch adds test case 023 which tests some more cluster sizes. For
anythinger larger than 4k clusters we can't use requests that are l2_size or
more (128k for 1k clusters, 2 MB for 4k clusters, 512 MB for 64k clusters).
Therefore one of the common.pattern cases is changed and needs new expected
results for some old test cases.

Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
</feed>
