<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qemu-iotests/014, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/014?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/014?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2021-01-20T20:53:22+00:00</updated>
<entry>
<title>iotests: define group in each iotest</title>
<updated>2021-01-20T20:53:22+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2021-01-16T13:44:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9dd003a99842d1d82c336e45c5cce656149de382'/>
<id>urn:sha1:9dd003a99842d1d82c336e45c5cce656149de382</id>
<content type='text'>
We are going to drop group file. Define group in tests as a preparatory
step.

The patch is generated by

    cd tests/qemu-iotests

    grep '^[0-9]\{3\} ' group | while read line; do
        file=$(awk '{print $1}' &lt;&lt;&lt; "$line");
        groups=$(sed -e 's/^... //' &lt;&lt;&lt; "$line");
        awk "NR==2{print \"# group: $groups\"}1" $file &gt; tmp;
        cat tmp &gt; $file;
    done

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20210116134424.82867-7-vsementsov@virtuozzo.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Disable data_file where it cannot be used</title>
<updated>2020-01-06T12:43:07+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2019-11-07T16:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3be2024aefe0024ada2fb5044c230c867ef59c67'/>
<id>urn:sha1:3be2024aefe0024ada2fb5044c230c867ef59c67</id>
<content type='text'>
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Message-id: 20191107163708.833192-22-mreitz@redhat.com
[mreitz: Also disable 273]
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&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>qemu-iotests: remove unused variable 'here'</title>
<updated>2018-11-19T16:08:19+00:00</updated>
<author>
<name>Mao Zhongyi</name>
</author>
<published>2018-10-24T09:40:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bf22957309369cf6f642e715ff6c470671920e7e'/>
<id>urn:sha1:bf22957309369cf6f642e715ff6c470671920e7e</id>
<content type='text'>
Running
git grep '\$here' tests/qemu-iotests

has 0 hits, which means we are setting a variable that has
no use.  It appears that commit e8f8624d removed the last
use.  So execute the following cmd to remove all of
the 'here=...' lines as dead code.

sed -i '/^here=/d' $(git grep -l '^here=' tests/qemu-iotests)

Cc: kwolf@redhat.com
Cc: mreitz@redhat.com
Cc: eblake@redhat.com
Suggested-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Mao Zhongyi &lt;maozhongyi@cmss.chinamobile.com&gt;
Message-Id: &lt;20181024094051.4470-3-maozhongyi@cmss.chinamobile.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
[eblake: touch up commit message, reorder series, rebase to master]
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: tests: do not set unused tmp variable</title>
<updated>2016-04-15T15:56:56+00:00</updated>
<author>
<name>Sascha Silbe</name>
</author>
<published>2016-04-12T14:56:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=339f06a3bce1c020a08c9dbe1d8e78fb28166de1'/>
<id>urn:sha1:339f06a3bce1c020a08c9dbe1d8e78fb28166de1</id>
<content type='text'>
The previous commit removed the last usage of ${tmp} inside the tests
themselves; the only remaining users are sourced by check. So we can now
drop this variable from the tests.

Signed-off-by: Sascha Silbe &lt;silbe@linux.vnet.ibm.com&gt;
Reviewed-by: Bo Tu &lt;tubo@linux.vnet.ibm.com&gt;
Message-id: 1460472980-26319-4-git-send-email-silbe@linux.vnet.ibm.com
Reviewed-by: Max Reitz &lt;mreitz@redhat.com&gt;
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: change _supported_proto to file for various tests</title>
<updated>2014-02-09T08:12:38+00:00</updated>
<author>
<name>Peter Lieven</name>
</author>
<published>2014-02-03T09:26:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=1f7bf7d0687f5a58613358f5e7cfd8f29a3a21e2'/>
<id>urn:sha1:1f7bf7d0687f5a58613358f5e7cfd8f29a3a21e2</id>
<content type='text'>
all these tests do anything of the following and thus fail with any
protocol other than file:
 - the tests use rm, cp or mv shell commands which only work on file
 - the tests use qcow2.py
 - the images construct new filenames (e.g. backing file names) and
   the logic is broken for anything else than file

Signed-off-by: Peter Lieven &lt;pl@kamp.de&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: Quote $TEST_IMG* and $TEST_DIR usage</title>
<updated>2013-09-27T09:10:45+00:00</updated>
<author>
<name>Jeff Cody</name>
</author>
<published>2013-09-25T12:12:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=fef9c19139f4d69a080d99b8cbade163d0bbf0fc'/>
<id>urn:sha1:fef9c19139f4d69a080d99b8cbade163d0bbf0fc</id>
<content type='text'>
A lot of image filename and paths are used unquoted.  Quote these to
make sure that directories / filenames with spaces are not problematic.

Signed-off-by: Jeff Cody &lt;jcody@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: add support for rbd and sheepdog protocols</title>
<updated>2012-02-23T09:29:46+00:00</updated>
<author>
<name>MORITA Kazutaka</name>
</author>
<published>2011-01-17T17:01:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9cdfa1b34e22bc09e80042b1ef3e4a5096f260d5'/>
<id>urn:sha1:9cdfa1b34e22bc09e80042b1ef3e4a5096f260d5</id>
<content type='text'>
This patch introduces tests for protocols other than file, and
initially supports rbd and sheepdog.

Signed-off-by: MORITA Kazutaka &lt;morita.kazutaka@lab.ntt.co.jp&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: align test requests according to cluster size</title>
<updated>2012-02-22T15:17:02+00:00</updated>
<author>
<name>Kevin Wolf</name>
</author>
<published>2009-10-01T17:29:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8fc1024ceec96d2ec2d2a0296220075e06a6c756'/>
<id>urn:sha1:8fc1024ceec96d2ec2d2a0296220075e06a6c756</id>
<content type='text'>
Change the io_test and io_test2 functions to take the cluster size of the image
and the number of test requests to issue. Tests are changed to specify a
cluster size (usually 4k), but expected test results stay the same for now
(apart from qemu-img printing the cluster size now).

Based on a patch written by Christoph Hellwig.

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