Re: [Qemu-block] [PATCH v2 2/4] tests/qemu-iotests/group: Remove some more tests from the "auto" group

2019-07-16 Thread Thomas Huth
On 16/07/2019 17.26, Max Reitz wrote: > On 16.07.19 14:28, Thomas Huth wrote: >> Remove some more tests from the "auto" group that either have issues >> in certain environments (like macOS or FreeBSD, or on certain file systems >> like ZFS or tmpfs), do

Re: [Qemu-block] [PATCH 3/6] tests/libqtest: Remove unused function hmp()

2019-08-13 Thread Thomas Huth
On 8/13/19 5:20 PM, Eric Blake wrote: > On 8/13/19 4:30 AM, Thomas Huth wrote: >> No test is using hmp() anymore, and since this function uses the disliked >> global_qtest variable, we should also make sure that nobody adds new code >> with this function again. qtest_hmp() s

[Qemu-block] [PULL 3/3] gitlab-ci: Remove qcow2 tests that are handled by "make check" already

2019-08-17 Thread Thomas Huth
Since most iotests are now run during "make check" already, we do not need to test them explicitly from the gitlab-ci.yml script anymore. And while we're at it, add some of the new non-auto tests >= 246 instead. Message-Id: <20190717111947.30356-5-th...@redhat.com> Signed-

[Qemu-block] [PULL 1/3] block: fix NetBSD qemu-iotests failure

2019-08-17 Thread Thomas Huth
pen_common and raw_normalize_devicepath; in fact, we can even use error_setg_file_open to make sure the error message is the same as in the rest of QEMU. Message-Id: <20190725095920.28419-1-pbonz...@redhat.com> Tested-by: Thomas Huth Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathi

[Qemu-block] [PULL 0/3] Run iotests during "make check"

2019-08-17 Thread Thomas Huth
quot;make check" Paolo Bonzini (1): block: fix NetBSD qemu-iotests failure Thomas Huth (2): tests: Run the iotests during "make check" again gitlab-ci: Remove qcow2 tests that are handled by "m

[Qemu-block] [PULL 2/3] tests: Run the iotests during "make check" again

