From patchwork Tue Jan 21 09:51:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 11343265 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5C89714B4 for ; Tue, 21 Jan 2020 09:53:24 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2258C20882 for ; Tue, 21 Jan 2020 09:53:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Azjqx8F+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2258C20882 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:50730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itqDq-0000Zm-Rm for patchwork-qemu-devel@patchwork.kernel.org; Tue, 21 Jan 2020 04:53:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60392) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itqCm-0007Ld-W1 for qemu-devel@nongnu.org; Tue, 21 Jan 2020 04:52:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itqCl-0005Q7-Mg for qemu-devel@nongnu.org; Tue, 21 Jan 2020 04:52:16 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:58226 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1itqCl-0005PQ-JN for qemu-devel@nongnu.org; Tue, 21 Jan 2020 04:52:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579600334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4CduMWdHUwzVNyC5T4K2P0diyQpYZJo5mswjRO8vVvI=; b=Azjqx8F+tEoAzg16tB6wpqHZPMVywNDuxnNiWKQ2fVOxnUzyn5JRbJCxFrsrBaCjRFEiE2 QcV1MsKTzmVw7UdV5JoY7h0zLq5lX9W61Vf7TKIgglOIe+e/trdoh9YYhPU/GSk4auiNoD RhXG0UqY3dlgII9GQrNgU0aauiBqU2I= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-232-EZeyxNBFPtSA5doRvJpimg-1; Tue, 21 Jan 2020 04:52:11 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DFC328010C5; Tue, 21 Jan 2020 09:52:10 +0000 (UTC) Received: from thuth.com (ovpn-116-121.ams2.redhat.com [10.36.116.121]) by smtp.corp.redhat.com (Postfix) with ESMTP id 040101001DC0; Tue, 21 Jan 2020 09:52:08 +0000 (UTC) From: Thomas Huth To: qemu-devel@nongnu.org, Max Reitz , Kevin Wolf Subject: [PATCH v5 0/6] Enable more iotests during "make check-block" Date: Tue, 21 Jan 2020 10:51:59 +0100 Message-Id: <20200121095205.26323-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: EZeyxNBFPtSA5doRvJpimg-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.61 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-block@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" As discussed here: https://lists.gnu.org/archive/html/qemu-devel/2019-10/msg00697.html and here: https://lists.gnu.org/archive/html/qemu-devel/2019-10/msg01388.html it would be good to have some more valuable iotests enabled in the "auto" group to get better iotest coverage during "make check". Since these Python-based tests require a QEMU that features a 'virtio-blk' device, we can only run the Python tests if this device is available. With binaries like qemu-system-tricore, the Python-based tests will be skipped. v5: - Added $python_unusable_because text in the fifth patch - Rebased to master and checked that everything still works fine on Travis-CI, Cirrus-CI, Gitlab-CI, OpenBSD and NetBSD. v4: - The check for 'virtio-blk' is now done in the tests/qemu-iotests/check script instead of tests/check-block.sh (to avoid to duplicate the code that searches for the right QEMU binary - and we can also still run the shell-based tests this way). - Added the new patch to check for the availability of virtio devices in the iotests 127 and 267. - The patch that drops test 130 from the "auto" group has already been merged and thus been dropped from this series. v3: - Test 183 fails on Patchew, so I removed it from the "auto" group again v2: - Checked the iotests with NetBSD, too (now that Eduardo has re-activated Gerd's patches for creating NetBSD VM images) - Use 'openbsd' instead of 'openbsd6' - Use '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 and OpenBSD iotests: Check for the availability of the required devices in 267 and 127 iotests: Skip Python-based tests if QEMU does not support virtio-blk iotests: Enable more tests in the 'auto' group to improve test coverage tests/qemu-iotests/041 | 3 ++- tests/qemu-iotests/127 | 2 ++ tests/qemu-iotests/183 | 1 + tests/qemu-iotests/267 | 2 ++ tests/qemu-iotests/check | 12 ++++++++++-- tests/qemu-iotests/common.rc | 14 ++++++++++++++ tests/qemu-iotests/group | 14 +++++++------- tests/qemu-iotests/iotests.py | 16 +++++++++++----- 8 files changed, 49 insertions(+), 15 deletions(-)