<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qemu-iotests/067, 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/067?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/067?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2020-10-12T15:50:50+00:00</updated>
<entry>
<title>qemu-iotests, qtest: rewrite test 067 as a qtest</title>
<updated>2020-10-12T15:50:50+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2020-10-07T10:43:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=d8a18da56df93b7f778fb97ba370031597d19ffd'/>
<id>urn:sha1:d8a18da56df93b7f778fb97ba370031597d19ffd</id>
<content type='text'>
Test 067 from qemu-iotests is executing QMP commands to hotplug
and hot-unplug disks, devices and blockdevs.  Because the power
of the text-based test harness is limited, it is actually limiting
the checks that it does, for example by skipping DEVICE_DELETED
events.

tests/qtest already has a similar test, drive_del-test.c.
We can merge them, and even reuse some of the existing code in
drive_del-test.c.  This will improve the quality of the test by
covering DEVICE_DELETED events and testing multiple architectures
(therefore covering multiple PCI hotplug mechanisms as well as s390x
virtio-ccw).

The only difference is that the new test will always use null-co:// for
the medium rather than qcow2 or raw, but this should be irrelevant for
what the test is covering.  For example there are no "qemu-img check"
runs in 067 that would check that the file is properly closed.

The new tests requires PCI hot-plug support, so drive_del-test
is moved from qemu-system-ppc to qemu-system-ppc64.

Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@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: 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>
<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>iotests: Fix 067 for compat=0.10</title>
<updated>2018-01-23T11:34:43+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2017-11-23T02:08:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e121034d1442231eaded4213f442fc14b6d553d7'/>
<id>urn:sha1:e121034d1442231eaded4213f442fc14b6d553d7</id>
<content type='text'>
067 works very well with compat=0.10 once you remove format-specific
information from the QMP output.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Message-id: 20171123020832.8165-14-mreitz@redhat.com
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Pull _filter_actual_image_size from 67/87</title>
<updated>2017-10-26T13:01:13+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2017-10-09T16:34:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=44673a0b59d1fafd1abfdf35a1ac924b856c6ad5'/>
<id>urn:sha1:44673a0b59d1fafd1abfdf35a1ac924b856c6ad5</id>
<content type='text'>
Tests 067 and 087 filter the actual image size because it depends on the
host filesystem (and is not part of the respective test).  Since this is
generally true, we should have a common filter function for this, so
let's pull out the sed line from both tests into such a function.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Message-id: 20171009163456.485-2-mreitz@redhat.com
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Jeff Cody &lt;jcody@redhat.com&gt;
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: use virtio aliases for 067</title>
<updated>2017-09-26T12:46:23+00:00</updated>
<author>
<name>Cornelia Huck</name>
</author>
<published>2017-09-13T09:10:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b1149c1a2ad8eaecca08e78f677513672ff3d627'/>
<id>urn:sha1:b1149c1a2ad8eaecca08e78f677513672ff3d627</id>
<content type='text'>
The default cpu model on s390x does not provide zPCI, which is
not yet wired up on tcg. Moreover, virtio-ccw is the standard
on s390x.

Using virtio-scsi will implicitly pick the right device, so just
switch to that for simplicity.

Signed-off-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
Reviewed-by: QingFeng Hao &lt;haoqf@linux.vnet.ibm.com&gt;
Reviewed-by: David Hildenbrand &lt;david@redhat.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: Test unplug of -device without drive</title>
<updated>2017-07-18T13:14:36+00:00</updated>
<author>
<name>Kevin Wolf</name>
</author>
<published>2017-07-12T11:53:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=208c38e4e4a5e808b5720329f3633f4ab2bc5026'/>
<id>urn:sha1:208c38e4e4a5e808b5720329f3633f4ab2bc5026</id>
<content type='text'>
This caused an assertion failure until recently because the BlockBackend
would be detached on unplug, but was in fact never attached in the first
place. Add a regression test.

Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
</feed>