2019-08-17 Thread Thomas Huth
script since we do not need that anymore (and having two shell wrapper scripts around the block tests seems rather confusing than helpful). Message-Id: <20190717111947.30356-4-th...@redhat.com> Signed-off-by: Thomas Huth [AJB: -makecheck to check-block.sh, move check-block to start and g

[Qemu-block] [PATCH] iotests: Check for enabled drivers before testing them

2019-08-19 Thread Thomas Huth
tain drivers first, and marks the test as "not run" if one of the drivers is missing. Signed-off-by: Thomas Huth --- tests/qemu-iotests/071 | 1 + tests/qemu-iotests/081 | 1 + tests/qemu-iotests/099 | 1 + tests/qemu-iotests/184 | 1 + tests/qemu-iotests/

Re: [Qemu-block] [Qemu-devel] qemu-iotests 069 and 111 are failing on NetBSD

2019-08-13 Thread Thomas Huth
On 8/12/19 9:16 PM, John Snow wrote: > > > On 7/25/19 4:34 AM, Thomas Huth wrote: >> On 24/07/2019 18.29, Paolo Bonzini wrote: >>> On 24/07/19 11:34, Thomas Huth wrote: >>>> In case somebody is interested, two of the "auto" iotests are fai

Re: [Qemu-block] qemu-iotest 059 fails with vmdk

2019-08-13 Thread Thomas Huth
On 8/12/19 9:20 PM, Max Reitz wrote: > On 12.08.19 21:14, John Snow wrote: >> >> >> On 7/22/19 8:58 AM, Thomas Huth wrote: >>> Not sure if it has been reported before, but test 059 currently fails: >>> >>> 059 fail [14:55:21] [14:55:26]

Re: [Qemu-block] [Qemu-devel] [PATCH] tests: Set read-zeroes on for null-co driver

2019-08-13 Thread Thomas Huth
On 7/30/19 3:23 PM, Andrey Shinkevich wrote: > > > On 30/07/2019 15:59, Thomas Huth wrote: >> On 30/07/2019 14.52, Thomas Huth wrote: >>> On 29/07/2019 14.46, Andrey Shinkevich wrote: >>>> This patch is to reduce the number of Valgrind report messages a

[Qemu-block] [PATCH 2/6] tests/libqos: Make virtio-pci code independent from global_qtest

2019-08-13 Thread Thomas Huth
The libqos library functions should never depend on global_qtest, since these functions might be used in tests that track multiple test states. So let's use the test state of the QPCIDevice instead. Signed-off-by: Thomas Huth --- tests/libqos/virtio-pci.c | 8 1 file changed, 4

[Qemu-block] [PATCH 0/6] First batch of global_qtest-removement patches for QEMU 4.2

2019-08-13 Thread Thomas Huth
not depend on global_qtest or functions that rely on this variable. This patch series gets rid of these dependencies in most of the libqtest and libqos code. Thomas Huth (6): tests/libqos: Make generic virtio code independent from global_qtest tests/libqos: Make virtio-pci code independent from

[Qemu-block] [PATCH 1/6] tests/libqos: Make generic virtio code independent from global_qtest

2019-08-13 Thread Thomas Huth
The libqos library functions should never depend on global_qtest, since these functions might be used in tests that track multiple test states. Pass around a pointer to the QTestState instead. Signed-off-by: Thomas Huth --- tests/libqos/virtio.c| 74 ++- tests/libqos

[Qemu-block] [PATCH 4/6] tests/libqtest: Clean up qtest_cb_for_every_machine() wrt global_qtest

2019-08-13 Thread Thomas Huth
The generic libqtest library functions should not use functions that require the global_qtest variable. Signed-off-by: Thomas Huth --- tests/libqtest.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/libqtest.c b/tests/libqtest.c index 3e9245d4c9..d1aead30ed

[Qemu-block] [PATCH 6/6] tests/libqtest: Make qmp_assert_success() independent from global_qtest

2019-08-13 Thread Thomas Huth
The normal libqtest library functions should never depend on global_qtest. Pass in the test state via parameter instead. And while we're at it, also rename this function to qtest_qmp_assert_success() to make it clear that it is part of libqtest. Signed-off-by: Thomas Huth --- tests/libqtest.c

[Qemu-block] [PATCH 3/6] tests/libqtest: Remove unused function hmp()

2019-08-13 Thread Thomas Huth
No test is using hmp() anymore, and since this function uses the disliked global_qtest variable, we should also make sure that nobody adds new code with this function again. qtest_hmp() should be used instead. Signed-off-by: Thomas Huth --- tests/libqtest.c | 11 --- tests/libqtest.h

[Qemu-block] [PATCH 5/6] tests/libqtest: Make qtest_qmp_device_add/del independent from global_qtest

2019-08-13 Thread Thomas Huth
Generic library functions like qtest_qmp_device_add() and _del() should not depend on the global_qtest variable. Pass the test state via parameter instead. Signed-off-by: Thomas Huth --- tests/cpu-plug-test.c | 15 +-- tests/e1000e-test.c| 2 +- tests/ivshmem-test.c

Re: [Qemu-block] [PATCH v3 2/8] iotests: Prefer null-co over null-aio

2019-08-20 Thread Thomas Huth
t; index bc1ceb9792..ae169778b0 100644 > --- a/tests/qemu-iotests/245 > +++ b/tests/qemu-iotests/245 > @@ -598,7 +598,7 @@ class TestBlockdevReopen(iotests.QMPTestCase): > ## > ## null ## > ## > - opts = {'driver': 'null-aio', 'node-name': 'root', 'size': 1024} > +opts = {'driver': 'null-co', 'node-name': 'root', 'size': 1024} > > result = self.vm.qmp('blockdev-add', conv_keys = False, **opts) > self.assert_qmp(result, 'return', {}) > Reviewed-by: Thomas Huth

Re: [Qemu-block] [PATCH v3 6/8] iotests: Test driver whitelisting in 093

2019-08-20 Thread Thomas Huth
On 8/19/19 10:18 PM, Max Reitz wrote: > null-aio may not be whitelisted. Skip all test cases that require it. > > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/093 | 12 +--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff --git a/tests/qemu-iotests/093

Re: [Qemu-block] [PATCH v3 1/8] iotests: Add -display none to the qemu options

2019-08-20 Thread Thomas Huth
"-nodefaults -machine > tricore_testboard,accel=qtest" > +export QEMU_OPTIONS="-nodefaults -display none -machine > tricore_testboard,accel=qtest" > ;; > *) > -export QEMU_OPTIONS="-nodefaults -machine accel=qtest" > +export QEMU_OPTIONS="-nodefaults -display none -machine accel=qtest" > ;; > esac Reviewed-by: Thomas Huth

Re: [Qemu-block] [PATCH] iotests: Add more "skip_if_unsupported" statements to the python tests

2019-08-20 Thread Thomas Huth
On 8/19/19 9:13 PM, Max Reitz wrote: > On 19.08.19 11:21, Thomas Huth wrote: >> The python code already contains a possibility to skip tests if the >> corresponding driver is not available in the qemu binary - use it >> in more spots to avoid that the tests are failing if t

Re: [Qemu-block] [qemu-s390x] [Qemu-devel] [PATCH v7 33/42] exec: Replace device_endian with MemOp

2019-08-16 Thread Thomas Huth
On 8/16/19 9:37 AM, tony.ngu...@bt.com wrote: > Simplify endianness comparisons with consistent use of the more > expressive MemOp. > > Suggested-by: Richard Henderson > Signed-off-by: Tony Nguyen > Reviewed-by: Richard Henderson > Acked-by: David Gibson This patch is *huge*, more than

[Qemu-block] [PATCH] iotests: Add more "skip_if_unsupported" statements to the python tests

2019-08-19 Thread Thomas Huth
The python code already contains a possibility to skip tests if the corresponding driver is not available in the qemu binary - use it in more spots to avoid that the tests are failing if the driver has been disabled. Signed-off-by: Thomas Huth --- tests/qemu-iotests/030 | 3 +++ tests/qemu

Re: [Qemu-block] [PATCH] iotests: Check for enabled drivers before testing them

2019-08-20 Thread Thomas Huth
On 8/20/19 8:48 PM, Max Reitz wrote: > On 20.08.19 18:01, Thomas Huth wrote: [...] >> Well, we disable blkverify in our downstream RHEL version of QEMU - so >> it would be great if the iotests could at least adapt to that missing >> driver. > > I would like to say that

Re: [Qemu-block] [PATCH] iotests: Check for enabled drivers before testing them

