From nobody Thu Apr 3 11:51:29 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1742390373; cv=none; d=zohomail.com; s=zohoarc; b=MeF44SDH9sQ4OSP0bRDyfiPl2ZyBW8pne/toeAw8Wcg/wxD+XRcUj+ozLGxazuOFmLUqRJik1Q88x6vQg7gsfi9KYWSrbUuK458W0JenzHQ/2KXr31K1jVhogGSQSa+BUAWgCFpu5UiZI3IbhWRjyLS0Vsc75PnruHGq1NuXpVM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742390373; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=73QJOaVMEeXkzzjEzDUheWqYDMqAQiwM38cP8w16Fyg=; b=J/Wvi7muZY3vDUXsI81s1UGUp1973tClDAMxloIfKn2uy2NhPYs+4AZMsRQes9CBWxk7Mo3+BzPQ89bAeLMHBFBnoSlV95om1cJf0oPBerNc/L7tR/zC0jIZPHItkz96wJXBPCBz12Gk+kRfJXrTBSlogLNn3UuKko2xS7g1ZUg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742390373040338.1297847157906; Wed, 19 Mar 2025 06:19:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tutKH-0008Qo-Gz; Wed, 19 Mar 2025 09:19:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKA-0008QF-DO for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutK8-0007bO-MC for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:10 -0400 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-499-qmUs4lEmPaGcmmNlt-QTcQ-1; Wed, 19 Mar 2025 09:19:04 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 915FE19560B6; Wed, 19 Mar 2025 13:19:02 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.32.212]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DEC8F3001D0E; Wed, 19 Mar 2025 13:18:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742390347; 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: in-reply-to:in-reply-to:references:references; bh=73QJOaVMEeXkzzjEzDUheWqYDMqAQiwM38cP8w16Fyg=; b=GyfCF1ZjJqBr/8hQUxqUK8uLgQ9AG8O05Xnzrq/InSLWYvbeziPqFwTiqI3wKQDJoY2s9/ 6G9fweYpFaFp4DMelXSip8RJUO8HaknfQqL780V8fDFaUyAjRCRJ+AYBVNPg5fkDvvGLgR EbP2X7EJjHkk/r9aCCTvJMqRbQQOuvA= X-MC-Unique: qmUs4lEmPaGcmmNlt-QTcQ-1 X-Mimecast-MFC-AGG-ID: qmUs4lEmPaGcmmNlt-QTcQ_1742390343 From: Thomas Huth To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 1/8] hw/virtio: Also include md stubs in case CONFIG_VIRTIO_PCI is not set Date: Wed, 19 Mar 2025 14:18:44 +0100 Message-ID: <20250319131851.148817-2-thuth@redhat.com> In-Reply-To: <20250319131851.148817-1-thuth@redhat.com> References: <20250319131851.148817-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.337, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1742390374669019000 From: Thomas Huth For the s390x target, it's possible to build the QEMU binary without CONFIG_VIRTIO_PCI and only have the virtio-mem device via the ccw transport. In that case, QEMU currently fails to link correctly: /usr/bin/ld: libqemu-s390x-softmmu.a.p/hw_s390x_s390-virtio-ccw.c.o: in fu= nction `s390_machine_device_pre_plug': ../hw/s390x/s390-virtio-ccw.c:579:(.text+0x1e96): undefined reference to `= virtio_md_pci_pre_plug' /usr/bin/ld: libqemu-s390x-softmmu.a.p/hw_s390x_s390-virtio-ccw.c.o: in fu= nction `s390_machine_device_plug': ../hw/s390x/s390-virtio-ccw.c:608:(.text+0x21a4): undefined reference to `= virtio_md_pci_plug' /usr/bin/ld: libqemu-s390x-softmmu.a.p/hw_s390x_s390-virtio-ccw.c.o: in fu= nction `s390_machine_device_unplug_request': ../hw/s390x/s390-virtio-ccw.c:622:(.text+0x2334): undefined reference to `= virtio_md_pci_unplug_request' /usr/bin/ld: libqemu-s390x-softmmu.a.p/hw_s390x_s390-virtio-ccw.c.o: in fu= nction `s390_machine_device_unplug': ../hw/s390x/s390-virtio-ccw.c:633:(.text+0x2436): undefined reference to `= virtio_md_pci_unplug' clang: error: linker command failed with exit code 1 (use -v to see invoca= tion) We also need to include the stubs when CONFIG_VIRTIO_PCI is missing. Fixes: aa910c20ec5 ("s390x: virtio-mem support") Message-ID: <20250313063522.1348288-1-thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Thomas Huth --- hw/virtio/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/virtio/meson.build b/hw/virtio/meson.build index 19b04c4d9cc..164f6fd995a 100644 --- a/hw/virtio/meson.build +++ b/hw/virtio/meson.build @@ -90,7 +90,8 @@ specific_virtio_ss.add_all(when: 'CONFIG_VIRTIO_PCI', if_= true: virtio_pci_ss) system_ss.add_all(when: 'CONFIG_VIRTIO', if_true: system_virtio_ss) system_ss.add(when: 'CONFIG_VIRTIO', if_false: files('vhost-stub.c')) system_ss.add(when: 'CONFIG_VIRTIO', if_false: files('virtio-stub.c')) -system_ss.add(when: 'CONFIG_VIRTIO_MD', if_false: files('virtio-md-stubs.c= ')) +system_ss.add(when: ['CONFIG_VIRTIO_MD', 'CONFIG_VIRTIO_PCI'], + if_false: files('virtio-md-stubs.c')) =20 system_ss.add(files('virtio-hmp-cmds.c')) =20 --=20 2.48.1 From nobody Thu Apr 3 11:51:29 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1742390376; cv=none; d=zohomail.com; s=zohoarc; b=WV7zcT639NRZi8nv4fdZJwoE0wrsi5ft8GUWzl/atPmvc965ZNTwt7Bj5ALsWLAWN27Gw+/Aui63qwL4v2EhRogcfaajwMS7BVFZceycWaP0XznJ6w10IBhzRbAVVe6pQMlcPoiHvFPhVbNEj1FHRd4kgiH/70Kvyml10HKuXeM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742390376; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6MtNNvqh+vN9y/Inz/OaGyV7dlTQn+37pAmsKwDCQso=; b=nu7tXHH0h5Aou9KCYTybkQFS1J6yxOzomMwUeOxzUvykdHw0A6JHqFZUJoto01yv1pN7t5jqSHKCIVy9HEjhEc072QiHV9JezRmYXXPLhQiqvn/6gFJO5Lt/EDkRjVm13qZn+w+Tr58Jhgff4NOy4em2ypk8eGzooOijlwx2a68= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742390376440524.9612232532644; Wed, 19 Mar 2025 06:19:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tutKJ-0008Rt-Mq; Wed, 19 Mar 2025 09:19:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKF-0008Qq-PN for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKE-0007bw-5J for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:15 -0400 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-92-ey7tnfTYPkOr3XYGOHudew-1; Wed, 19 Mar 2025 09:19:09 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 77354180025A; Wed, 19 Mar 2025 13:19:08 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.32.212]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B04483001D0E; Wed, 19 Mar 2025 13:19:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742390353; 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: in-reply-to:in-reply-to:references:references; bh=6MtNNvqh+vN9y/Inz/OaGyV7dlTQn+37pAmsKwDCQso=; b=DMsiBUUJRRVW/Bb7Z4NGBFujXwVr5P/+jwnB9p1WY3wY5Z9MUDdAik3Gr0zyzCMcIV5OQJ kr+xryOAliVMeRqZDTXQgYyKr7CnlRGi0Fn706eUSNahjiFHrRVwI/vSxJcPOuLeGHSPHw 5lRkavHAnZSXn2wYFRshjvkmzgzDl44= X-MC-Unique: ey7tnfTYPkOr3XYGOHudew-1 X-Mimecast-MFC-AGG-ID: ey7tnfTYPkOr3XYGOHudew_1742390348 From: Thomas Huth To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , Niek Linnenbank , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 2/8] tests/functional/test_arm_orangepi: rename test class to 'OrangePiMachine' Date: Wed, 19 Mar 2025 14:18:45 +0100 Message-ID: <20250319131851.148817-3-thuth@redhat.com> In-Reply-To: <20250319131851.148817-1-thuth@redhat.com> References: <20250319131851.148817-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.337, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1742390376738019000 From: Niek Linnenbank The test class in this file contains all functional test cases for testing the Orange Pi PC board. It should be given a name matching the Qemu machine it covers. This commit sets the test class name to 'OrangePiMachine'. Signed-off-by: Niek Linnenbank Fixes: 380f7268b7b ("tests/functional: Convert the OrangePi tests to the f= unctional framework") Message-ID: <20250316210232.46298-1-nieklinnenbank@gmail.com> Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Thomas Huth --- tests/functional/test_arm_orangepi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/test_arm_orangepi.py b/tests/functional/test_= arm_orangepi.py index 18ee50216bb..28919391e5d 100755 --- a/tests/functional/test_arm_orangepi.py +++ b/tests/functional/test_arm_orangepi.py @@ -14,7 +14,7 @@ from qemu_test.utils import image_pow2ceil_expand =20 =20 -class BananaPiMachine(LinuxKernelTest): +class OrangePiMachine(LinuxKernelTest): =20 ASSET_DEB =3D Asset( ('https://apt.armbian.com/pool/main/l/linux-6.6.16/' --=20 2.48.1 From nobody Thu Apr 3 11:51:29 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1742390448; cv=none; d=zohomail.com; s=zohoarc; b=LhTHIKqrWLjdL18RbD6wzxaAmXc3EOYwq9APv4CNcTpxZo0fTTt/9TPOiBQjEFpvG48dlOXYcY8rM0eUKxLMi1dl/2yvIRJt9nxYKcT8dqDbUMnCntEwsZZ5T5R21FiFL/3sfT3BXI10BFmd7v+AuxJ8LBt3lBGEILLN2cIT8Pk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742390448; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yO8tatKd3Pm3cwIW7k7JzR0bRCuWoVaygtzUxWeAGQs=; b=jjm4KLSilEizBSzdtcAxPn0yMP/hWTrNw23Wa0Il6PDqFbyhysoDcpLh18EQihcdTFAsyGELK4x68fHlB1O+25SyCNqPUwCWDphvDD47FtZ9NrSJrvk44bPRXmZIIO9oRCSbKYl0UHIt14gMCvg0eMC6HHi+kG0QcMdyyE7GEQ0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742390448947789.9738161957209; Wed, 19 Mar 2025 06:20:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tutKK-0008SF-AN; Wed, 19 Mar 2025 09:19:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKI-0008Re-JM for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:18 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKG-0007cA-HV for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:17 -0400 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-227-_1cYEbWiO2COeHVdfJdBHg-1; Wed, 19 Mar 2025 09:19:12 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EB37F19560B2 for ; Wed, 19 Mar 2025 13:19:11 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.32.212]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 49A273001D12; Wed, 19 Mar 2025 13:19:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742390355; 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: in-reply-to:in-reply-to:references:references; bh=yO8tatKd3Pm3cwIW7k7JzR0bRCuWoVaygtzUxWeAGQs=; b=YR8w4r8TiLSmYj4mb1T/uosWInQnnG5fUWb7npOw3YEtlSFs7A3e/Oq6mfOGp8kVWgaAdA ENoDxwloJZ++tpmv74sWYD346M8lz06B5SwjuxAQ5Jlm9ksXpSBBNP1MMWcWIkXlkT8Tbu oTjUyXHf8dcB+lUCNPCqEuq4y96Wy/4= X-MC-Unique: _1cYEbWiO2COeHVdfJdBHg-1 X-Mimecast-MFC-AGG-ID: _1cYEbWiO2COeHVdfJdBHg_1742390352 From: Thomas Huth To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PULL 3/8] tests/functional: remove all class level fields Date: Wed, 19 Mar 2025 14:18:46 +0100 Message-ID: <20250319131851.148817-4-thuth@redhat.com> In-Reply-To: <20250319131851.148817-1-thuth@redhat.com> References: <20250319131851.148817-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.337, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1742390451305019100 From: Daniel P. Berrang=C3=A9 A number of fields are set at the class level on QemuBaseTest, even though the exact same named field is then set at the object level later in most cases. The 'self.logger' initialization in ACPI bits test needs to be removed since 'self.log' won't exist at that point in the flow. It already initialized 'self.logger' later in the setUp() method, so the __init__ method was redundant. Signed-off-by: Daniel P. Berrang=C3=A9 Message-ID: <20250317124300.84266-1-berrange@redhat.com> Reviewed-by: Thomas Huth Signed-off-by: Thomas Huth --- tests/functional/qemu_test/testcase.py | 6 ------ tests/functional/test_acpi_bits.py | 1 - 2 files changed, 7 deletions(-) diff --git a/tests/functional/qemu_test/testcase.py b/tests/functional/qemu= _test/testcase.py index 50d232a7c63..50c401b8c3c 100644 --- a/tests/functional/qemu_test/testcase.py +++ b/tests/functional/qemu_test/testcase.py @@ -33,12 +33,6 @@ =20 class QemuBaseTest(unittest.TestCase): =20 - arch =3D None - - workdir =3D None - log =3D None - logdir =3D None - ''' @params compressed: filename, Asset, or file-like object to uncompress @params format: optional compression format (gzip, lzma) diff --git a/tests/functional/test_acpi_bits.py b/tests/functional/test_acp= i_bits.py index 20da4356873..8e0563a97b1 100755 --- a/tests/functional/test_acpi_bits.py +++ b/tests/functional/test_acpi_bits.py @@ -119,7 +119,6 @@ def __init__(self, *args, **kwargs): =20 self._debugcon_addr =3D '0x403' self._debugcon_log =3D 'debugcon-log.txt' - self.logger =3D self.log =20 def _print_log(self, log): self.logger.info('\nlogs from biosbits follows:') --=20 2.48.1 From nobody Thu Apr 3 11:51:29 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1742390404; cv=none; d=zohomail.com; s=zohoarc; b=KZu1Wnx0J3cHsgLiK7ADJucPsF5v6u92zoqIO+3yOzvcUrVp4jxZJC1abBVfNczplAJRPNiYs3HZF3rsyIzwMvktQSlSbXpfD59JYatd3GIIq+zwgwoDItN662sQOeJLYNdfl3Cwu6hde1wRrqEIe4IIbPnAESY0Kj4e67zSGyo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742390404; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=4Vp6M3DS1yimPgQyOMPJWm61bCVrECfGASdThgLw2wU=; b=bZoNy8eQpnbLgnDHvO/sshvzX/6iUivKWd6OOs6fQQmhljJ1V94FhUfcHSrr7cH3ddwGQYCM+rAVGoJYn2tqAz4iLWMvj/U5UNpubaQfzbiS+mZtdm05Tef3mbs7Pwdcv/UIhha6qFfxiv5sc2clf7icUuPqO74dQNnArZkQDuk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742390404276700.5386979430144; Wed, 19 Mar 2025 06:20:04 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tutKM-0008Sq-OC; Wed, 19 Mar 2025 09:19:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKK-0008SM-Rp for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:21 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKJ-0007cu-7a for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:20 -0400 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-454-XTmrmyZ-PaWo9tqvN1-jTw-1; Wed, 19 Mar 2025 09:19:17 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2F0A618004A9; Wed, 19 Mar 2025 13:19:16 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.32.212]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 02DD33001D0E; Wed, 19 Mar 2025 13:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742390358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4Vp6M3DS1yimPgQyOMPJWm61bCVrECfGASdThgLw2wU=; b=Hqg1jm+8L2F/KcbIJgD6r0v20udf9KqWbaihcFSqnzC6LVGgKMO/45JWj1EUZ6ckaEWtMT V1bhAD/Du1Qdgr3BmiyRBJ13bqpkMqhGX2LDHOz9ePJ47ZThgxuF00H67q0XZ4YLApmavi QnTuYaLJzL73w7ASK1nS/qrnXOfUAnM= X-MC-Unique: XTmrmyZ-PaWo9tqvN1-jTw-1 X-Mimecast-MFC-AGG-ID: XTmrmyZ-PaWo9tqvN1-jTw_1742390356 From: Thomas Huth To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , Niek Linnenbank , Akihiko Odaki Subject: [PULL 4/8] docs/system: Use the meson binary from the pyvenv Date: Wed, 19 Mar 2025 14:18:47 +0100 Message-ID: <20250319131851.148817-5-thuth@redhat.com> In-Reply-To: <20250319131851.148817-1-thuth@redhat.com> References: <20250319131851.148817-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.337, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1742390407202019100 Content-Type: text/plain; charset="utf-8" From: Thomas Huth To avoid problems with the meson installation from the host system, we should always use the meson from our venv instead. Thus use this in the documentation, too. While we're at it, also mention that it has to be run from the build folder (in the igb.rst file; the other two files were already fine). Suggested-by: Niek Linnenbank Message-ID: <20250318055415.16501-1-thuth@redhat.com> Reviewed-by: Akihiko Odaki Reviewed-by: Niek Linnenbank Signed-off-by: Thomas Huth --- docs/system/arm/bananapi_m2u.rst | 2 +- docs/system/arm/orangepi.rst | 2 +- docs/system/devices/igb.rst | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/system/arm/bananapi_m2u.rst b/docs/system/arm/bananapi_m2= u.rst index d30db8d04c3..6efa222c16f 100644 --- a/docs/system/arm/bananapi_m2u.rst +++ b/docs/system/arm/bananapi_m2u.rst @@ -136,4 +136,4 @@ provide the following command: =20 $ cd qemu-build-dir $ QEMU_TEST_ALLOW_LARGE_STORAGE=3D1 \ - meson test --suite thorough func-arm-arm_bpim2u + pyvenv/bin/meson test --suite thorough func-arm-arm_bpim2u diff --git a/docs/system/arm/orangepi.rst b/docs/system/arm/orangepi.rst index 8b9448ca7b0..716062fca9c 100644 --- a/docs/system/arm/orangepi.rst +++ b/docs/system/arm/orangepi.rst @@ -262,4 +262,4 @@ provide the following command from the build directory: .. code-block:: bash =20 $ QEMU_TEST_ALLOW_LARGE_STORAGE=3D1 \ - meson test --suite thorough func-arm-arm_orangepi + pyvenv/bin/meson test --suite thorough func-arm-arm_orangepi diff --git a/docs/system/devices/igb.rst b/docs/system/devices/igb.rst index 9145af5c757..71f31cb1160 100644 --- a/docs/system/devices/igb.rst +++ b/docs/system/devices/igb.rst @@ -57,11 +57,12 @@ directory: meson test qtest-x86_64/qos-test =20 ethtool can test register accesses, interrupts, etc. It is automated as an -functional test and can be ran with the following command: +functional test and can be run from the build directory with the following +command: =20 .. code:: shell =20 - meson test --suite thorough func-x86_64-netdev_ethtool + pyvenv/bin/meson test --suite thorough func-x86_64-netdev_ethtool =20 References =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 2.48.1 From nobody Thu Apr 3 11:51:29 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1742390427; cv=none; d=zohomail.com; s=zohoarc; b=lqYW8QSui2U5rwnoyz+rcqqz91W2J1MImjRHD46E1HbJnXExFiRNc1RMTHZmV2oxYrw71QNjmBkp4XM+uq+tUzqKIhW6Yv46HT7Ask5HVAP1ai8d3KK0Vk0GE2kPTx6QL+qQE0E5ZH8vCHPjF5JQ65VyOttEQnWlmo0Bz06drlw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742390427; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yYYKJLSo6OUG8eszqjqw/Feu+f2MV8YvJ49vj6wYo98=; b=HbtrSOAOWQ6wiZPtVW+ZX7JoZEmzaN7k6iHMEun94bsBoBU3u9s+QakJfSXAglOPhagC98FJ37556eo1iT6yh5Vh5hCp0GeIFllfKDjvWwPii9zoKtSxz4zA7obwh7NkCevfZm/nMdivFs61bi4DLtGbblSLtOy71/gFWlqHf10= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742390427278514.7933385438819; Wed, 19 Mar 2025 06:20:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tutKX-0000A4-Cw; Wed, 19 Mar 2025 09:19:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKT-00005K-Ut for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:30 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKS-0007eB-8C for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:29 -0400 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-362-0bIFxTJlPD-ezEeCej-qGw-1; Wed, 19 Mar 2025 09:19:22 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4100E19560AE; Wed, 19 Mar 2025 13:19:21 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.32.212]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DE5263001D0E; Wed, 19 Mar 2025 13:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742390367; 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: in-reply-to:in-reply-to:references:references; bh=yYYKJLSo6OUG8eszqjqw/Feu+f2MV8YvJ49vj6wYo98=; b=Y9Z+vKIVai830yzO95lDLA1pztyp4pw8d6voqFLy0AtnK3/B6Wz48gsLyE8XM04wdl+bH3 DZrjQHvbN9oAcjPQtpYi285oqdEzDvHjuLIFrkCWB+JT7vK9A14Mbh/lELxWjl325KN6jX sRLcGfSu4UsfBe5u5Tp7zSvx49VMESU= X-MC-Unique: 0bIFxTJlPD-ezEeCej-qGw-1 X-Mimecast-MFC-AGG-ID: 0bIFxTJlPD-ezEeCej-qGw_1742390361 From: Thomas Huth To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , Niek Linnenbank , Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 5/8] docs/system/arm: Use "functional tests" instead of "integration tests" Date: Wed, 19 Mar 2025 14:18:48 +0100 Message-ID: <20250319131851.148817-6-thuth@redhat.com> In-Reply-To: <20250319131851.148817-1-thuth@redhat.com> References: <20250319131851.148817-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.337, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, WEIRD_QUOTING=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1742390429120019000 From: Thomas Huth We don't use the term "integration tests" for these kind of tests anymore, it's "functional tests" nowadays. Suggested-by: Niek Linnenbank Message-ID: <20250318061420.20378-1-thuth@redhat.com> Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Niek Linnenbank Signed-off-by: Thomas Huth --- docs/system/arm/bananapi_m2u.rst | 6 +++--- docs/system/arm/orangepi.rst | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/system/arm/bananapi_m2u.rst b/docs/system/arm/bananapi_m2= u.rst index 6efa222c16f..03cc5618c38 100644 --- a/docs/system/arm/bananapi_m2u.rst +++ b/docs/system/arm/bananapi_m2u.rst @@ -125,10 +125,10 @@ And then boot it. =20 $ qemu-system-arm -M bpim2u -nographic -sd sd.img =20 -Banana Pi M2U integration tests -""""""""""""""""""""""""""""""" +Banana Pi M2U functional tests +"""""""""""""""""""""""""""""" =20 -The Banana Pi M2U machine has several integration tests included. +The Banana Pi M2U machine has several functional tests included. To run the whole set of tests, build QEMU from source and simply provide the following command: =20 diff --git a/docs/system/arm/orangepi.rst b/docs/system/arm/orangepi.rst index 716062fca9c..d81f6c3bfd2 100644 --- a/docs/system/arm/orangepi.rst +++ b/docs/system/arm/orangepi.rst @@ -252,10 +252,10 @@ and set the following environment variables before bo= oting: Optionally you may save the environment variables to SD card with 'saveenv= '. To continue booting simply give the 'boot' command and NetBSD boots. =20 -Orange Pi PC integration tests -"""""""""""""""""""""""""""""" +Orange Pi PC functional tests +""""""""""""""""""""""""""""" =20 -The Orange Pi PC machine has several integration tests included. +The Orange Pi PC machine has several functional tests included. To run the whole set of tests, build QEMU from source and simply provide the following command from the build directory: =20 --=20 2.48.1 From nobody Thu Apr 3 11:51:29 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1742390427; cv=none; d=zohomail.com; s=zohoarc; b=JHarfGNmC8djhEA74vpE/F0LTLYr/+5m24WGMPCH1SBCMiImhPDRs5+PkZK8DdPgqWSRwa9jfxtI5grJQpPfBlPTgOoi2ozwYrqp5dOyrptdsdmW3OJay6k+LbEQLur5GS2MCvbBwsi90/YyAZI87dZmC9tiNaeOuu7q1nWLmTM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742390427; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=50BIJkpGtU8kh5NKqRzybyXSHxadiu3JT6r7K12A1H8=; b=a2HUCgsCCZ1twavkmbl3RCgDi2ImT1/hTRbsxav6fNjgQgzXLnLLMimcguViXIMRlUkkKE1J2Op2FkR4PEDKwzLUcuXJzXA4CGpmh2HuLVsaWqBrV5rf5vB32VOHN3CMmZGZVJMQQcyk/vuPLik1joYpVceCACpqvFiEkYbMpII= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742390427154250.69719185375004; Wed, 19 Mar 2025 06:20:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tutKZ-0000Gp-5I; Wed, 19 Mar 2025 09:19:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKW-0000A1-PY for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKU-0007eg-W5 for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:32 -0400 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-117-CVERmk6jNbGGLYDYUQei2w-1; Wed, 19 Mar 2025 09:19:27 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2676A180AF6B; Wed, 19 Mar 2025 13:19:26 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.32.212]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 657563001D0E; Wed, 19 Mar 2025 13:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742390370; 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: in-reply-to:in-reply-to:references:references; bh=50BIJkpGtU8kh5NKqRzybyXSHxadiu3JT6r7K12A1H8=; b=AMXoNuTeExkEcS3+diBOJ+H39eGg5L7hmEGSqj2xpSMSLrYTVRDv6PazZJUfE43PTjoe48 op2qyra59OMWiYJsXoex+Gi1Hc8lhtThYofCxvF+3Oi1p5PsjxogKK4FZlwOkVyx4IaKCo 1zcZ0WeJ+TvdYEWO4peYyRUcosZXO0k= X-MC-Unique: CVERmk6jNbGGLYDYUQei2w-1 X-Mimecast-MFC-AGG-ID: CVERmk6jNbGGLYDYUQei2w_1742390366 From: Thomas Huth To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , Aditya Gupta , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PULL 6/8] docs/devel/testing/functional: Add a section about logging Date: Wed, 19 Mar 2025 14:18:49 +0100 Message-ID: <20250319131851.148817-7-thuth@redhat.com> In-Reply-To: <20250319131851.148817-1-thuth@redhat.com> References: <20250319131851.148817-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.337, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1742390429238019000 From: Thomas Huth We should tell the users where to find the log file. While we're at it, also rename the "Overview" heading to a more accurate "Introduction to writing tests" instead. Reported-by: Aditya Gupta Message-ID: <20250318092021.53719-1-thuth@redhat.com> Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Thomas Huth --- docs/devel/testing/functional.rst | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/docs/devel/testing/functional.rst b/docs/devel/testing/functio= nal.rst index a9fa45eac1f..9bc973392aa 100644 --- a/docs/devel/testing/functional.rst +++ b/docs/devel/testing/functional.rst @@ -72,8 +72,26 @@ files around on disk by setting ```QEMU_TEST_KEEP_SCRATC= H=3D1``` as an env variable. Any preserved files will be deleted the next time the test is r= un without this variable set. =20 -Overview --------- +Logging +------- + +The framework collects log files for each test in the build directory +in the following subfolder:: + + /tests/functional//../ + +There are usually three log files: + +* ``base.log`` contains the generic logging information that is written + by the calls to the logging functions in the test code (e.g. by calling + the ``self.log.info()`` or ``self.log.debug()`` functions). +* ``console.log`` contains the output of the serial console of the guest. +* ``default.log`` contains the output of QEMU. This file could be named + differently if the test chooses to use a different identifier for + the guest VM (e.g. when the test spins up multiple VMs). + +Introduction to writing tests +----------------------------- =20 The ``tests/functional/qemu_test`` directory provides the ``qemu_test`` Python module, containing the ``qemu_test.QemuSystemTest`` class. --=20 2.48.1 From nobody Thu Apr 3 11:51:29 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1742390389; cv=none; d=zohomail.com; s=zohoarc; b=HEM886dkoro2mP3wDKwrCY9f7TXh4K0tQng4Ni6GXj+BigNu6L8/5y1Hb5uZVP3YGgA6IZkU8D987RWRq3+NcRSWl2xh01pSz5oomS5XBJo3uTy0GKwVAfKc08pRCsi1q68crtXIjYYpCt3hW6CH2dtATQsOhit96OxebIMDKjY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742390389; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=tu0RlvcrYsmz8VD7rcIi1MCC0IqxBh9nmPXdBXLXDp8=; b=ALTVN9AiRlS3PSw/3tWRex1cYBpltHca/9KpOPVzfEGprSqUOtCWNX1WHl9wfZbqjhY8OwzlnYJIFYh7qgdMnukhRun29eypd7ZxzvL8w/HBKYQmOYp1VliWROkInpUGgLNsn99CJWaJR8GG2wozMzUlJqlL9bcOjwtwlEBU6SI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742390389602310.8321622411712; Wed, 19 Mar 2025 06:19:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tutKg-0000ec-RO; Wed, 19 Mar 2025 09:19:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKe-0000TY-0U for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKX-0007et-Ik for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:39 -0400 Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-323-QxiciL_JP9uchsZ4Fde-WA-1; Wed, 19 Mar 2025 09:19:30 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9EEA71955DC5 for ; Wed, 19 Mar 2025 13:19:29 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.32.212]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 418003001D0E; Wed, 19 Mar 2025 13:19:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742390372; 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: in-reply-to:in-reply-to:references:references; bh=tu0RlvcrYsmz8VD7rcIi1MCC0IqxBh9nmPXdBXLXDp8=; b=Kwqaf+hOg6g4pwfstyQX//+1x9oaBApQpiVTYLeQUZc021ls+xdv+GEhkFfpu0rJPPLpXt 10lv4d4jHTRBDoxoKxjY96cgqhFf3f7IJ5VzVtgAlyehlBpirotbXBohw0UsUvll+Jd5RP eC6Q+7wlyc1MkWfWIl/LNvwngVS9RFg= X-MC-Unique: QxiciL_JP9uchsZ4Fde-WA-1 X-Mimecast-MFC-AGG-ID: QxiciL_JP9uchsZ4Fde-WA_1742390369 From: Thomas Huth To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PULL 7/8] tests/functional/test_x86_64_kvm_xen: Remove avocado tags Date: Wed, 19 Mar 2025 14:18:50 +0100 Message-ID: <20250319131851.148817-8-thuth@redhat.com> In-Reply-To: <20250319131851.148817-1-thuth@redhat.com> References: <20250319131851.148817-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.337, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1742390390719019000 From: Thomas Huth They have been forgotten to be removed when converting the test to the functional framework. Since they are of no use anymore, let's remove them now. Message-ID: <20250318171530.94966-1-thuth@redhat.com> Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Thomas Huth --- tests/functional/test_x86_64_kvm_xen.py | 28 ------------------------- 1 file changed, 28 deletions(-) diff --git a/tests/functional/test_x86_64_kvm_xen.py b/tests/functional/tes= t_x86_64_kvm_xen.py index 0298c96c2eb..3bedef6c98c 100755 --- a/tests/functional/test_x86_64_kvm_xen.py +++ b/tests/functional/test_x86_64_kvm_xen.py @@ -80,10 +80,6 @@ def run_and_check(self): wait_for_console_pattern(self, '#', 'Oops') =20 def test_kvm_xen_guest(self): - """ - :avocado: tags=3Dkvm_xen_guest - """ - self.common_vm_setup() =20 self.kernel_params =3D (self.KERNEL_DEFAULT + @@ -94,10 +90,6 @@ def test_kvm_xen_guest(self): 'virtio0-output') =20 def test_kvm_xen_guest_nomsi(self): - """ - :avocado: tags=3Dkvm_xen_guest_nomsi - """ - self.common_vm_setup() =20 self.kernel_params =3D (self.KERNEL_DEFAULT + @@ -108,10 +100,6 @@ def test_kvm_xen_guest_nomsi(self): 'virtio0') =20 def test_kvm_xen_guest_noapic_nomsi(self): - """ - :avocado: tags=3Dkvm_xen_guest_noapic_nomsi - """ - self.common_vm_setup() =20 self.kernel_params =3D (self.KERNEL_DEFAULT + @@ -122,10 +110,6 @@ def test_kvm_xen_guest_noapic_nomsi(self): 'virtio0') =20 def test_kvm_xen_guest_vapic(self): - """ - :avocado: tags=3Dkvm_xen_guest_vapic - """ - self.common_vm_setup() self.vm.add_args('-cpu', 'host,+xen-vapic') self.kernel_params =3D (self.KERNEL_DEFAULT + @@ -140,10 +124,6 @@ def test_kvm_xen_guest_vapic(self): 'virtio0-output') =20 def test_kvm_xen_guest_novector(self): - """ - :avocado: tags=3Dkvm_xen_guest_novector - """ - self.common_vm_setup() self.kernel_params =3D (self.KERNEL_DEFAULT + ' xen_emul_unplug=3Dide-disks' + @@ -154,10 +134,6 @@ def test_kvm_xen_guest_novector(self): 'fasteoi') =20 def test_kvm_xen_guest_novector_nomsi(self): - """ - :avocado: tags=3Dkvm_xen_guest_novector_nomsi - """ - self.common_vm_setup() =20 self.kernel_params =3D (self.KERNEL_DEFAULT + @@ -169,10 +145,6 @@ def test_kvm_xen_guest_novector_nomsi(self): 'IO-APIC') =20 def test_kvm_xen_guest_novector_noapic(self): - """ - :avocado: tags=3Dkvm_xen_guest_novector_noapic - """ - self.common_vm_setup() self.kernel_params =3D (self.KERNEL_DEFAULT + ' xen_emul_unplug=3Dide-disks' + --=20 2.48.1 From nobody Thu Apr 3 11:51:29 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1742390403; cv=none; d=zohomail.com; s=zohoarc; b=P2+aKX8YMXmAmo1FwztyYWZAi1fRW6+HuLr++Uvs3vug6vK/T6VQkT/NMPCHieB+RcR+Nl+ttT6oLyNB3Pxxt2LgQLN6ngYHFZKnm6GtjcaPqYruiLuoE7q0nTwSZsBZTkWDBMBt1qaF6dBV88+88I2bKyxnmIrN3ya8h9tk2mg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742390403; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=YUXh6FLcNHw4jwGqxcDsJ91LhfYbIXwip6ISjuFNUNY=; b=H7p2OXCZ7OkA8CX2Xy0Fl4coc/06y1GNRtcu37795Iixt6AgNY2TceYES3atJIxlzxHZc2M4SVre89cZAq9sSD29tuXppDHu44ZKLxegKqRM8AOZN1EIpi9QyDV4sNmrhiYbxj4KepxdKYQRenY3lyA49b8r6PvYSAgiwRa2OtQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742390403493135.96027802600486; Wed, 19 Mar 2025 06:20:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tutKj-0000nw-NN; Wed, 19 Mar 2025 09:19:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKh-0000jP-AX for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tutKb-0007f9-4u for qemu-devel@nongnu.org; Wed, 19 Mar 2025 09:19:43 -0400 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-656-xPc5kGZAPOmH2dgQpqW81w-1; Wed, 19 Mar 2025 09:19:35 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DC50B1956089; Wed, 19 Mar 2025 13:19:33 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.32.212]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 33D373001D0E; Wed, 19 Mar 2025 13:19:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742390376; 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: in-reply-to:in-reply-to:references:references; bh=YUXh6FLcNHw4jwGqxcDsJ91LhfYbIXwip6ISjuFNUNY=; b=EWxuzT/BwWPVxlHdMljiC5W1T82cJ3AnixqIgLMI6UlTCUvsoVBeuc/OSRAn3uU1SuP06x EIMLM/1CyhFf/4PD1hyOi9/UeyK6CTNUK8WzttiAseX7N09WmiCL8iaPtkUL/3NUGnuwob pDdvJzm4PjpcYOyD009wbffH6an0tzk= X-MC-Unique: xPc5kGZAPOmH2dgQpqW81w-1 X-Mimecast-MFC-AGG-ID: xPc5kGZAPOmH2dgQpqW81w_1742390374 From: Thomas Huth To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , Matheus Tavares Bernardino , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Fabiano Rosas Subject: [PULL 8/8] tests/functional/test_migration: Use "ncat" instead of "nc" in the exec test Date: Wed, 19 Mar 2025 14:18:51 +0100 Message-ID: <20250319131851.148817-9-thuth@redhat.com> In-Reply-To: <20250319131851.148817-1-thuth@redhat.com> References: <20250319131851.148817-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.337, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1742390404865019000 From: Thomas Huth "nc" can either be GNU netcat, OpenBSD netcat or NMap ncat. At least GNU netcat currently does not work with this test anymore, though the comment in the test says otherwise. GNU netcat seems to be quite unmaintained nowadays, according to its website (https://netcat.sourceforge.net/), the last public release is from 2004, so we should rather avoid that binary. In our CI, we are only using "ncat" in the containers (it's the only flavor that lcitool supports), thus to avoid silent regressions with the other netcats, let's limit this test to "ncat" only now. Reported-by: Matheus Tavares Bernardino Message-ID: <20250319105617.133191-1-thuth@redhat.com> Reviewed-by: Matheus Tavares Bernardino Reviewed-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Fabiano Rosas Signed-off-by: Thomas Huth --- tests/functional/test_migration.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/functional/test_migration.py b/tests/functional/test_mig= ration.py index 44804113cfe..181223a69e3 100755 --- a/tests/functional/test_migration.py +++ b/tests/functional/test_migration.py @@ -87,13 +87,12 @@ def test_migration_with_unix(self): dest_uri =3D 'unix:%s/qemu-test.sock' % socket_path self.do_migrate(dest_uri) =20 - @skipIfMissingCommands('nc') + @skipIfMissingCommands('ncat') def test_migration_with_exec(self): - """The test works for both netcat-traditional and netcat-openbsd p= ackages.""" with Ports() as ports: free_port =3D self._get_free_port(ports) - dest_uri =3D 'exec:nc -l localhost %u' % free_port - src_uri =3D 'exec:nc localhost %u' % free_port + dest_uri =3D 'exec:ncat -l localhost %u' % free_port + src_uri =3D 'exec:ncat localhost %u' % free_port self.do_migrate(dest_uri, src_uri) =20 if __name__ =3D=3D '__main__': --=20 2.48.1