<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qemu-iotests/233, 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/233?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/233?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-03-07T23:13:31+00:00</updated>
<entry>
<title>tests/qemu-iotests: validate NBD TLS with UNIX sockets and PSK</title>
<updated>2022-03-07T23:13:31+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2022-03-04T19:36:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=10cc95c38f95e62c5ff5e1cffbf8bfef748e9d6f'/>
<id>urn:sha1:10cc95c38f95e62c5ff5e1cffbf8bfef748e9d6f</id>
<content type='text'>
This validates that connections to an NBD server running on a UNIX
socket can use TLS with pre-shared keys (PSK).

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20220304193610.3293146-13-berrange@redhat.com&gt;
[eblake: squash in rebase fix]
Tested-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests/qemu-iotests: validate NBD TLS with UNIX sockets</title>
<updated>2022-03-07T23:13:15+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2022-03-04T19:36:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=f0620835c513afa36660eedbc8995ce4dbc72f98'/>
<id>urn:sha1:f0620835c513afa36660eedbc8995ce4dbc72f98</id>
<content type='text'>
This validates that connections to an NBD server running on a UNIX
socket can use TLS, and require a TLS hostname override to pass
certificate validation.

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20220304193610.3293146-12-berrange@redhat.com&gt;
[eblake: squash in rebase fix]
Tested-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests/qemu-iotests: validate NBD TLS with hostname mismatch</title>
<updated>2022-03-07T23:12:55+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2022-03-04T19:36:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3da93d4bc6749d56349cd16340f07ca9825996ed'/>
<id>urn:sha1:3da93d4bc6749d56349cd16340f07ca9825996ed</id>
<content type='text'>
This validates that connections to an NBD server where the certificate
hostname does not match will fail. It further validates that using the
new 'tls-hostname' override option can solve the failure.

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20220304193610.3293146-11-berrange@redhat.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests/qemu-iotests: convert NBD TLS test to use standard filters</title>
<updated>2022-03-07T23:12:55+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2022-03-04T19:36:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ebc0141ba7e5d594ef9ea0efbf841e2e90edea7c'/>
<id>urn:sha1:ebc0141ba7e5d594ef9ea0efbf841e2e90edea7c</id>
<content type='text'>
Using standard filters is more future proof than rolling our own.

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20220304193610.3293146-10-berrange@redhat.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests: filter out TLS distinguished name in certificate checks</title>
<updated>2021-08-09T15:32:43+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2021-08-04T18:03:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a6d2bb25cf945cd16f29a575055c6f1a1f9cf6c9'/>
<id>urn:sha1:a6d2bb25cf945cd16f29a575055c6f1a1f9cf6c9</id>
<content type='text'>
The version of GNUTLS in Fedora 34 has changed the order in which encodes
fields when generating new TLS certificates. This in turn changes the
order seen when querying the distinguished name. This ultimately breaks
the expected output in the NBD TLS iotests. We don't need to be
comparing the exact distinguished name text for the purpose of the test
though, so it is fine to filter it out.

Reported-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20210804180330.3469683-1-berrange@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Tested-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>Prefer 'on' | 'off' over 'yes' | 'no' for bool options</title>
<updated>2021-01-29T17:07:53+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2020-11-04T13:57:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4d7beeab38e6d2d242bcf110532ff6a9b03bd53d'/>
<id>urn:sha1:4d7beeab38e6d2d242bcf110532ff6a9b03bd53d</id>
<content type='text'>
Update some docs and test cases to use 'on' | 'off' as the preferred
value for bool options.

Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@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: Let 233 run concurrently</title>
<updated>2019-06-13T13:50:47+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2019-05-08T21:18:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b28f582c2acaca26b66262d75cc5a0bd2764482c'/>
<id>urn:sha1:b28f582c2acaca26b66262d75cc5a0bd2764482c</id>
<content type='text'>
common.nbd's nbd_server_set_tcp_port() tries to find a free port, and
then uses it for the whole test run.  However, this is racy because even
if the port was free at the beginning, there is no guarantee it will
continue to be available.  Therefore, 233 currently cannot reliably be
run concurrently with other NBD TCP tests.

This patch addresses the problem by dropping nbd_server_set_tcp_port(),
and instead finding a new port every time nbd_server_start_tcp_socket()
is invoked.  For this, we run qemu-nbd with --fork and on error evaluate
the output to see whether it contains "Address already in use".  If so,
we try the next port.

On success, we still want to continually redirect the output from
qemu-nbd to stderr.  To achieve both, we redirect qemu-nbd's stderr to a
FIFO that we then open in bash.  If the parent process exits with status
0 (which means that the server has started successfully), we launch a
background cat process that copies the FIFO to stderr.  On failure, we
read the whole content into a variable and then evaluate it.

While at it, use --fork in nbd_server_start_unix_socket(), too.  Doing
so allows us to drop nbd_server_wait_for_*_socket().

Note that the reason common.nbd did not use --fork before is that
qemu-nbd did not have --pid-file.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20190508211820.17851-6-mreitz@redhat.com&gt;
Signed-off-by: Eric Blake &lt;eblake@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>iotests: Fix 233 for ports other than 10809</title>
<updated>2019-05-07T14:43:42+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2019-05-06T16:05:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=876df72d759c854d2ed84cd415bcd309c4e46978'/>
<id>urn:sha1:876df72d759c854d2ed84cd415bcd309c4e46978</id>
<content type='text'>
233 generally filters the port, but in two cases does not.  If some
other concurrently running application has already taken port 10809,
this will result in an output mismatch.  Fix this by applying the
filter in these two cases, too.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Message-Id: &lt;20190506160529.6955-1-mreitz@redhat.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
</feed>