2019-08-20 Thread Thomas Huth
On 8/20/19 5:01 PM, Max Reitz wrote: > On 19.08.19 09:53, Thomas Huth wrote: >> It is possible to enable only a subset of the block drivers with the >> "--block-drv-rw-whitelist" option of the "configure" script. All other >> drivers are marked a

Re: [Qemu-block] [Qemu-devel] [PATCH] file-posix: fix request_alignment typo

2019-08-27 Thread Thomas Huth
s->buf_align = (align != 1) ? align : > bs->bl.request_alignment; > break; > } > Reviewed-by: Thomas Huth

Re: [Qemu-block] [PATCH v2] iotests: Check for enabled drivers before testing them

2019-09-03 Thread Thomas Huth
On 03/09/2019 14.55, Max Reitz wrote: > On 23.08.19 15:35, Thomas Huth wrote: >> It is possible to enable only a subset of the block drivers with the >> "--block-drv-rw-whitelist" option of the "configure" script. All other >> drivers are marked a

[Qemu-block] [PATCH] qemu-doc: Do not hard-code the name of the QEMU binary

2019-08-28 Thread Thomas Huth
mu-kvm" in RHEL), so providing more flexibility here would also be good. Thus let's define some variables for the names of the QEMU command and use those in the documentation instead: @value{qemu_system} for generic examples, and @value{qemu_system_x86} for examples that only work with the x

Re: [Qemu-block] [Qemu-devel] [PATCH] qemu-doc: Do not hard-code the name of the QEMU binary

2019-08-28 Thread Thomas Huth
On 28/08/2019 21.18, John Snow wrote: > > > On 8/28/19 5:34 AM, Thomas Huth wrote: >> In our documentation, we use a mix of "$QEMU", "qemu-system-i386" and >> "qemu-system-x86_64" when we give examples to the users how to run >>

Re: [Qemu-block] [Qemu-devel] [PULL 2/3] tests: Run the iotests during "make check" again

2019-08-23 Thread Thomas Huth
On 8/23/19 12:34 AM, Paolo Bonzini wrote: > On 17/08/19 10:54, Thomas Huth wrote: >> People often forget to run the iotests before submitting patches or pull >> requests - this is likely due to the fact that we do not run the tests >> during our mandatory "make check"

[Qemu-block] [PATCH] tests/check-block: Skip iotests when sanitizers are enabled

2019-08-23 Thread Thomas Huth
h --enable-sanitizers. Signed-off-by: Thomas Huth --- tests/check-block.sh | 5 + 1 file changed, 5 insertions(+) diff --git a/tests/check-block.sh b/tests/check-block.sh index c8b6cec3f6..679aedec50 100755 --- a/tests/check-block.sh +++ b/tests/check-block.sh @@ -21,6 +21,11 @@ if grep -q "

Re: [Qemu-block] [Qemu-devel] [PULL 2/3] tests: Run the iotests during "make check" again

2019-08-23 Thread Thomas Huth
On 8/23/19 9:12 AM, Thomas Huth wrote: > On 8/23/19 12:34 AM, Paolo Bonzini wrote: >> On 17/08/19 10:54, Thomas Huth wrote: >>> People often forget to run the iotests before submitting patches or pull >>> requests - this is likely due to the fact that we do not r

Re: [Qemu-block] [Qemu-devel] [PATCH] tests/check-block: Skip iotests when sanitizers are enabled

2019-08-23 Thread Thomas Huth
On 8/23/19 11:04 AM, Peter Maydell wrote: > On Fri, 23 Aug 2019 at 09:43, Thomas Huth wrote: >> >> The sanitizers (especially the address sanitizer from Clang) are >> sometimes printing out warnings or false positives - this spoils >> the output of the iotests, causin

Re: [Qemu-block] [Qemu-devel] [PATCH] tests/check-block: Skip iotests when sanitizers are enabled

