<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qemu-iotests/085, 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/085?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/085?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-03-29T14:30:55+00:00</updated>
<entry>
<title>iotests: update test owner contact information</title>
<updated>2022-03-29T14:30:55+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2022-03-22T17:42:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=42a5009d8866f69945b708e98d81582bdbcd504f'/>
<id>urn:sha1:42a5009d8866f69945b708e98d81582bdbcd504f</id>
<content type='text'>
Quite a few of these tests have stale contact information. This patch
updates the stale ones that I happen to be aware of at the moment.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Message-Id: &lt;20220322174212.1169630-1-jsnow@redhat.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: Fail gracefully when blockdev-snapshot creates loops</title>
<updated>2021-11-02T12:02:46+00:00</updated>
<author>
<name>Kevin Wolf</name>
</author>
<published>2021-10-18T13:47:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bfb8aa6d583b09378dcdb85d40c7951e44acd09f'/>
<id>urn:sha1:bfb8aa6d583b09378dcdb85d40c7951e44acd09f</id>
<content type='text'>
Using blockdev-snapshot to append a node as an overlay to itself, or to
any of its parents, causes crashes. Catch the condition and return an
error for these cases instead.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1824363
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Message-Id: &lt;20211018134714.48438-1-kwolf@redhat.com&gt;
Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<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: Specify explicit backing format where sensible</title>
<updated>2020-07-14T13:18:59+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2020-07-06T20:39:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b66ff2c29817f5efa18f5120fd6f089fbf59a933'/>
<id>urn:sha1:b66ff2c29817f5efa18f5120fd6f089fbf59a933</id>
<content type='text'>
There are many existing qcow2 images that specify a backing file but
no format.  This has been the source of CVEs in the past, but has
become more prominent of a problem now that libvirt has switched to
-blockdev.  With older -drive, at least the probing was always done by
qemu (so the only risk of a changed format between successive boots of
a guest was if qemu was upgraded and probed differently).  But with
newer -blockdev, libvirt must specify a format; if libvirt guesses raw
where the image was formatted, this results in data corruption visible
to the guest; conversely, if libvirt guesses qcow2 where qemu was
using raw, this can result in potential security holes, so modern
libvirt instead refuses to use images without explicit backing format.

The change in libvirt to reject images without explicit backing format
has pointed out that a number of tools have been far too reliant on
probing in the past.  It's time to set a better example in our own
iotests of properly setting this parameter.

iotest calls to create, rebase, and convert are all impacted to some
degree.  It's a bit annoying that we are inconsistent on command line
- while all of those accept -o backing_file=...,backing_fmt=..., the
shortcuts are different: create and rebase have -b and -F, while
convert has -B but no -F.  (amend has no shortcuts, but the previous
patch just deprecated the use of amend to change backing chains).

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20200706203954.341758-9-eblake@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Fix cleanup path in some tests</title>
<updated>2020-03-24T10:57:38+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2020-02-24T17:16:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=801ddbda7183e1e043015fd357ea5eb97d925fd2'/>
<id>urn:sha1:801ddbda7183e1e043015fd357ea5eb97d925fd2</id>
<content type='text'>
Some iotests leave behind some external data file when run for qcow2
with -o data_file.  Fix that.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Message-Id: &lt;20200224171631.384314-1-mreitz@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>iotests: Avoid cp/mv of test images</title>
<updated>2020-01-06T12:43:07+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2019-11-07T16:37:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=d88bef1921721c1723cb201bc1e5ccd6a855258c'/>
<id>urn:sha1:d88bef1921721c1723cb201bc1e5ccd6a855258c</id>
<content type='text'>
This will not work with external data files, so try to get tests working
without it as far as possible.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Reviewed-by: Maxim Levitsky &lt;mlevitsk@redhat.com&gt;
Message-id: 20191107163708.833192-17-mreitz@redhat.com
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Use _rm_test_img for deleting test images</title>
<updated>2020-01-06T12:43:07+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2019-11-07T16:37:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=f91ecbd74eb75e9d4c7b4016edaf69d070cb3f9b'/>
<id>urn:sha1:f91ecbd74eb75e9d4c7b4016edaf69d070cb3f9b</id>
<content type='text'>
Just rm will not delete external data files.  Use _rm_test_img every
time we delete a test image.

(In the process, clean up the indentation of every _cleanup() this patch
touches.)

((Also, use quotes consistently.  I am happy to see unquoted instances
like "rm -rf $TEST_DIR/..." go.))

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Reviewed-by: Maxim Levitsky &lt;mlevitsk@redhat.com&gt;
Message-id: 20191107163708.833192-16-mreitz@redhat.com
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&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>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>
</feed>
