<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qemu-iotests/007, 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/007?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/007?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>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>tests/qemu-iotests: Remove the "_supported_os Linux" line from many tests</title>
<updated>2019-05-21T08:13:58+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2019-04-23T15:31:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b3763a195cc167152df1f762b3c3a73f7db7677b'/>
<id>urn:sha1:b3763a195cc167152df1f762b3c3a73f7db7677b</id>
<content type='text'>
A lot of tests run fine on FreeBSD and macOS, too - the limitation
to Linux here was likely just copied-and-pasted from other tests.
Thus remove the "_supported_os Linux" line from tests that run
successful in our CI pipelines on FreeBSD and macOS.

Reviewed-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Tested-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Acked-by: Christian Borntraeger &lt;borntraeger@de.ibm.com&gt;
Message-Id: &lt;20190502084506.8009-6-thuth@redhat.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@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>iotests: Prepare for refcount_bits option</title>
<updated>2015-03-10T13:02:21+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2015-02-18T22:40:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=5262caa75468adce44b57ed9c076b2f22bd9315f'/>
<id>urn:sha1:5262caa75468adce44b57ed9c076b2f22bd9315f</id>
<content type='text'>
Some tests do not work well with certain refcount widths (i.e. you
cannot create internal snapshots with refcount_bits=1), so make those
widths unsupported.

Furthermore, add another filter to _filter_img_create in common.filter
which filters out the refcount_bits value.

This is necessary for test 079, which does actually work with any
refcount width, but invoking qemu-img directly leads to the
refcount_bits value being visible in the output; use _make_test_img
instead which will filter it out.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@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: 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: Cleanup test image in test number 007</title>
<updated>2013-09-12T11:54:43+00:00</updated>
<author>
<name>Bharata B Rao</name>
</author>
<published>2013-09-12T08:37:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4aa846f25e7cf14c77f699d8c1dfdfeddb091161'/>
<id>urn:sha1:4aa846f25e7cf14c77f699d8c1dfdfeddb091161</id>
<content type='text'>
qemu-iotests number 007 doesn't do test image cleanup. This will affect
those protocols that expect a clean state before every test. Hence
ensure that test image is cleaned up in this test.

Signed-off-by: Bharata B Rao &lt;bharata@linux.vnet.ibm.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
</feed>