2019-08-23 Thread Thomas Huth
On 8/23/19 11:53 AM, Peter Maydell wrote: > On Fri, 23 Aug 2019 at 10:35, Thomas Huth wrote: >> >> On 8/23/19 11:04 AM, Peter Maydell wrote: >>> On Fri, 23 Aug 2019 at 09:43, Thomas Huth wrote: >>>> >>>> The sanitizers (especially the address sanit

[Qemu-block] [PATCH v2] iotests: Check for enabled drivers before testing them

2019-08-23 Thread Thomas Huth
qcow2" and "file" drivers are always available - otherwise it does not make sense to run "make check-block" at all (which only tests with qcow2 by default). Signed-off-by: Thomas Huth --- v2: - Update the check in _require_drivers() according to Max' suggestion - Remove su

[Qemu-block] [PATCH] tests/qemu-iotests/check: Replace "tests" with "iotests" in final status text

2019-09-06 Thread Thomas Huth
nce the output might be mixed with the other tests. Thus change the word "tests" here to "iotests" instead to avoid confusion. Signed-off-by: Thomas Huth --- tests/qemu-iotests/check | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/qemu-iotest

Re: [Qemu-block] [PATCH 0/7] Move qtests to a separate folder

2019-09-11 Thread Thomas Huth
On 11/09/2019 08.58, Kevin Wolf wrote: > Am 10.09.2019 um 21:07 hat Eric Blake geschrieben: >> On 9/10/19 1:58 PM, Thomas Huth wrote: >>> Our "tests" directory is very overcrowded - we store the qtests, >>> unit test and other files there. That makes it

Re: [Qemu-block] [PATCH] tests/Makefile: Do not print the name of the check-block.sh shell script

2019-09-10 Thread Thomas Huth
On 10/09/2019 12.53, Max Reitz wrote: > On 06.09.19 13:35, Thomas Huth wrote: >> The check script is already printing out which iotest is currently >> running, so printing out the name of the check-block.sh shell script >> looks superfluous here. >> >> Signed-off-

Re: [Qemu-block] [PATCH 0/7] Move qtests to a separate folder

2019-09-11 Thread Thomas Huth
On 11/09/2019 10.54, Kevin Wolf wrote: > Am 11.09.2019 um 10:01 hat Thomas Huth geschrieben: >> On 11/09/2019 08.58, Kevin Wolf wrote: >>> Am 10.09.2019 um 21:07 hat Eric Blake geschrieben: >>>> On 9/10/19 1:58 PM, Thomas Huth wrote: >>>>> Our &qu

[Qemu-block] [PATCH] tests/Makefile: Do not print the name of the check-block.sh shell script

2019-09-06 Thread Thomas Huth
The check script is already printing out which iotest is currently running, so printing out the name of the check-block.sh shell script looks superfluous here. Signed-off-by: Thomas Huth --- tests/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests

Re: [Qemu-block] [Qemu-devel] [PATCH] iotests: Require Python 3.5 or later

2019-09-18 Thread Thomas Huth
t;$source_iotests/$seq")" == "#!/usr/bin/env > python" ]; then > -run_command="$PYTHON $seq" > +if $python_usable; then > +run_command="$PYTHON $seq" > +else > + run_command="false" > +echo "Unsupported Python version" > $seq.notrun > +fi > else > run_command="./$seq" > fi > Reviewed-by: Thomas Huth

Re: [Qemu-block] [Qemu-devel] [PATCH v4 1/4] iotests: add script_initialize

2019-09-18 Thread Thomas Huth
On 18/09/2019 00.29, John Snow wrote: > > > On 9/16/19 10:56 AM, Vladimir Sementsov-Ogievskiy wrote: [...] >> Finally do we support something except linux for iotests? >> for bash tests _supported_os also used only with "Linux" in 87 tests.. The iotests in the "auto" group are supposed to work

Re: [Qemu-block] [Qemu-devel] [PATCH] tests: Set read-zeroes on for null-co driver

2019-07-30 Thread Thomas Huth
On 30/07/2019 14.52, Thomas Huth wrote: > On 29/07/2019 14.46, Andrey Shinkevich wrote: >> This patch is to reduce the number of Valgrind report messages about >> using uninitialized memory with the null-co driver. It helps to filter >> real memory issues and is the same work

Re: [Qemu-block] [PATCH] tests: Set read-zeroes on for null-co driver

2019-07-30 Thread Thomas Huth
On 29/07/2019 14.46, Andrey Shinkevich wrote: > This patch is to reduce the number of Valgrind report messages about > using uninitialized memory with the null-co driver. It helps to filter > real memory issues and is the same work done for the iotests with the > commit ID a6862418fec4072. > >

[Qemu-block] [PATCH] tests/qemu-iotests: Don't use 'seq' in the iotests

2019-07-23 Thread Thomas Huth
the built-in double parentheses for the for-loops instead. Signed-off-by: Thomas Huth --- tests/qemu-iotests/007| 2 +- tests/qemu-iotests/011| 2 +- tests/qemu-iotests/032| 2 +- tests/qemu-iotests/035| 2 +- tests/qemu-iotests/037| 2

Re: [Qemu-block] [PATCH v2 4/4] gitlab-ci: Remove qcow2 tests that are handled by "make check" already

2019-07-16 Thread Thomas Huth
On 16/07/2019 17.41, Max Reitz wrote: > On 16.07.19 14:28, Thomas Huth wrote: >> Since most iotests are now run during "make check" already, we do not >> need to test them explicitly from the gitlab-ci.yml script anymore. >> And while we're at it, add some of the ne

Re: [Qemu-block] [PATCH v2 2/4] tests/qemu-iotests/group: Remove some more tests from the "auto" group

2019-07-18 Thread Thomas Huth
On 16/07/2019 18.12, Max Reitz wrote: > On 16.07.19 18:09, Eric Blake wrote: >> On 7/16/19 10:58 AM, Max Reitz wrote: [...] Is there any way to create our sockets somewhere under /tmp instead of inside tests/qemu-iotests, so that we have a shorter filename for sockets no matter how

[Qemu-block] qemu-iotests 069 and 111 are failing on NetBSD

2019-07-24 Thread Thomas Huth
In case somebody is interested, two of the "auto" iotests are failing on NetBSD due to non-matching output: TESTiotest-qcow2: 069 [fail] --- /var/tmp/qemu-test.1BMupF/tests/qemu-iotests/069.out2019-07-24 09:19:22.0 + +++

Re: [Qemu-block] [PATCH v2 3/4] tests: Run the iotests during "make check" again

2019-07-17 Thread Thomas Huth
On 16/07/2019 17.37, Max Reitz wrote: > On 16.07.19 14:28, Thomas Huth wrote: >> People often forget to run the iotests before submitting patches or pull >> requests - this is likely due to the fact that we do not run the tests >> during our mandatory "make check"

[Qemu-block] iotest 141 fails with qed

2019-07-17 Thread Thomas Huth
FWIW, I've got a new iotest failure with current master branch: $ ./check -qed 141 QEMU -- "/tmp/qemu/tests/qemu-iotests/../../x86_64-softmmu/qemu-system-x86_64" -nodefaults -machine accel=qtest QEMU_IMG -- "/tmp/qemu/tests/qemu-iotests/../../qemu-img" QEMU_IO --

[Qemu-block] [PATCH v3 1/4] tests/qemu-iotests/check: Allow tests without groups

2019-07-17 Thread Thomas Huth
ove spaces at the end of lines automatically. Thus let's fix the regular expressions so that it is also possible to have lines with one test number only in the group file. Suggested-by: Max Reitz Reviewed-by: Alex Bennée Reviewed-by: Max Reitz Signed-off-by: Thomas Huth --- tests/qemu-iotests/check |

[Qemu-block] [PATCH v3 4/4] gitlab-ci: Remove qcow2 tests that are handled by "make check" already

2019-07-17 Thread Thomas Huth
Since most iotests are now run during "make check" already, we do not need to test them explicitly from the gitlab-ci.yml script anymore. And while we're at it, add some of the new non-auto tests >= 246 instead. Signed-off-by: Thomas Huth --- .gitlab-ci.yml | 13 - 1 fi

[Qemu-block] [PATCH v3 2/4] tests/qemu-iotests/group: Remove some more tests from the "auto" group

2019-07-17 Thread Thomas Huth
Remove some more tests from the "auto" group that either have issues in certain environments (like macOS or FreeBSD, or on certain file systems like ZFS or tmpfs), do not work with the qcow2 format, or that are simply taking too much time. Reviewed-by: Max Reitz Signed-off-by: T

[Qemu-block] [PATCH v3 0/4] Enable iotests during "make check"

2019-07-17 Thread Thomas Huth
pport migration) v2: - Added new patch to allow tests without groups, removed the "o_direct" group again. - Removed some more tests from the "auto" group, like 197 and 215 which were sometimes causing the CI pipelines to fail on gitlab - Added a patch to remove the "

[Qemu-block] [PATCH v3 3/4] tests: Run the iotests during "make check" again

2019-07-17 Thread Thomas Huth
script since we do not need that anymore (and having two shell wrapper scripts around the block tests seems rather confusing than helpful). Signed-off-by: Thomas Huth [AJB: -makecheck to check-block.sh, move check-block to start and gate it] Signed-off-by: Alex Bennée --- tests/Makefile.include

Re: [Qemu-block] [Qemu-devel] qemu-iotests 069 and 111 are failing on NetBSD

2019-07-25 Thread Thomas Huth
On 24/07/2019 18.29, Paolo Bonzini wrote: > On 24/07/19 11:34, Thomas Huth wrote: >> In case somebody is interested, two of the "auto" iotests are failing >> on NetBSD due to non-matching output: >> >> TESTiotest-qcow2: 069 [fail] >> --- /var/tmp/

[Qemu-block] qemu-iotest 059 fails with vmdk

2019-07-22 Thread Thomas Huth
Not sure if it has been reported before, but test 059 currently fails: 059 fail [14:55:21] [14:55:26]output mismatch (see 059.out.bad) --- /home/thuth/devel/qemu/tests/qemu-iotests/059.out 2019-07-19 10:19:18.0 +0200 +++

Re: [PATCH v2 2/2] iotests: Remove Python 2 compatibility code

2019-09-19 Thread Thomas Huth
t-injector.py > @@ -48,10 +48,9 @@ import sys > import socket > import struct > import collections > -if sys.version_info.major >= 3: > -import configparser > -else: > -import ConfigParser as configparser > +import configparser > + > +assert sys.version_info >= (3,6) > > FAKE_DISK_SIZE = 8 * 1024 * 1024 * 1024 # 8 GB > Reviewed-by: Thomas Huth

Re: [PATCH v2 1/2] iotests: Require Python 3.6 or later

2019-09-19 Thread Thomas Huth
if $python_usable; then > +run_command="$PYTHON $seq" > +else > + run_command="false" > +echo "Unsupported Python version" > $seq.notrun > +fi > else > run_command="./$seq" > fi > Reviewed-by: Thomas Huth

Re: [PATCH v5 1/5] iotests: remove 'linux' from default supported platforms

2019-10-01 Thread Thomas Huth
On 01/10/2019 20.44, Max Reitz wrote: [...] > As I have said, the conceptual problem is that the iotests now run as > part of make check. As such, allowing auto tests to run on non-Linux > platforms may introduce build failures that I cannot do anything about. Well, simply run "make

Re: [PATCH v5 1/5] iotests: remove 'linux' from default supported platforms

2019-10-02 Thread Thomas Huth
On 02/10/2019 13.57, Max Reitz wrote: > On 02.10.19 06:46, Thomas Huth wrote: >> [...] >> Max, I can understand that you are a little bit annoyed that this "make >> check with iotests" caused some extra hurdles for you. But honestly, >> removing that agai

Re: [PATCH v5 1/5] iotests: remove 'linux' from default supported platforms

2019-10-02 Thread Thomas Huth
On 02/10/2019 15.36, Max Reitz wrote: [...] > Or can we have some middle ground? Something that runs on some CI > systems (and notifies me and others) but won’t result in pull requests > being rejected or cause make check failures? Yes, I think that might be an option... Since many developers

Re: [PATCH] iotests: Do not run the iotests during "make check" anymore

2019-10-02 Thread Thomas Huth
On 02/10/2019 17.03, Daniel P. Berrangé wrote: > On Wed, Oct 02, 2019 at 04:21:46PM +0200, Thomas Huth wrote: >> Running the iotests during "make check" is causing more headaches than >> benefits for the block layer maintainers, so let's disable the iotests >

[PATCH] iotests: Do not run the iotests during "make check" anymore

2019-10-02 Thread Thomas Huth
Running the iotests during "make check" is causing more headaches than benefits for the block layer maintainers, so let's disable the iotests during "make check" again. Signed-off-by: Thomas Huth --- tests/Makefile.include | 2 +- tests/qemu-iotests/group | 2 +- 2 files c

Re: [PATCH] iotests: Do not run the iotests during "make check" anymore

2019-10-02 Thread Thomas Huth
On 02/10/2019 19.32, Alex Bennée wrote: > > Daniel P. Berrangé writes: > >> On Wed, Oct 02, 2019 at 04:21:46PM +0200, Thomas Huth wrote: >>> Running the iotests during "make check" is causing more headaches than >>> benefits for the block laye

Re: [PATCH v5 1/5] iotests: remove 'linux' from default supported platforms

2019-10-02 Thread Thomas Huth
On 02/10/2019 18.44, Kevin Wolf wrote: > Not sure where in this thread to reply, but since my name is mentioned > in this mail, it might at least be not the worst one. > > Am 02.10.2019 um 13:57 hat Max Reitz geschrieben: >> On 02.10.19 06:46, Thomas Huth wrote: >>> On

Re: [PATCH v3 4/6] iotests: Skip "make check-block" if QEMU does not support virtio-blk

2019-11-11 Thread Thomas Huth
On 30/10/2019 12.21, Max Reitz wrote: > On 22.10.19 09:21, Thomas Huth wrote: >> The next patch is going to add some python-based tests to the "auto" >> group, and these tests require virtio-blk to work properly. Running >> iotests without virtio-blk likely does

Re: [PATCH 0/6] Enable Travis builds on arm64, ppc64le and s390x

2019-12-04 Thread Thomas Huth
On 27/11/2019 09.50, Thomas Huth wrote: > On 25/11/2019 11.28, Alex Bennée wrote: >> >> Alex Bennée writes: >> >>> Thomas Huth writes: >>> >>>> Travis recently added build hosts for arm64, ppc64le and s390x, so >>>> this is a welcome

[PATCH v2 0/7] Enable Travis builds on arm64, ppc64le and s390x

2019-12-04 Thread Thomas Huth
e crashing on bionic on these hosts. - Dropped "libcap-dev" from the package list since it will be replaced by libcapng-dev soon. Alex Bennée (1): configure: allow disable of cross compilation containers Thomas Huth (6): iotests: Provide a function for checking the creation of huge

[PATCH v2 4/7] tests/hd-geo-test: Skip test when images can not be created

2019-12-04 Thread Thomas Huth
Reviewed-by: Alex Bennée Signed-off-by: Thomas Huth --- tests/hd-geo-test.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/hd-geo-test.c b/tests/hd-geo-test.c index 7e86c5416c..a249800544 100644 --- a/tests/hd-geo-test.c +++ b/tests/hd-geo-test.c @@ -34,8 +34,13

[PATCH v2 7/7] travis.yml: Enable builds on arm64, ppc64le and s390x

2019-12-04 Thread Thomas Huth
/ fixed. Signed-off-by: Thomas Huth --- .travis.yml | 86 + 1 file changed, 86 insertions(+) diff --git a/.travis.yml b/.travis.yml index 445b0646c1..0e6458b0af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -354,6 +354,92 @@ matrix: - TEST

[PATCH v2 2/7] iotests: Skip test 060 if it is not possible to create large files

2019-12-04 Thread Thomas Huth
and skip the test if that's not the case. Signed-off-by: Thomas Huth --- tests/qemu-iotests/060 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/qemu-iotests/060 b/tests/qemu-iotests/060 index b91d8321bb..d96f17a484 100755 --- a/tests/qemu-iotests/060 +++ b/tests/qemu-iotests/060

Re: virtiofsd: Where should it live?

2019-12-04 Thread Thomas Huth
On 04/12/2019 14.28, Kevin Wolf wrote: > Am 04.12.2019 um 09:17 hat Gerd Hoffmann geschrieben: >> Hi, >> | ... +- qemu-edid >>> >>> Has its own MAINTAINERS section, together with hw/display/edit* and >>> include/hw/display/edid.h. I'm not sure moving it hw/display/ is a good

[PATCH v2 1/7] iotests: Provide a function for checking the creation of huge files

2019-12-04 Thread Thomas Huth
checks in the iotests 005 and 220 with this function. Reviewed-by: Alex Bennée Signed-off-by: Thomas Huth --- tests/qemu-iotests/005 | 5 + tests/qemu-iotests/220 | 6 ++ tests/qemu-iotests/common.rc | 10 ++ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git

[PATCH v2 3/7] iotests: Skip test 079 if it is not possible to create large files

2019-12-04 Thread Thomas Huth
first whether we can really create such files before executing the test. Signed-off-by: Thomas Huth --- tests/qemu-iotests/079 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/qemu-iotests/079 b/tests/qemu-iotests/079 index 81f0c21f53..78536d3bbf 100755 --- a/tests/qemu-iotests/079

[PATCH v2 6/7] configure: allow disable of cross compilation containers

2019-12-04 Thread Thomas Huth
From: Alex Bennée Our docker infrastructure isn't quite as multiarch as we would wish so let's allow the user to disable it if they want. This will allow us to use still run check-tcg on non-x86 CI setups. Signed-off-by: Alex Bennée Reviewed-by: Stefan Weil Signed-off-by: Thomas Huth

[PATCH v2 5/7] tests/test-util-filemonitor: Skip test on non-x86 Travis containers

2019-12-04 Thread Thomas Huth
test-util-filemonitor fails in restricted non-x86 Travis containers since they apparently blacklisted some required system calls there. Let's simply skip the test if we detect such an environment. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Signed-off-by: Thomas Huth

Re: [PATCH] virtio-blk: deprecate SCSI passthrough

2019-12-14 Thread Thomas Huth
virtio-scsi device was introduced for > +full SCSI support. Use virtio-scsi instead when SCSI passthrough is > required. > + > +Note this also applies to ``-device virtio-blk-pci,scsi=on|off'', which is an > +alias. ... and "-device virtio-blk-ccw,scsi=on|off". With that added: Reviewed-by: Thomas Huth

Re: [PATCH] tests: skip block layer tests if !CONFIG_TOOLS

2019-12-11 Thread Thomas Huth
On 11/12/2019 15.24, Paolo Bonzini wrote: > From: Marc-André Lureau > > The block tests, as well as ahci-test needs qemu-img. Do not run > them if it wasn't built. > > Signed-off-by: Marc-André Lureau > Signed-off-by: Paolo Bonzini > --- > tests/Makefile.include | 4 > 1 file changed,

Re: [PATCH v2 3/7] iotests: Skip test 079 if it is not possible to create large files

2019-12-06 Thread Thomas Huth
On 04/12/2019 16.46, Thomas Huth wrote: > Test 079 fails in the arm64, s390x and ppc64le LXD containers on Travis For the record: It's working on s390x as noticed by Cleber. It's only failing on arm64 and ppc64le. After fixing the problem with 060 which fails on all three architectures, I

Re: iotest failure -- test possibly not using sufficiently unique temp filename?

2019-10-18 Thread Thomas Huth
On 18/10/2019 10.42, Max Reitz wrote: > On 18.10.19 08:20, Thomas Huth wrote: >> On 17/10/2019 18.41, Peter Maydell wrote: >>> On Fri, 27 Sep 2019 at 17:44, Max Reitz wrote: >>>> >>>> On 27.09.19 18:39, Peter Maydell wrote: >>>>> Hi; I jus

Re: iotest failure -- test possibly not using sufficiently unique temp filename?

2019-10-18 Thread Thomas Huth
On 17/10/2019 18.41, Peter Maydell wrote: > On Fri, 27 Sep 2019 at 17:44, Max Reitz wrote: >> >> On 27.09.19 18:39, Peter Maydell wrote: >>> Hi; I just saw this iotest failure (on an s390x box, as it happens): >>> >>> TESTiotest-qcow2: 130 [fail] >>> QEMU -- >>>

[PATCH v2 6/6] iotests: Remove 130 from the "auto" group

2019-10-21 Thread Thomas Huth
roup so that it does not gate the pull requests. Reviewed-by: John Snow Signed-off-by: Thomas Huth --- tests/qemu-iotests/group | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group index 2dd671b82e..9f99f8623f 100644 --- a/tests/qemu

[PATCH v2 4/6] iotests: Skip "make check-block" if QEMU does not support virtio-blk

2019-10-21 Thread Thomas Huth
every test (which does not sound very appealing), let's rather add a check for this at the top level in the check-block.sh script instead (so that it is possible to run "make check" without the "check-block" part for qemu-system-tricore for example). Reviewed-by: Max Reitz Signed-o

[PATCH v2 3/6] iotests: Test 183 does not work on macOS and OpenBSD

2019-10-21 Thread Thomas Huth
When running 183 in Cirrus-CI on macOS, or with our vm-build-openbsd target, it fails with an "Timeout waiting for return on handle 0" error. Let's mark it as supported only on systems where the test is working fine (i.e. Linux, FreeBSD and NetBSD). Signed-off-by: Thomas Huth ---

Re: [PATCH v3 01/16] tests/virtio-blk-test: read config space after feature negotiation

2019-10-21 Thread Thomas Huth
TIO 1.0 support. > > Signed-off-by: Stefan Hajnoczi > --- > tests/virtio-blk-test.c | 33 - > 1 file changed, 20 insertions(+), 13 deletions(-) Reviewed-by: Thomas Huth

[PATCH v2 0/6] Enable more iotests during "make check-block"

2019-10-21 Thread Thomas Huth
'grep -q' instead of 'grep' for grep'ing silently - Added the patch to disable 130 from the "auto" group John Snow (1): iotests: remove 'linux' from default supported platforms Thomas Huth (5): iotests: Test 041 only works on certain systems iotests: Test 183 does not work on macOS

Re: [PATCH v3 02/16] libqos: read QVIRTIO_MMIO_VERSION register

2019-10-21 Thread Thomas Huth
g on the version. > > Signed-off-by: Stefan Hajnoczi > --- > tests/libqos/virtio-mmio.h | 1 + > tests/libqos/virtio-mmio.c | 3 +++ > 2 files changed, 4 insertions(+) Reviewed-by: Thomas Huth

Re: [PATCH v3 03/16] libqos: extend feature bits to 64-bit

2019-10-21 Thread Thomas Huth
2 ++-- > tests/libqos/virtio.c | 4 ++-- > tests/virtio-blk-test.c| 8 > 6 files changed, 43 insertions(+), 27 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH v3 07/16] libqos: enforce Device Initialization order

2019-10-21 Thread Thomas Huth
On 19/10/2019 08.38, Stefan Hajnoczi wrote: > According to VIRTIO 1.1 "3.1.1 Driver Requirements: Device > Initialization", configuration space and virtqueues cannot be accessed > before features have been negotiated. Enforce this requirement. > > Signed-off-by: Stefan Hajnoczi > --- >

Re: [PATCH v3 06/16] libqos: add missing virtio-9p feature negotiation

2019-10-21 Thread Thomas Huth
On 19/10/2019 08.38, Stefan Hajnoczi wrote: > VIRTIO Device Initialization requires feature negotiation. The libqos > virtio-9p driver lacks feature negotiation and is therefore > non-compliant. > > Signed-off-by: Stefan Hajnoczi > --- > tests/libqos/virtio-9p.c | 6 ++ > 1 file changed, 6

Re: [PATCH v3 05/16] tests/virtio-blk-test: set up virtqueue after feature negotiation

2019-10-21 Thread Thomas Huth
lloc, 0); > - > -test_basic(dev, t_alloc, vq); > +vq = test_basic(dev, t_alloc); > > qmp_discard_response("{ 'execute': 'block_resize', " > " 'arguments': { 'device': 'drive0', " > Reviewed-by: Thomas Huth

Re: [PATCH v3 14/16] libqos: make the virtio-pci BAR index configurable

2019-10-21 Thread Thomas Huth
- > tests/libqos/virtio-pci.h | 2 ++ > tests/libqos/virtio-pci.c | 3 ++- > 2 files changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Thomas Huth

Re: [PATCH v3 04/16] virtio-scsi-test: add missing feature negotiation

2019-10-21 Thread Thomas Huth
On 19/10/2019 08.37, Stefan Hajnoczi wrote: > VIRTIO Device Initialization requires feature negotiation. Currently > virtio-scsi-test.c is non-compliant. > > Signed-off-by: Stefan Hajnoczi > --- > tests/virtio-scsi-test.c | 8 > 1 file changed, 8 insertions(+) > > diff --git

Re: [PATCH v3 08/16] libqos: implement VIRTIO 1.0 FEATURES_OK step

2019-10-21 Thread Thomas Huth
On 19/10/2019 08.38, Stefan Hajnoczi wrote: > Device initialization has an extra step in VIRTIO 1.0. The FEATURES_OK > status bit is set to indicate that feature negotiation has completed. > The driver then reads the status register again to check that the device > agrees with the final features.

Re: [PATCH v3 09/16] libqos: access VIRTIO 1.0 vring in little-endian

2019-10-21 Thread Thomas Huth
;used, 0); > +qvirtio_writew(vq->vdev, qts, vq->used, 0); > /* vq->used->avail_event */ > -qtest_writew(qts, vq->used + 2 + sizeof(struct vring_used_elem) * > vq->size, > - 0); > +qvirtio_writew(vq->vdev, qts, vq->used + 2 + > +sizeof(struct vring_used_elem) * vq->size, 0); Fix indentation in the above line? Apart from that, patch looks fine to me. Reviewed-by: Thomas Huth

Re: [PATCH v2 0/6] Enable more iotests during "make check-block"

2019-10-21 Thread Thomas Huth
On 21/10/2019 15.09, no-re...@patchew.org wrote: > Patchew URL: https://patchew.org/QEMU/20191021105350.1710-1-th...@redhat.com/ > > > > Hi, > > This series failed the docker-quick@centos7 build test. Please find the > testing commands and > their output below. If you have Docker installed,

Re: [PATCH] iotests: Remove 130 from the "auto" group

2019-10-21 Thread Thomas Huth
On 18/10/2019 18.51, Bruce Rogers wrote: > On Fri, 2019-10-18 at 18:10 +0200, Thomas Huth wrote: >> Peter hit a "Could not open 'TEST_DIR/t.IMGFMT': Failed to get shared >> 'write' lock - Is another process using the image >> [TEST_DIR/t.IMGFMT]?" >> err

Re: [PATCH v3 10/16] libqos: add iteration support to qpci_find_capability()

2019-10-21 Thread Thomas Huth
ent qpci_find_capability() > --- > tests/libqos/pci.h | 2 +- > tests/libqos/pci.c | 30 -- > 2 files changed, 25 insertions(+), 7 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH 2/5] iotests: Test 041 does not work on macOS

2019-10-21 Thread Thomas Huth
On 18/10/2019 18.19, Max Reitz wrote: > On 11.10.19 16:50, Thomas Huth wrote: >> 041 works fine on Linux, FreeBSD and OpenBSD, so let's mark it as >> only supported on these systems. >> >> Signed-off-by: Thomas Huth >> --- >> tests/qemu-iotests/041 | 3 ++-

<    1   2   3   4   5   6   7   8   9   10   >