From nobody Sat Sep 26 20:01:48 2026 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=1788777093; cv=none; d=zohomail.com; s=zohoarc; b=N5zhiudfC/ZXrXOBFA4AQ2CkySYReCrEoFOW9bcfGf0FVNoplPuEUD16dUpM1iCFJuY5CjCGtfdl1G5FqcvVBL6S5tTwe0cEbBFSIIldOddEHIVravwYH0af08nQSMDfxUwiH3NiItdJk9UZYjv0WXTvzCWplXj7Mf4rUQjpokk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788777093; 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=Pw8oM7XvTZ8UrOcsyDmNklaQrGBxEBQh+OPjYQaTMXA=; b=P8fFtGHOQdxbxNTE1DaqbVpyEBdYDbv1h0bu9rHi/Ft5ROGzcTeXRSb7w/8JZs5Z2+pyUNN2sh9KHvAJDMqKNTGcquTDQEON+TRAejT52du3DPzreA/HSqyGtTU2iTKwQvI3eMonN6YtsCdUFK9BiWS9EIe8CGyVko6kfu1N/2c= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788777093427460.0363621659495; Mon, 7 Sep 2026 03:31:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3Wcp-0004F9-9y; Mon, 07 Sep 2026 06:30:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3Wcd-0004Dm-IX for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:30: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 1x3Wcb-0003Sr-Pi for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:30:43 -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-684-uQQO6oekMqeBYKibD37WwQ-1; Mon, 07 Sep 2026 06:30:37 -0400 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (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 3325518009DF; Mon, 7 Sep 2026 10:30:35 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B5531427; Mon, 7 Sep 2026 10:30:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777041; 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=Pw8oM7XvTZ8UrOcsyDmNklaQrGBxEBQh+OPjYQaTMXA=; b=hVTJ7u2wRi80ajWJl9KA0C23clJTp16gJ3SxSqpgJ5OTlLjiDb9B/6dWRaLt4oePep3Xn9 MLhtkKvXI87OWy46eJHAMw4qoy9E3cdIEC6T75o87FlwnjYQQDSV971AWOePG88v1QOSkX jwBuPfKAnW1Mko4wqqpse5rDNOfzkSQ= X-MC-Unique: uQQO6oekMqeBYKibD37WwQ-1 X-Mimecast-MFC-AGG-ID: uQQO6oekMqeBYKibD37WwQ_1788777035 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:19 +0400 Subject: [PATCH v2 01/10] tests/ahci-test: replace HMP usage with QMP MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260907-nohmp-v2-1-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=1418; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=tLrFlT/tcpYg1fK592+t5TVWs+WZQ4KtzWrEIWmaBQ8=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJCeOOGlpiWzHT6XhP38kCqcYRpei6N5aehu Wk3FtoaKb+JAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQgAKCRDa6OEJdZac 5T0cEACZHkKeWpCCGLtbYX3EFUiZDCPwh6YgUZsH/SFIsOX+i23i3a3cdbFZeBBl8iqn9SwyFc8 IqoNpOrV2HWAQf90BrflD5WPI6S5X7ZsqaJtL+QjJ5VXG9M03MxtqzDxc3mWZYJCA5i8wrLy8Pc Ys8RxFfAslDz9ppnmPIBbjypeGx6/mF7dSldkmYXPRaWRBbok+vIB3ggmv4ow8FvxXUO5PYp/KE caklFOSzzszfALtvQRC/ZlFR9CQti4z5maNnjhzCQe3PT343IRiAKsN2da3zNzMzHuNdlaGsl5z GYnemgjxnhFfWA3eHc/fas/gtpUU6rcAXA1/S129Y3K6ZTG2AegUIP+bUf/oaw/hkdpk29vKSbw GztFcj7cLOrge/o0WCk2HuIQLfveDq/Thwc8xBhNyw33aCKxkA21ADFhtfh38rV1TKudGLGFM3l mUZYSzuxOYRNmK5q5gpjLgLjDWcrcpBBroQ/+gBbjmxe1Ri9wRRoWJhVPcylMvkLmhDizKOA7B9 hO0vZpchIAZEQ9UTnASwSN2Vh6+bpP36H2O7qaON1pUy3aFFw6bwMj3v8j5ALIeFc+Z+QUrFWU7 tM2ZcwrfI08ZYWHa1rPipi94C4AmSyBKWCcK94plTscrk4evgX9MMuvUHLwxF2lp8A4wYR1w5g2 NDO+oMtYnOD4HMg== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-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: qemu development 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: 1788777095632158500 Use qemu-io command instead. Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/qtest/ahci-test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/qtest/ahci-test.c b/tests/qtest/ahci-test.c index 3406ca884fb4..eb8d23999738 100644 --- a/tests/qtest/ahci-test.c +++ b/tests/qtest/ahci-test.c @@ -1900,8 +1900,7 @@ static void test_write_engine_stop_in_flight(void) ahci_io(ahci, port, CMD_WRITE_DMA, rx, AHCI_SECTOR_SIZE, 1); =20 /* Suspend the backend write so the first sector stays in flight. */ - g_free(qtest_hmp(ahci->parent->qts, - "qemu-io drive0 \"break write_aio wr\"")); + qtest_qemu_io(ahci->parent->qts, "drive0", "break write_aio wr"); =20 cmd =3D ahci_command_create(CMD_WRITE_PIO); ahci_command_adjust(cmd, 0, ptr, bufsize, 0); @@ -1911,7 +1910,7 @@ static void test_write_engine_stop_in_flight(void) /* Drop the command list while the write is still outstanding. */ ahci_px_clr(ahci, port, AHCI_PX_CMD, AHCI_PX_CMD_ST); =20 - g_free(qtest_hmp(ahci->parent->qts, "qemu-io drive0 \"resume wr\"")); + qtest_qemu_io(ahci->parent->qts, "drive0", "resume wr"); =20 /* Round-trip through the device to confirm qemu is still alive. */ ahci_px_rreg(ahci, port, AHCI_PX_TFD); --=20 2.55.0.543.g5ebe2ebe4ea8 From nobody Sat Sep 26 20:01:48 2026 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=1788777122; cv=none; d=zohomail.com; s=zohoarc; b=hY0wHc2KZgbzFMX/RIlCsNWQ/JmToXOlgjObVebLxHjB2cPj2u+ijxuT1+tHmrHgH5DwVPmZLNNg0oJ0RLgYL+HuVNXIZuV4MOH5Gln1FHTxA70ptICHhf/VBb0hNQCexffuRwe9BzqZUF3nFzOG+gSHv0RL8AhEB3eR0C4cOJI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788777122; 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=fDgNGwW+ikB04+uFpE5aVrV44YCxj/0gXscGjqip9fI=; b=YsNJFjDer3suT3jHvvugFR7mhMDEojsr8+37Ubia8KajroViQukd5yDjMLPcZSp2wgQcS4/oqX8eOQcc+OkotSlMlq+/PL+10ThdNZj3sP/hC8VgxClRH7knHqtq8aqPVfb60qs72lqAN3VmI6jYDommhGOVSSdknDn5XJo3xVQ= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17887771227481001.9601935128791; Mon, 7 Sep 2026 03:32:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3Wd0-0004LJ-KH; Mon, 07 Sep 2026 06:31:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3Wcj-0004FB-9I for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:30:53 -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 1x3Wcg-0003TX-Or for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:30:48 -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-116-gDErs7mpM-uCs8tshjl-xw-1; Mon, 07 Sep 2026 06:30:40 -0400 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (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 BA005182F558; Mon, 7 Sep 2026 10:30:38 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E5E16427; Mon, 7 Sep 2026 10:30:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777046; 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=fDgNGwW+ikB04+uFpE5aVrV44YCxj/0gXscGjqip9fI=; b=C088BQ3zO65P3eVurp91LgwznuWCL6nSyq8e1WG3r93vpVPtlmYJrrep4U5W+P5YmWRl73 SLesdi+f7I4SvwtUPn/vOnfSFXRIUI2cB3es/rC8A6un/cE4CDCn+wVHNhDBsUUfPUTbRt hewJ0genQ7Z0SsFkI4fwx+CJIdFWOzQ= X-MC-Unique: gDErs7mpM-uCs8tshjl-xw-1 X-Mimecast-MFC-AGG-ID: gDErs7mpM-uCs8tshjl-xw_1788777038 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:20 +0400 Subject: [PATCH v2 02/10] tests/functional: add skipUnlessConfig() helper MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260907-nohmp-v2-2-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=2526; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=Ygc3sa0XyimlEPA9EvJG3rAzBiuUKaymrtR3GvddhO4=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJCx76BhkkEtw5IfXC8ETpcUnBBZEzAY2u1R uUttmuFuXuJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQgAKCRDa6OEJdZac 5YAeD/40wvCHvIBNT29clCHMZfGU4ZaUGX0sqfFZoygMX0bs2K2cPegEnuhdPRcThVsGICSZ6nZ pMR7T4Dfl3Y51J8G3WxRwMnPftdnVzU828qGvEmPp6+I3dsPNY3xLbxDY4fo/XuGjlmLMlgnMg7 YpWixwekpy3TYIDiCoASR66ok7k4lp55vGV+bJVDSd3xTAOP3BpXBNvN4b3N1m5xf+8d2UiIRUL YI1QtIRxm4FwD1TGQ+doWY/L/D/EaQk2gKouDT7oLKMj4P2qk6oyEq+SlVyYEMgYmTMf9Jx0hcW riEsLNFbMjiUyNXtucQCqEVsvtlc7G+2M/7yR+mcvi8WCF0zI+MmNdc1mrlVAd8UiHFzYuzJbvt FcN/JTO9kcf11jrANBbRX277pqFIH5ss15miBYD/r9efDEkPddUqVhbDVTN5nPosk4yXHZxw/CT 2FpL7iopuMLXuiYgYO777M09rcn8Lrb7oVG41rB06cCzDxWHXALGBPGOAYB1B0mVX+djhV1LTzo inGbZHRhrNjyAlyL4ABhXDKfAR8i6SGQYp/Zx+k8RZ1DNCvksXCs4xZ0rf77aoDGR5ajci4zA+N Eojbc2GsVXfaIcqTnl+KdhMrVHm8BIYzzJJKa0yeXz/mqg2Pz8PX1tF/PuCzezRX2ELmChEvzx0 7gnWc8V+nXi6igw== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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: 1788777128029154100 Read config-host.h and skip tests that rely on some CONFIG_* values. Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/functional/qemu_test/__init__.py | 2 +- tests/functional/qemu_test/decorators.py | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/tests/functional/qemu_test/__init__.py b/tests/functional/qemu= _test/__init__.py index 03e5c73d39dc..e21fa8279281 100644 --- a/tests/functional/qemu_test/__init__.py +++ b/tests/functional/qemu_test/__init__.py @@ -16,7 +16,7 @@ from .decorators import skipIfMissingCommands, skipIfNotMachine, \ skipFlakyTest, skipUntrustedTest, skipBigDataTest, skipSlowTest, \ skipIfMissingImports, skipIfOperatingSystem, skipUnlessOperatingSystem= , \ - skipLockedMemoryTest, skipIfMissingEnv + skipLockedMemoryTest, skipIfMissingEnv, skipUnlessConfig from .archive import archive_extract from .uncompress import uncompress from .gdb import GDB diff --git a/tests/functional/qemu_test/decorators.py b/tests/functional/qe= mu_test/decorators.py index aa135acc7857..7a7d30503440 100644 --- a/tests/functional/qemu_test/decorators.py +++ b/tests/functional/qemu_test/decorators.py @@ -10,6 +10,7 @@ from unittest import skipIf, skipUnless =20 from .cmd import which +from .config import BUILD_DIR =20 =20 def skipIfMissingEnv(*vars_): @@ -162,6 +163,30 @@ def skipIfMissingImports(*args): return skipUnless(has_imports, 'required import(s) "%s" not installed'= % ", ".join(args)) =20 +def _read_config_host(): + config =3D set() + with open(BUILD_DIR / "config-host.h", "r") as f: + for line in f: + if line.startswith("#define CONFIG_"): + name =3D line.split()[1].removeprefix("CONFIG_") + config.add(name) + return config + +_CONFIG_HOST =3D _read_config_host() + +def skipUnlessConfig(*args): + ''' + Decorator to skip execution of a test if the QEMU build + does not have the required CONFIG_* options enabled. + Example: + + @skipUnlessConfig("PIXMAN") + ''' + missing =3D [a for a in args if a not in _CONFIG_HOST] + return skipUnless(len(missing) =3D=3D 0, + 'missing build config(s): %s' % + ', '.join('CONFIG_' + m for m in missing)) + def skipLockedMemoryTest(locked_memory): ''' Decorator to skip execution of a test if the system's --=20 2.55.0.543.g5ebe2ebe4ea8 From nobody Sat Sep 26 20:01:48 2026 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=1788777480; cv=none; d=zohomail.com; s=zohoarc; b=d/M9a3rS3ZsWilewLtHf/iSwmd+/QN2h2dmvd9bR2kUAyyci28a0qesXlwdzy4rq07xBgthq+lxomnR1ucr5ZCCsQ6zIpa1vFusJFE6ksjF1jDRxXsBj49i4CxlXNUOr40t9VJasFbSZRDxG+vtGlB0z7UtR7doHj2EwtJjj9GM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788777480; 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=8cGBVc64aixvB++qc7RppwSp5/9PtciqMdVtjMAEwcM=; b=deeQ2O7yxb5m2OTmYsh38Y/gfM0A8umKlVEq+kVQr0JbeZi3553CewecwOcIHRL4Axis1m3LECk5+4AUM7LP/cU+YDlmJBPOInhqHMGAtxgprGpKtr+rYj1tpCwKloDoujMKhyU9LnWENpJRvkhWEmeACYGHRoj9xPQFulBF9pI= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788777480638509.324575790024; Mon, 7 Sep 2026 03:38:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3Wj7-0000YO-O7; Mon, 07 Sep 2026 06:37:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3Wit-0000RY-FU for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:37:15 -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 1x3Win-00048I-00 for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:37:10 -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-36-ATUV2tD4Pbec_LuEi3QE9g-1; Mon, 07 Sep 2026 06:30:44 -0400 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (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 1E7B91955E96; Mon, 7 Sep 2026 10:30:42 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 14BCA5B1; Mon, 7 Sep 2026 10:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777423; 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=8cGBVc64aixvB++qc7RppwSp5/9PtciqMdVtjMAEwcM=; b=DC/XXofYOY9GFuh6wXjkbMeKwO2QOeuMV7CjtaH+rR/do+elXXiwpM2wU5eldgIyUFTOz2 mbvDvky+/SSTIZxRLEGopixRubfxCOP3T9o7IY00J81HjtUpnhkFrRxU6KPhi3af2k8qWR b46tDySZg38IuTxM7/4vieeJFv4k4Jk= X-MC-Unique: ATUV2tD4Pbec_LuEi3QE9g-1 X-Mimecast-MFC-AGG-ID: ATUV2tD4Pbec_LuEi3QE9g_1788777042 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:21 +0400 Subject: [PATCH v2 03/10] tests/functional: skip if CONFIG_PIXMAN MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260907-nohmp-v2-3-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=4623; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=63ZiKVOC1t8wXBgD9jtUermXawOaBss0w62gKXXWiNc=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJC41pd36Eo3JwGXpq/ryJgrIbzXUS7E+8xT /JnLdQ2OWyJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQgAKCRDa6OEJdZac 5fgaD/99GUMSRBwLxJ9UjY9dWuXVYg14WU6GKNkDCb5ZgoVH55GSRXlr3triKaluNoV2WBxMtdp 6nzvxgNAJfOhNJhoXsRQHMqNrXF1xqfQxOnX0zlBn44C8ud7V5tcZU18Y6Dr1d1FbcufHh3GgAr TXywC+Vwt+YmBj31dQ0UnQYBIYQafiV5GfwKvTg/7ouQ7EVOugfpK2X7RFARC6jfKmRyal3cTwO xjAKRxRBbGn2uioKxR08PUAIzEExSzTjYfSMcT5fQ61IlVOsIvfFPGZx8tW3yRk0muZo8lnoYUQ clco+xJnHf4QNCe7E4li9fWABGHU44T9utKM1kE6NiKThLZSZKJjeNdlZT0jAI2qTQNp9VbLQ+b UIQfwEsZ861uC9HQP0cJgBH8VBv9fASlNWIH1jn+A0Wb3clH1PiN1Fh78uxphxA03AJZLVsegjP 3ctMBQ4GP3K90Di+tLwpBa+8w+90uFtvoyh1MD4z2JvgnXySvJuDLfSQfFAr1HF15qZFiv0OzdY EZDtYR13Y7h2zBHGEr7KQxcB/SAWQcjswLZX9/XkS8u3vqKWeAgPUAqyeCgb/Vwoo6MLC+Dl9Sl ublXcAyDQuM/+n5xuNQ9n7O20ZEQIjrcaUrWJ6ouoPOQnqy6J/aiGWWNRercXaawwJaofF3WumJ 5ee4hnD/t2XKgJg== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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: 1788777483617154100 PIXMAN is required for screendump. Replace test-time check with earlier @skipUnlessConfig check. Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/functional/arm/test_integratorcp.py | 9 ++++----- tests/functional/m68k/test_nextcube.py | 9 ++++----- tests/functional/mips64el/test_malta.py | 10 +++++----- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/tests/functional/arm/test_integratorcp.py b/tests/functional/a= rm/test_integratorcp.py index 23ae919359d5..f7551ff7cb88 100755 --- a/tests/functional/arm/test_integratorcp.py +++ b/tests/functional/arm/test_integratorcp.py @@ -16,7 +16,7 @@ =20 from qemu_test import QemuSystemTest, Asset from qemu_test import wait_for_console_pattern -from qemu_test import skipIfMissingImports, skipUntrustedTest +from qemu_test import skipIfMissingImports, skipUntrustedTest, skipUnlessC= onfig =20 =20 class IntegratorMachine(QemuSystemTest): @@ -58,6 +58,7 @@ def test_integratorcp_console(self): wait_for_console_pattern(self, 'Log in as root') =20 @skipIfMissingImports("numpy", "cv2") + @skipUnlessConfig("PIXMAN") @skipUntrustedTest() def test_framebuffer_tux_logo(self): """ @@ -73,10 +74,8 @@ def test_framebuffer_tux_logo(self): framebuffer_ready =3D 'Console: switching to colour frame buffer d= evice' wait_for_console_pattern(self, framebuffer_ready) self.vm.cmd('human-monitor-command', command_line=3D'stop') - res =3D self.vm.cmd('human-monitor-command', - command_line=3D'screendump %s' % screendump_path) - if 'unknown command' in res: - self.skipTest('screendump not available') + self.vm.cmd('human-monitor-command', + command_line=3D'screendump %s' % screendump_path) =20 cpu_count =3D 1 match_threshold =3D 0.92 diff --git a/tests/functional/m68k/test_nextcube.py b/tests/functional/m68k= /test_nextcube.py index d917cf5424fe..f38f294bad67 100755 --- a/tests/functional/m68k/test_nextcube.py +++ b/tests/functional/m68k/test_nextcube.py @@ -10,10 +10,11 @@ import time =20 from qemu_test import QemuSystemTest, Asset -from qemu_test import skipIfMissingImports, skipIfMissingCommands +from qemu_test import skipIfMissingImports, skipIfMissingCommands, skipUnl= essConfig from qemu_test.tesseract import tesseract_ocr =20 =20 +@skipUnlessConfig("PIXMAN") class NextCubeMachine(QemuSystemTest): =20 timeout =3D 15 @@ -39,10 +40,8 @@ def check_bootrom_framebuffer(self, screenshot_path): break time.sleep(0.1) =20 - res =3D self.vm.cmd('human-monitor-command', - command_line=3Df"screendump {screenshot_path}") - if 'unknown command' in res: - self.skipTest('screendump not available') + self.vm.cmd('human-monitor-command', + command_line=3Df"screendump {screenshot_path}") =20 @skipIfMissingImports("PIL") def test_bootrom_framebuffer_size(self): diff --git a/tests/functional/mips64el/test_malta.py b/tests/functional/mip= s64el/test_malta.py index 163bbaf5ca36..80fe3424b234 100755 --- a/tests/functional/mips64el/test_malta.py +++ b/tests/functional/mips64el/test_malta.py @@ -13,7 +13,8 @@ =20 from qemu_test import LinuxKernelTest, Asset from qemu_test import exec_command_and_wait_for_pattern -from qemu_test import skipIfMissingImports, skipFlakyTest, skipUntrustedTe= st +from qemu_test import skipIfMissingImports, skipFlakyTest, skipUntrustedTe= st, \ + skipUnlessConfig =20 from mips.test_malta import mips_check_wheezy =20 @@ -114,6 +115,7 @@ def test_wheezy(self): =20 =20 @skipIfMissingImports('numpy', 'cv2') +@skipUnlessConfig("PIXMAN") class MaltaMachineFramebuffer(LinuxKernelTest): =20 timeout =3D 30 @@ -155,10 +157,8 @@ def do_test_i6400_framebuffer_logo(self, cpu_cores_cou= nt): framebuffer_ready =3D 'Console: switching to colour frame buffer d= evice' self.wait_for_console_pattern(framebuffer_ready) self.vm.cmd('human-monitor-command', command_line=3D'stop') - res =3D self.vm.cmd('human-monitor-command', - command_line=3Df'screendump {screendump_path}') - if 'unknown command' in res: - self.skipTest('screendump not available') + self.vm.cmd('human-monitor-command', + command_line=3Df'screendump {screendump_path}') =20 match_threshold =3D 0.95 screendump_bgr =3D cv2.imread(screendump_path, cv2.IMREAD_COLOR) --=20 2.55.0.543.g5ebe2ebe4ea8 From nobody Sat Sep 26 20:01:48 2026 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=1788777095; cv=none; d=zohomail.com; s=zohoarc; b=SfXS3wsyoJ4zGZlfbjOZRNXmmmQqj00In6oLg69MYE6VOA8OYKMY7tr0K0mYyLh1q+Y1VFMi2nWnNQew6jBkddw+Cy5JxqmacT4yETIDAYEWufcisJW1K/p7OnkyNkh2SFvb/JwbThZciL/MKEerw61m+At/YR2beE2ZKzjBWwc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788777095; 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=kDUE6tneSgV6eLV0qeAwfXxHb2vn2lZXhtGkB+PXW4s=; b=KwiqpzuN5GPeX8PB2wLo96ov8bSmP70E4xyAGcdZduLTYB08maQ13l+cMoI5vg5PqDJxq+5dmSoW6trgyzzJp71Nq7UX730M+4xD+uvIPRvOplLoyvpZcBJ4FTLL6vgRHTphGIbGick6145wZxf61RFMbWlO1qrjqH+naGqMono= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788777095703416.3118697630225; Mon, 7 Sep 2026 03:31:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3Wd1-0004Mk-Gg; Mon, 07 Sep 2026 06:31:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3Wcp-0004He-GB for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:30:57 -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 1x3Wck-0003U8-JT for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:30:52 -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-39-IpGVfhZHMjiN0aPIA3J5Ng-1; Mon, 07 Sep 2026 06:30:48 -0400 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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 30B13182FA58; Mon, 7 Sep 2026 10:30:46 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id BD3A91800577; Mon, 7 Sep 2026 10:30:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777049; 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=kDUE6tneSgV6eLV0qeAwfXxHb2vn2lZXhtGkB+PXW4s=; b=CztmnQtbggGwA29b+ZnLtidaZE/4p7PMRNV+g2s+LTy+JCg6tj2zI5E7Y86Oj/uwW50Nmr vz5FH73RGgQ608oBfe3FWC3vEbDI7p8Wep6YWBjjYv6oOb1xDdl36E55d9i9KZh5KBF5x3 PiONWshUOGx/z6eUtIP/UjWXNM2/7VM= X-MC-Unique: IpGVfhZHMjiN0aPIA3J5Ng-1 X-Mimecast-MFC-AGG-ID: IpGVfhZHMjiN0aPIA3J5Ng_1788777046 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:22 +0400 Subject: [PATCH v2 04/10] tests/functional: replace HMP with QMP MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260907-nohmp-v2-4-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=2641; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=ybEHp6F+6UCg68al4Q+VKzGS1f+RFM3TNtuFiSCoNe8=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJCrdHfUIe/6+1WP7VhMEElFVYRyZoESvhx1 uTPvJFVVdiJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQgAKCRDa6OEJdZac 5Rw7D/4nmS1qVpkb+GM3VJz1gyJ7tgT+ItNFu8fyciHQOLUPIiLEXtGQMU49Lgt72ShXsMBNSml so+pZGHuep+pafrkgp0kzWf1519KYkM3c7FARJgWQHY2Q1pQ7P94l10ECdVXK2kmvSMbo1uYFk2 LVqVQimc5biDW3GGY0WzT59xV5LcdlCCuQlXLlVcfr9afUM29bIkCX9aQbkZUd5mrFoD6Li5O7d 0S+SrCPoaFIcli0jzSbZpeytATt5oBcx/AMRonaLM5YGWo1OJad5X/2DxTBtE71aZRo8e21X5Py Bd7JTxnaDaIxicDS940TLfTzHJR7SnTvBBTehRXZX9OnJmJQBykbLlzNf6xVtfJ9jVr75XtMXW7 PrOQeUyQ1NlMWxAuCQ9GbFIjwzJBATlFhuQ3UbJ0R7u3fRubnzY9aQqMMOmKFFbFH/UFpBsaOOt PUb/yNb7rTn1eRM22ugrOPlEVrT3ldnN6IqkElTQFO04OOyqjM/XQaxxEs9GM2G8Cy7r8DuosGX 1ECKGYy4LAfGhkRXO1iOqedW4OjiKarIpkuzrubfLtx1YlowqqtkhDOKbMyymRkUe1ZISHhQJ29 xTxoUxK8yUmujRqiCFbjY/juOPDtOKYoS+qfQ8+Ytm8xxWy7sAAEBn8+hGZ/1uR/xEkMJ/waGQx 0Ahk+P+45j54EvQ== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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.01, SPF_HELO_PASS=-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: qemu development 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: 1788777099465154100 Replace HMP with QMP equivalent. Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/functional/arm/test_integratorcp.py | 5 ++--- tests/functional/m68k/test_nextcube.py | 3 +-- tests/functional/mips64el/test_malta.py | 5 ++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/functional/arm/test_integratorcp.py b/tests/functional/a= rm/test_integratorcp.py index f7551ff7cb88..576c0670bd72 100755 --- a/tests/functional/arm/test_integratorcp.py +++ b/tests/functional/arm/test_integratorcp.py @@ -73,9 +73,8 @@ def test_framebuffer_tux_logo(self): self.boot_integratorcp() framebuffer_ready =3D 'Console: switching to colour frame buffer d= evice' wait_for_console_pattern(self, framebuffer_ready) - self.vm.cmd('human-monitor-command', command_line=3D'stop') - self.vm.cmd('human-monitor-command', - command_line=3D'screendump %s' % screendump_path) + self.vm.cmd('stop') + self.vm.cmd('screendump', filename=3Dscreendump_path) =20 cpu_count =3D 1 match_threshold =3D 0.92 diff --git a/tests/functional/m68k/test_nextcube.py b/tests/functional/m68k= /test_nextcube.py index f38f294bad67..82e157882e0a 100755 --- a/tests/functional/m68k/test_nextcube.py +++ b/tests/functional/m68k/test_nextcube.py @@ -40,8 +40,7 @@ def check_bootrom_framebuffer(self, screenshot_path): break time.sleep(0.1) =20 - self.vm.cmd('human-monitor-command', - command_line=3Df"screendump {screenshot_path}") + self.vm.cmd('screendump', filename=3Dscreenshot_path) =20 @skipIfMissingImports("PIL") def test_bootrom_framebuffer_size(self): diff --git a/tests/functional/mips64el/test_malta.py b/tests/functional/mip= s64el/test_malta.py index 80fe3424b234..ca001e6fb704 100755 --- a/tests/functional/mips64el/test_malta.py +++ b/tests/functional/mips64el/test_malta.py @@ -156,9 +156,8 @@ def do_test_i6400_framebuffer_logo(self, cpu_cores_coun= t): self.vm.launch() framebuffer_ready =3D 'Console: switching to colour frame buffer d= evice' self.wait_for_console_pattern(framebuffer_ready) - self.vm.cmd('human-monitor-command', command_line=3D'stop') - self.vm.cmd('human-monitor-command', - command_line=3Df'screendump {screendump_path}') + self.vm.cmd('stop') + self.vm.cmd('screendump', filename=3Dscreendump_path) =20 match_threshold =3D 0.95 screendump_bgr =3D cv2.imread(screendump_path, cv2.IMREAD_COLOR) --=20 2.55.0.543.g5ebe2ebe4ea8 From nobody Sat Sep 26 20:01:48 2026 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=1788777108; cv=none; d=zohomail.com; s=zohoarc; b=f7klbwFzUUC8apTYWqi2gMmN6xmwctJYsDirBvA+qCsYLdc7RMUnBCTNkLPG6DOd6JfgyVL4XsURrdDc3A8fvVxgc1SBxA25S4QgmrGjBzR4mbvBR1Ui6qO6IQh3L+nwf0pLjfr/H8/FDIHnRh9EmxbGwwYzeO0VwUNb+HFd0rs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788777108; 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=62mvN3+6Ik4rJgbtSXh3PbCH0A6py8ADyiqg0AkiFTs=; b=i3STDn8AdsB9LeAxEWQgI/FJlEXGdUgfCfZ7WP+JSjodVUJh4uMIucpfR+cKgpMYa8/OEEK2Q8CAIR/gcNYNpnVS5H78ghPfFOY4AcTBf8qN6K+UnFi4KCE0/GlgyvCbo7AhbSZ2cEHidd0Ts7ojnYPOcQBwy/WTuJtZGgI/laI= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788777108532477.7659415511067; Mon, 7 Sep 2026 03:31:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3Wd1-0004MD-AI; Mon, 07 Sep 2026 06:31:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3Wcu-0004Im-Fo for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:31:01 -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 1x3Wcq-0003Um-Eh for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:30:58 -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-370-lYQjBLE4ODuNxr-jmOAFog-1; Mon, 07 Sep 2026 06:30:52 -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 C0E0B197702D; Mon, 7 Sep 2026 10:30:49 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 92E8430001A2; Mon, 7 Sep 2026 10:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777055; 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=62mvN3+6Ik4rJgbtSXh3PbCH0A6py8ADyiqg0AkiFTs=; b=ONldnZZAv2Q6h1v/Kvmr6p/jcvIFGshhVV5lQEAWpD9oO2FWNs1XtCZQLVjebYvxhYL9Lz oTgcE5pJiB0fu3TBKg/NsgevMpedABSTo8FMSLhtBNkF1jjVRz0bILrYdJKCtBtZ0VXUFi atwgDanH9eSotmj7k8Yj95atkk5wTWs= X-MC-Unique: lYQjBLE4ODuNxr-jmOAFog-1 X-Mimecast-MFC-AGG-ID: lYQjBLE4ODuNxr-jmOAFog_1788777049 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:23 +0400 Subject: [PATCH v2 05/10] tests/functional/s390x: use QMP for balloon MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260907-nohmp-v2-5-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=1417; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=090HS6zLuSEZTINBqsIWMEfBWo0e9Nx0kELk6Jj7tAY=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJCaTAN8GtF82maIt5YiyiLrAre5xkrOZH+w twYbGwLJNWJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQgAKCRDa6OEJdZac 5SHiD/9cxY1UaSPh8eCEXdooDkqiYWSJTCoO6IoTJPcovc/TV2ue+NTDQHJySi0lorbyenbsjgO Mv7u1iBjNBo/SVveNBTqco7+UpuM2DogeVVdeNJg7FOiPzAHXyiIZJuBh+mPlR2iPkShs0qo9Z6 rDu6BalsBWH5CZBSgZmZy28JI2gPxFaczcnTvwFdAqzrPwBw2X8mZXokjjFWj2LcWKj8Rzye2cZ RpfRU7D8+swJcTbMWdOREXjpUf4v10pmmEqgyJkdwaFTk80qV2enZ3IEjZUehlsE9WcDFg32e57 AQxYRRw/YvimR47cTA2GlF9qFcwaU9EQ7/c5wTZxECJSftFL3XRy/eEXptzw3K7krYPauI5LOIy a+cOgkQ9f4DhC6zZxf7XNt7d6OahQl9ntaRFxJ1oT5a4QWHn22J4KBTlHPRPFRjv56EPz3Uq8nr wcxkXuw5IMz19Qjx4vQk595mFrbk5QpMHj6bi+/+jJyG7u2Od+eF+T6FfHCxqYK8sQtaGaTRPXA EX47jPay9z+FJcKi2VMLkUqUSnApcWiLBYeheo+KYFibtPMO+y2JTFZWmj+kew4DeJ6lwfphCYC uxD3r0GWKef5t0BMdNVUXqF8oA+p24d8GeG6hzWLrVSxhBw2hEh2Hg6ZLMYZu7ewPZam3WnpGoK Cj8nVHW3wJJR1rA== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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: 1788777109679154100 Unit is changed from megabytes to bytes. Reviewed-by: Thomas Huth Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/functional/s390x/test_ccw_virtio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/s390x/test_ccw_virtio.py b/tests/functional/s= 390x/test_ccw_virtio.py index 1d4958bbe293..f816b1e201a1 100755 --- a/tests/functional/s390x/test_ccw_virtio.py +++ b/tests/functional/s390x/test_ccw_virtio.py @@ -162,10 +162,10 @@ def test_s390x_devices(self): # test the virtio-balloon device exec_command_and_wait_for_pattern(self, 'head -n 1 /proc/meminfo', 'MemTotal: 115640 kB') - self.vm.cmd('human-monitor-command', command_line=3D'balloon 96') + self.vm.cmd('balloon', value=3D96 * 1024 * 1024) exec_command_and_wait_for_pattern(self, 'head -n 1 /proc/meminfo', 'MemTotal: 82872 kB') - self.vm.cmd('human-monitor-command', command_line=3D'balloon 128') + self.vm.cmd('balloon', value=3D128 * 1024 * 1024) exec_command_and_wait_for_pattern(self, 'head -n 1 /proc/meminfo', 'MemTotal: 115640 kB') =20 --=20 2.55.0.543.g5ebe2ebe4ea8 From nobody Sat Sep 26 20:01:48 2026 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=1788777508; cv=none; d=zohomail.com; s=zohoarc; b=bFcF9MPrnxlGVwL6aV49kCgDEBWV/PRw3ONNFoYLPYLokWn5p9zLr2L6u55MZyY4glZ9v+yQMHpn8wvCaBci4jXbGN7aP9eZQ9u59RwlbXGppJvWrC4AogdftKAFnAnaOb0foQh74blp5eF4hW1MjKByOJOtZvT/RoOOX7adaOk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788777508; 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=gkIrdElfeW1EwKlyXLCMJxCcIAp+LN1RtWIxRrsNopg=; b=f7OWDQ69umM4CpIAiYUiC+zD3Am7B/Dp37ZciYuY80GmxDN2jT1LQrjytfKCOL6+qXsgWL0LzN5kg7w+G3nWf6g/tq4EBAN5zRxsfCVqccqOkTzoYsq69jskcuSBWY1rjgiWjriPYI8cAoIw/Y/7uJXpLsfDrUuHVMMUku9snLQ= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788777508702112.11782142830441; Mon, 7 Sep 2026 03:38:28 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3Wj6-0000Vm-8O; Mon, 07 Sep 2026 06:37:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3Wip-0000PG-Re for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:37:09 -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 1x3Wim-00048K-Pw for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:37:07 -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-504-p0EESdlpNUKHuMiLJzZxVQ-1; Mon, 07 Sep 2026 06:30:55 -0400 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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 4DBC11955F76; Mon, 7 Sep 2026 10:30:53 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 692DF1800577; Mon, 7 Sep 2026 10:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777423; 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=gkIrdElfeW1EwKlyXLCMJxCcIAp+LN1RtWIxRrsNopg=; b=bkRO2lALe+JsEeynyddL/80k3js4AXpL5tLtSRlf2VjeWz2oRIMJSWTWVwUqzokh6SIm3K v7DW/xiCMfILT5A4Iu84bHSOZpjiLrN7QoilNm0lLx3jj1uDwd58jdRwrtf/4eAVqWR4Km huDwy24A8miokrhaq/W88cXG0wrJMhQ= X-MC-Unique: p0EESdlpNUKHuMiLJzZxVQ-1 X-Mimecast-MFC-AGG-ID: p0EESdlpNUKHuMiLJzZxVQ_1788777053 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:24 +0400 Subject: [PATCH v2 06/10] tests/qtest: add qtest_qmp_job_wait() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260907-nohmp-v2-6-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=2759; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=h9iGsvL7MMHY6Qm8hZ2uOnGK9+m0yedLi5VjofxU7do=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJCqpLMceCW6kMUUAVwmJolZ84/hbM3U/W3r 7LuuG9km6+JAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQgAKCRDa6OEJdZac 5S0mEACfYKvpwnUPu+oGsWjI+Wqwltf4YMokxd9iOcpiHpHwf25+nf6/rZZKE2MdTii8lFpg0Z8 GJGiHL4QwZ1exyrNEN0JRD9m3ZF8wjri315KbX9LPbAfIFW9SSLXb5+per/jteeoqJukPGGItCx hXPXiFITugQX1vbzXO1b/pZkK+MC9z3yYNBCvzYPdBRWmwm37K13DQICgeirXROa+wlIPkAkavt 0MfnehlZHwKWsbDO3EofXmNqmLSGXKW4BUX+MDAJloAbg/6FBAD5dbqGYJxe+Gij7K4/MOpWWG7 2+P683gyrJN8qIST7qY5TBofU4hG780W4mswfre6c41qpSNsvJCeYfF9zUHFgbC8ftQJ5OlDdj+ O+b37BsWyM1BLxujQW1wJd2BWi11sg9H0FHseozQOmd2/Ai8ti25SFC2vCYsdOwMSrYmNR1GWro FSYF0Vyz3X6qnjU9qJ2KZzNsrYPte6cNgOCPLWhCc7tycU7nlWBTLSBuQxncNm5p3SKi+glcz+i 8iNH9+9/x3bHe9ilqvALFpc6/8so16EKw2L8Y0sTyZnQenGObq+TdaNtk6IElCxSElrwmAfsjNR dGHAmQI9m2AHXc/rBCp1wXsVNSaSBCQq/Mv5z9MJLDyOZv+pJgwdvfC/6j0SDsQFI41eb1g3GLA Il3B0OlMT+Dxz4A== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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.01, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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: 1788777509720158500 Add a helper to wait for job conclusion, used in next changes. Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/qtest/libqtest.c | 37 +++++++++++++++++++++++++++++++++++++ tests/qtest/libqtest.h | 11 +++++++++++ 2 files changed, 48 insertions(+) diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c index 28bb72bfaecf..370f79a3b6fb 100644 --- a/tests/qtest/libqtest.c +++ b/tests/qtest/libqtest.c @@ -984,6 +984,43 @@ void qtest_qmp_eventwait(QTestState *s, const char *ev= ent) qobject_unref(response); } =20 +void qtest_qmp_job_wait(QTestState *s, const char *job_id) +{ + QDict *response, *data, *error; + QList *jobs; + const QListEntry *entry; + + for (;;) { + response =3D qtest_qmp_eventwait_ref(s, "JOB_STATUS_CHANGE"); + data =3D qdict_get_qdict(response, "data"); + if (!strcmp(qdict_get_str(data, "id"), job_id) && + !strcmp(qdict_get_str(data, "status"), "concluded")) { + qobject_unref(response); + break; + } + qobject_unref(response); + } + + response =3D qtest_qmp(s, "{ 'execute': 'query-jobs' }"); + g_assert(qdict_haskey(response, "return")); + jobs =3D qobject_to(QList, qdict_get(response, "return")); + g_assert(jobs); + QLIST_FOREACH_ENTRY(jobs, entry) { + QDict *job =3D qobject_to(QDict, qlist_entry_obj(entry)); + if (!strcmp(qdict_get_str(job, "id"), job_id)) { + g_assert_null(qdict_get_try_str(job, "error")); + break; + } + } + qobject_unref(response); + + response =3D qtest_qmp(s, + "{ 'execute': 'job-dismiss', 'arguments': { 'id': %s } }", job_id); + error =3D qdict_get_qdict(response, "error"); + g_assert_null(error); + qobject_unref(response); +} + char *qtest_vhmp(QTestState *s, const char *fmt, va_list ap) { char *cmd; diff --git a/tests/qtest/libqtest.h b/tests/qtest/libqtest.h index 58491ca53ab7..f06e061d214b 100644 --- a/tests/qtest/libqtest.h +++ b/tests/qtest/libqtest.h @@ -398,6 +398,17 @@ QDict *qtest_qmp_eventwait_ref(QTestState *s, const ch= ar *event); */ QDict *qtest_qmp_event_ref(QTestState *s, const char *event); =20 +/** + * qtest_qmp_job_wait: + * @s: #QTestState instance to operate on. + * @job_id: job identifier to wait for. + * + * Wait for a QMP job to reach "concluded" status by consuming + * JOB_STATUS_CHANGE events, then dismiss the job. + * Asserts that the job completed without error. + */ +void qtest_qmp_job_wait(QTestState *s, const char *job_id); + /** * qtest_hmp: * @s: #QTestState instance to operate on. --=20 2.55.0.543.g5ebe2ebe4ea8 From nobody Sat Sep 26 20:01:48 2026 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=1788777500; cv=none; d=zohomail.com; s=zohoarc; b=RpuBzOPJq/SSdWgps3ztnobzA1EhTO6Ni0oMmxwsSd83bCLPVsPYGww5YaBV1QqbQhRVXISYtFOj7X/CYcg+48ECfFxs4A/uXON7oXnrPVn8zVGXj/Gg1e5kKtMrnmblttHwd3c68iHrVpbIwSU/waEonpcrqsO03QJwOq+8BmY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788777500; 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=aoHiToUGAMMc7R5tO/URvtcB1gdA7zvemloBOxAK2DI=; b=lJYNgOepwEzyWSFsIXjUZwuy6YHHcUF/c16d1+0ETDCxsa3k7RaTm54DnWVrljklWVhyNUN1OYIBg7iZiJiSa88cHVXIUCOB8TYLb934y+KmouukgpnrCgUusaP2p8wjnbSc7LqxkYR0+v14B+IoEwSXr4toTNiSnuDLWaVKiO8= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788777500762865.6404608145235; Mon, 7 Sep 2026 03:38:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3Wj8-0000Yr-36; Mon, 07 Sep 2026 06:37:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3Wit-0000RW-Fd for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:37:15 -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 1x3Wip-00049P-CD for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:37: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-549-AjuZHCY1N5CwksmNfsie7w-1; Mon, 07 Sep 2026 06:30:58 -0400 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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 91D411955BDE; Mon, 7 Sep 2026 10:30:56 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 99CCB180034F; Mon, 7 Sep 2026 10:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777426; 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=aoHiToUGAMMc7R5tO/URvtcB1gdA7zvemloBOxAK2DI=; b=gho997t8tcCWXJa1psyKtSmSfYdNHn83qzhZFq1bFifz+zOPSmUH0reDYi6eQ+E5gGKQQe 9KC5TBZp+AB3qWqrt6apsNxbAdRfqstUWHjqFzsw+2TifhHniq2Y8uYfz5lLNCh/x5+QRv vxwJreDdaufwOg/+J47z9QhJ6EbaWT4= X-MC-Unique: AjuZHCY1N5CwksmNfsie7w-1 X-Mimecast-MFC-AGG-ID: AjuZHCY1N5CwksmNfsie7w_1788777056 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:25 +0400 Subject: [PATCH v2 07/10] tests/ide-test: convert to QMP MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260907-nohmp-v2-7-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=2957; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=bnu0nsKu9/3amglgx/1TloBIQkah/oVYczwxwKZZtsQ=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJDIguFS6UsqZjosZ8Is5fI62UldYUvTkTV0 VXsaBFY/MKJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQwAKCRDa6OEJdZac 5W74D/9uXZpMXFIx/zhfF4oy4OJ49taEpOr3v+iVrjqvOUBZYiBOYfttXxQmeFB3bVLcP64/NBQ ipmM+ttmXkEz1UsQQLbcg2uRXUFJsoKxLWju36TGL7pwGFf7PF/K7cnTc1224Rk+b0tZaNCsLKC 55vtM4lhzY2e1MXFAxSgnQ9DntIVl7R5dQy3KG7ABcnL5Ay3SBH70E8G83oYsRJU2RQd8vbGviq EEQg9fGUeMXwAEq2uMU5g/QseSQRVJuzAnFHW15wbmvKBJSl7GtMRpPRJ/eAYsPQmbLW8JQXStW rAb0OzTGVzLxqsBacRcX9tpRuE7fE+xRIRo3LD7T63rdyh1QqaDKmGIMeeBo4QiJOOTJFPCjQei K1hDmny1jA2eEYISD3UL7BoOq1dkbtcQjK2KCfbj4nwiQN+NP5ueL8mPUnaqmzBbDqbhSVC4CYs TpTRwG+3X6YJv7m3NuWenKMAypll42dFoCklXg6ncA17HdbKLGcVFn4pUeiJd+3wfQ5PoT8dj64 KGmKtmlEZg1OE8KHQ8hlds/2Cje8VHOY/XE1wrDZmS1TST2YfX8g+o9p/WrBOfCcuT4/Yhj3EiA DKHSwEYLK4ZX2OD/cvemjqbTrmtlNCplHcgw3HDyW6Quy/eMBNl8+mYUiNY9IV6DNalUbIcY6ru ZuuWQtvDZMupftQ== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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: 1788777501940154100 The QMP command is explicit, specify both the vmstate and devices. We use the helper introduced previously to wait for job completion. Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/qtest/ide-test.c | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/tests/qtest/ide-test.c b/tests/qtest/ide-test.c index 895fec6d0806..cf109b079982 100644 --- a/tests/qtest/ide-test.c +++ b/tests/qtest/ide-test.c @@ -1345,11 +1345,34 @@ static void ide_prepare_markers(QTestState *qts, QP= CIDevice *dev, ide_write_marker(qts, dev, ide_bar, 63, CHS_MARKER_DEFAULT); } =20 -static void ide_hmp_quiet(QTestState *qts, const char *command) +static void ide_snapshot_save(QTestState *qts, const char *tag, + const char *vmstate, const char *device) { - g_autofree char *out =3D qtest_hmp(qts, "%s", command); + qtest_qmp_assert_success(qts, + "{ 'execute': 'snapshot-save'," + " 'arguments': {" + " 'job-id': 'save0'," + " 'tag': %s," + " 'vmstate': %s," + " 'devices': [%s]" + " }" + "}", tag, vmstate, device); + qtest_qmp_job_wait(qts, "save0"); +} =20 - g_assert_cmpstr(out, =3D=3D, ""); +static void ide_snapshot_load(QTestState *qts, const char *tag, + const char *vmstate, const char *device) +{ + qtest_qmp_assert_success(qts, + "{ 'execute': 'snapshot-load'," + " 'arguments': {" + " 'job-id': 'load0'," + " 'tag': %s," + " 'vmstate': %s," + " 'devices': [%s]" + " }" + "}", tag, vmstate, device); + qtest_qmp_job_wait(qts, "load0"); } =20 static char *ide_migration_status(QTestState *qts) @@ -1455,10 +1478,6 @@ static void test_migrate_chs_snapshot(void) char marker[9]; int fd; =20 -#ifndef CONFIG_HMP - g_test_skip("HMP not enabled"); - return; -#endif if (!have_qemu_img()) { g_test_skip("QTEST_QEMU_IMG not set, snapshots need a qcow2 image"= ); return; @@ -1480,13 +1499,13 @@ static void test_migrate_chs_snapshot(void) /* Snapshot taken while the default translation is in effect */ ide_read_chs_marker(qts, dev, ide_bar, 0, 1, 1, marker); g_assert_cmpstr(marker, =3D=3D, CHS_MARKER_DEFAULT); - ide_hmp_quiet(qts, "savevm s0"); + ide_snapshot_save(qts, "s0", "hda", "hda"); =20 ide_set_translation(dev, ide_bar, 8, 32); ide_read_chs_marker(qts, dev, ide_bar, 0, 1, 1, marker); g_assert_cmpstr(marker, =3D=3D, CHS_MARKER_CUSTOM); =20 - ide_hmp_quiet(qts, "loadvm s0"); + ide_snapshot_load(qts, "s0", "hda", "hda"); =20 ide_read_chs_marker(qts, dev, ide_bar, 0, 1, 1, marker); g_assert_cmpstr(marker, =3D=3D, CHS_MARKER_DEFAULT); --=20 2.55.0.543.g5ebe2ebe4ea8 From nobody Sat Sep 26 20:01:49 2026 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=1788777147; cv=none; d=zohomail.com; s=zohoarc; b=Isu6ZNKtZ7T6z4lFm8V93Gi2C9JPCoZJItDuplnH5NWIlaW6l+uwc7Wpg/c4h+K3r0EqQj6ivDOlWO8i1g2bn6k0867odzGsoO2RMFZAtZrViIDt/EzaJqTSYvRXqjGV76K4BcE0HIMDjZ7QDIvKG5NlBKgzaBU3OlOuROaLS+8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788777147; 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=cr17daom5ZIwPL1Jm52XNja1f8W6vz7SjHDPV0FRzto=; b=YvaY8oN23IsSIN+ORGfFs+tenZ7NGkuY/5OiYLK3jl+uUj1/KyEhq0HQai77FHqtO2qU/H/j0QEjx4zQGkJpo45Pi3LLiTFVsAxSXExh4FGd/jgwtu6INqRNYDaoVIhxKgy4ipXtZEmsv1TGe56HV0DVh2ozjid7dXGBxWi/AQw= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 178877714786167.81624011816132; Mon, 7 Sep 2026 03:32:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3Wd6-0004OQ-JX; Mon, 07 Sep 2026 06:31:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3Wd5-0004Ns-45 for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:31:11 -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 1x3Wd1-0003W7-Bx for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:31:09 -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-561-4c7xqn7mN2aTKFmFmQ0KTQ-1; Mon, 07 Sep 2026 06:31:02 -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 26DD2197703E; Mon, 7 Sep 2026 10:31:00 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 523803000223; Mon, 7 Sep 2026 10:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777065; 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=cr17daom5ZIwPL1Jm52XNja1f8W6vz7SjHDPV0FRzto=; b=fGpzrdCWhnxAYa3Nj+kp2KBO2I4n+Uu/m4Bsq0Ze1Mcgimzw9fGOSxtU+K72q2B9DmuBVX eg3Db4gmxbeLhxQyK3amPkH+WcTFsf+Th2kda0qE1MgCOFBRThvy9VlwC3d/xagvnDAtCH DqotjW5wZlN9d8Ox3H+yewRck4vripc= X-MC-Unique: 4c7xqn7mN2aTKFmFmQ0KTQ-1 X-Mimecast-MFC-AGG-ID: 4c7xqn7mN2aTKFmFmQ0KTQ_1788777060 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:26 +0400 Subject: [PATCH v2 08/10] tests/drive_del-test: compile out HMP-dependent tests when !CONFIG_HMP MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260907-nohmp-v2-8-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=3999; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=nELlHO8Wk8s5vJ916Mup0ugCUbfnyL7FDxtNlquSMtI=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJDmDcUdpf3J+Zp5LGlZt5xHWwgZq0Ag4wTG ZykkAAUcOKJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQwAKCRDa6OEJdZac 5fHGD/934pYLV5igo2E5quOb4ZE0Liiq1O+Z9KanshnSlItckgoGDdo8ekeTP5JV8fgVRTPtUcD 8RGxAxO11sNMDmdQONg6ERxO4wWtOr/OTICocD7SuqT+PCI+agywKKVihtR30Oh6nsh+qlgFl2R tgLvTbnjuKG3tHBN5ImuEPJ/7iGmGMId0PvKK6zy74Tl92rByPDiR1im+Oqt0vJCZGGmaStFxlv WejIInGEMejJRYN9K2VZ2svHs4G6GOnQ16AcSlrlLcrldwmvxroAXPskEm6jBzXGaELZWF7FPsI Q/QDX0M2zpF2WmZ9tA25DdUztalSWlteecIZ/Ij3vn7EIj68x8uXc1IrXkZ0/UU8Ifax7P4w4DW KxexvrGgyOeNcPDVNuyLIhZJw2WoEtqxLhiMM98Brq/rk+yjVSFsdQZEIsunfLdcvVLvDPKIXri bOGSpIRXt+hz7AEKliAkZVMKKB5fRLdR7wDk4kSraOOMwcOUsE98+vV76wpj8DrDPbZvv3n0pSY rBMh0QQ+APf35KpMLwZtoOyKqi+mGZhB934enY8x25o5nynLke6cH19uDktGVke+TyF1jNmKLdr RJ1pBGteFGg8XoPR5eD3PXkbSXUk2p8eEqkwQB3hs6KdaCH1ETKnfteOy/z6yqG1Ob6LMQigpyi ZVk3L1tfW9XYstw== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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.01, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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: 1788777151276154100 The compiled-out functions are actually testing HMP-specific commands and behaviour which operate on the old "drive" concept. The QMP equivalent for block-driver nodes are already tested. If HMP goes away, those tests should go away too. Compile them out. Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/qtest/drive_del-test.c | 47 +++++++++++++++++++++-------------------= ---- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/tests/qtest/drive_del-test.c b/tests/qtest/drive_del-test.c index cc52c2d87936..cbf94d5b9f0f 100644 --- a/tests/qtest/drive_del-test.c +++ b/tests/qtest/drive_del-test.c @@ -87,6 +87,7 @@ static void blockdev_add_with_media(QTestState *qts) g_assert(has_blockdev(qts)); } =20 +#ifdef CONFIG_HMP static void drive_add(QTestState *qts) { char *resp =3D qtest_hmp(qts, "drive_add 0 if=3Dnone,id=3Ddrive0"); @@ -117,6 +118,7 @@ static void drive_del(QTestState *qts) g_assert(!has_drive(qts)); g_free(resp); } +#endif =20 /* * qvirtio_get_dev_type: @@ -165,13 +167,9 @@ static void device_del(QTestState *qts, bool and_reset) =20 static void test_drive_without_dev(void) { +#ifdef CONFIG_HMP QTestState *qts; =20 -#ifndef CONFIG_HMP - g_test_skip("HMP not enabled"); - return; -#endif - /* Start with an empty drive */ qts =3D qtest_init("-drive if=3Dnone,id=3Ddrive0 -M none"); =20 @@ -184,19 +182,18 @@ static void test_drive_without_dev(void) drive_add(qts); =20 qtest_quit(qts); +#else + g_test_skip("HMP not enabled"); +#endif } =20 static void test_after_failed_device_add(void) { +#ifdef CONFIG_HMP char driver[32]; QDict *response; QTestState *qts; =20 -#ifndef CONFIG_HMP - g_test_skip("HMP not enabled"); - return; -#endif - if (!has_device_builtin("virtio-blk")) { g_test_skip("Device virtio-blk is not available"); return; @@ -227,17 +224,16 @@ static void test_after_failed_device_add(void) drive_add(qts); =20 qtest_quit(qts); +#else + g_test_skip("HMP not enabled"); +#endif } =20 static void test_drive_del_device_del(void) { +#ifdef CONFIG_HMP QTestState *qts; =20 -#ifndef CONFIG_HMP - g_test_skip("HMP not enabled"); - return; -#endif - if (!has_device_builtin("virtio-scsi")) { g_test_skip("Device virtio-scsi is not available"); return; @@ -259,6 +255,9 @@ static void test_drive_del_device_del(void) g_assert(!has_drive(qts)); =20 qtest_quit(qts); +#else + g_test_skip("HMP not enabled"); +#endif } =20 static void test_cli_device_del(void) @@ -416,15 +415,11 @@ static void test_device_add_and_del_q35(void) =20 static void test_drive_add_device_add_and_del(void) { +#ifdef CONFIG_HMP QTestState *qts; const char *arch =3D qtest_get_arch(); const char *machine_addition =3D ""; =20 -#ifndef CONFIG_HMP - g_test_skip("HMP not enabled"); - return; -#endif - if (!has_device_builtin("virtio-blk")) { g_test_skip("Device virtio-blk is not available"); return; @@ -450,17 +445,16 @@ static void test_drive_add_device_add_and_del(void) g_assert(!has_drive(qts)); =20 qtest_quit(qts); +#else + g_test_skip("HMP not enabled"); +#endif } =20 static void test_drive_add_device_add_and_del_q35(void) { +#ifdef CONFIG_HMP QTestState *qts; =20 -#ifndef CONFIG_HMP - g_test_skip("HMP not enabled"); - return; -#endif - if (!has_device_builtin("virtio-blk")) { g_test_skip("Device virtio-blk is not available"); return; @@ -479,6 +473,9 @@ static void test_drive_add_device_add_and_del_q35(void) g_assert(!has_drive(qts)); =20 qtest_quit(qts); +#else + g_test_skip("HMP not enabled"); +#endif } =20 static void test_blockdev_add_device_add_and_del(void) --=20 2.55.0.543.g5ebe2ebe4ea8 From nobody Sat Sep 26 20:01:49 2026 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=1788777158; cv=none; d=zohomail.com; s=zohoarc; b=B5Kep1lBOSKEa+m546H7JvjijqcEWjb+Qgo5FyYUtmfcp9b8R8Mvf22INR84Ah+MUjjT4xVb7S+vXinQgC1P6cMRyWfeSqJFHfV7GsTNw5O9XRiiE8YGI0/IghKYf0/6mZ/rcvMZ6ZQmahHfjC7M7FaoWUTYzJcemd0YYR8ZuEk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788777158; 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=vLNU8deII2YV/Np0anR9mXTsHZWaHsyFpOSn0YczNCY=; b=OqyichCCGa8AGMzphoyNEpY86nIJmjW/Ku6Be1p9MioEv+s4cZjqJiDHbqNcBOY7zK1/3sHu80nE8UtRnkKl2Z9heswCppJWGtAAhbZRu1TqpyprNKgSFjAMlx2rAQ6u/2aRSgOtF7cxJE60xCW8blweUK1SpowyBaXcfN8ybgQ= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788777158356210.31261008964793; Mon, 7 Sep 2026 03:32:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3WeH-0005nO-Tf; Mon, 07 Sep 2026 06:32:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3We7-0005Z4-51 for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:32:15 -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 1x3We5-0003eH-Kr for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:32:14 -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-59-0fjNSRPQMJKsZtLlEIQXqA-1; Mon, 07 Sep 2026 06:31:05 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 A9720195C261; Mon, 7 Sep 2026 10:31:03 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8FC761955F0E; Mon, 7 Sep 2026 10:31:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777132; 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=vLNU8deII2YV/Np0anR9mXTsHZWaHsyFpOSn0YczNCY=; b=N6sm6vH0YZV8M7nvLjMrLhZ1LqdEQ21yooPXmiICmgEy/4qPek4GSm53ALZnWQ8qWALOA9 8nBE1elFxOsUYreShdXDuL1nzVCdI2qcYmNrtp56LnQw/DUDDkUCMonr1vWF3dnJmz616J ZRZHuzSiJuFO8Xm7IXFd+EUJm8P2Duo= X-MC-Unique: 0fjNSRPQMJKsZtLlEIQXqA-1 X-Mimecast-MFC-AGG-ID: 0fjNSRPQMJKsZtLlEIQXqA_1788777063 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:27 +0400 Subject: [PATCH v2 09/10] qtest: compile out HMP helper when !CONFIG_HMP MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260907-nohmp-v2-9-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=1572; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=Xa0/LC6u8sESL2zvgI9W3vBYiovc4bTzR3MiwSE4zLE=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJDmTqDNpIyL1ilrSNEoJynLvMhXLfp09FhI SpJMkRSjJeJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQwAKCRDa6OEJdZac 5bdnD/9V0SWHfwBvxxLxdBBhex/2+ogqtHPs60PQWbgnRxzJzUlXMidC7Baeoz5SywXP/M7pm0s a4f1QugZtPeoI2aIVrTU2nslpFewSqquTHT70fxmhojmcDwBrTvIrJE51x8S3tAMfD4NxZyq8fT 7LGoQR3IK5vjZD99Zn7nmiV+NMpWTjD4E1Fu+i86fWyTxCIWpppx9Mv9MfpZ+i7ffluG1MOlvOx Rxu3+ux/jG1iml3FPaclpIK17J86XpkgV/HUoKeDmn2eJgrmzeWw+DFnUK2bfciDtOE3dyE53kk VfwgKGIXCA8svI+UNUfdsD6fHGuEVkVObKOwrS45bI8wWL9b+OH4BbnmEB9MNnsW93jjiEJPtCZ SE4YkE9jEjuLVvYqno6VYA7wbkhvyB5C+DWa/8xu3YiJuvE6AxED4GHb80IRD71c/EH2uHWvQGb lUNUcqGG9Doe3VSxBidLhGNkU9fv9YClNjI0Y3/MTgeGnIzMEI9KAbGhFOOru8oE/rP+C2iBBL1 uSrZtlkR9Nk9K9FrdOe4ojcwouv0iUIMDFI3q9LasTvRqt1yBX2p8X92w6butsZg0fbrAP0ZN1r oUxnz6ocs2BgvR1ueklhg1i7CIB6MBbl1kSu7GtSmObxhuuyUKHZqoO3R0NgCcXSQugGNj2fK+n uzQsoJLdlir1dkg== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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.01, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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: 1788777159893158500 This should help prevent introducing HMP tests inadvertently. Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/qtest/libqtest.c | 2 ++ tests/qtest/libqtest.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c index 370f79a3b6fb..05d884761540 100644 --- a/tests/qtest/libqtest.c +++ b/tests/qtest/libqtest.c @@ -1021,6 +1021,7 @@ void qtest_qmp_job_wait(QTestState *s, const char *jo= b_id) qobject_unref(response); } =20 +#ifdef CONFIG_HMP char *qtest_vhmp(QTestState *s, const char *fmt, va_list ap) { char *cmd; @@ -1048,6 +1049,7 @@ char *qtest_hmp(QTestState *s, const char *fmt, ...) va_end(ap); return ret; } +#endif =20 void qtest_qemu_io(QTestState *s, const char *device, const char *fmt, ...) diff --git a/tests/qtest/libqtest.h b/tests/qtest/libqtest.h index f06e061d214b..20982d3fe8dd 100644 --- a/tests/qtest/libqtest.h +++ b/tests/qtest/libqtest.h @@ -409,6 +409,7 @@ QDict *qtest_qmp_event_ref(QTestState *s, const char *e= vent); */ void qtest_qmp_job_wait(QTestState *s, const char *job_id); =20 +#ifdef CONFIG_HMP /** * qtest_hmp: * @s: #QTestState instance to operate on. @@ -434,6 +435,7 @@ char *qtest_hmp(QTestState *s, const char *fmt, ...) G_= GNUC_PRINTF(2, 3); */ char *qtest_vhmp(QTestState *s, const char *fmt, va_list ap) G_GNUC_PRINTF(2, 0); +#endif =20 /** * qtest_qemu_io: --=20 2.55.0.543.g5ebe2ebe4ea8 From nobody Sat Sep 26 20:01:49 2026 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=1788777501; cv=none; d=zohomail.com; s=zohoarc; b=MDw57h0y0N+xGw9mUdqqqNPmnETGiuv2MfSqlpfWEVXHXBwelz1NypB2nugHzTj9M4BucgWOs7bcGh+NVIOPUx0S4s2LTXeN93ff8w3LnI1NaA3SHE0FAe4+DmZajwB5pUus4c8ae1btDV9qKny2Hs2OopViaDrJtxiIfj3nOE0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788777501; 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=6dwcCBq9JxVWiIUYZWBjdCoyYEm1ieLlZHInZiBmG9Y=; b=VgbiZdnCkbFjVHZrTRBbdHC8Qg5UpdMhdteB4usOeirMmaL28LOBDC/MFRSVFryTau1lPxCZUdZfnlFViC1Ld8zcejJ7j2qKVSrcbeFjSyOVe2TU90tQAHGUuroQnVlc6Q3SF0+dJ4T2jtsoZawZJfa79qrW0+vbB1H0dxfPnlA= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788777501317223.20498263077354; Mon, 7 Sep 2026 03:38:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3WjK-0000jZ-4Z; Mon, 07 Sep 2026 06:37:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3WjJ-0000jG-AZ for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:37:37 -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 1x3Wj4-0004HI-OH for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:37:37 -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-682-VXMaZqTgNEavXlNPrXWaBQ-1; Mon, 07 Sep 2026 06:31:10 -0400 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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 E5B7A1802162; Mon, 7 Sep 2026 10:31:07 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 833DC1800577; Mon, 7 Sep 2026 10:31:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777441; 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=6dwcCBq9JxVWiIUYZWBjdCoyYEm1ieLlZHInZiBmG9Y=; b=Z8hSmweuQ5krNz4K8YY6A4Pn9ZjjjmI4xycKA9kE22hkFgnaOjX+JUFvZUHFd2Kr92CXy5 XkUj8a+8RfdCS8rORVEr17n4i1o6f4i7bq8nXnuCdgq7pdPIKCvITcEG7ExwLu0zmpPCc2 lpDKWj5pz1/G6YP7hRYHzs1M2S+PZIg= X-MC-Unique: VXMaZqTgNEavXlNPrXWaBQ-1 X-Mimecast-MFC-AGG-ID: VXMaZqTgNEavXlNPrXWaBQ_1788777068 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:28 +0400 Subject: [PATCH v2 10/10] tests/functional: fix some tests that require HMP MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260907-nohmp-v2-10-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=1332; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=vczpgToxbft+6rJhaegC1wW8anYwt9OMkpy1ZKiQlu8=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJD9XSdF1AMNldNGFvcxlc75vCXwjxhAjpYT N/ztgPdvG2JAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQwAKCRDa6OEJdZac 5cUAD/4toRCY1ncsJpl1WT6J+rjFNK6cj5wWLmq61nWh+KNBj5G2BWXwU/9YOJVfCCb1Y6iMswc 1JW1J9NoMzw8NtHsTpadbLrb5pqgxdk9GWNMCecJ72LB6qbJ9yB1OYf0KEPdnm8JWDsyNsJZdmb hLhBjcs2QdYmaq6wMOMYZkIPQFDRwclG2SM/AbAC/jcIpIgvY7XyhMuxLaT483qqX5+MWk+JlRc qb3hpefOUsOppZrrHEn7RV767OBxD0XB839Aq8MStFHVdCdsgD6yeG3Wcug95Cs/Iv2VjOXODfh +VuVPDfiq5tNrquvw1EKtXi04FReZbWaDsyrBKBebPx+UWQrw/Y+agO+RnLq1zdrONheWQJXrh9 DjuJA6x+DtKXXdXrCOf2Z9VOMMhGqhHrSDg+m0B7IA5zkrKz1rIBLmTFC/C9wzB7nlHQUy0rvlN 2Y5PjMITWoEoVgxfK2SWkN0ShRg4fFZdPjXq48rf9AANU/zyyUck0aN6fbbGfoGGlFD6Wz0PhBV aKv96GLS54APbMU9byeGFX4IFjgpwzFV7xFnCZXsHJ0JUwFUB4R4+GrTn6y89AZj73fZaZPo0Ax AU4/jVLTHplPQMGgRrePfah+SkB5uoOATqCb9k+sjJ+UqtHApKAgsJChjggZjcditZpaBuYiteD t6Ha1dEToCR7EXQ== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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: 1788777503703158500 Those tests use "info registers" command and cannot be converted easily, for now skip them Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/functional/m68k/test_nextcube.py | 2 +- tests/functional/ppc/test_ppe42.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/functional/m68k/test_nextcube.py b/tests/functional/m68k= /test_nextcube.py index 82e157882e0a..cd7383f282a1 100755 --- a/tests/functional/m68k/test_nextcube.py +++ b/tests/functional/m68k/test_nextcube.py @@ -14,7 +14,7 @@ from qemu_test.tesseract import tesseract_ocr =20 =20 -@skipUnlessConfig("PIXMAN") +@skipUnlessConfig("PIXMAN", "HMP") class NextCubeMachine(QemuSystemTest): =20 timeout =3D 15 diff --git a/tests/functional/ppc/test_ppe42.py b/tests/functional/ppc/test= _ppe42.py index 53958a7938d1..a3b8d7fa89f1 100755 --- a/tests/functional/ppc/test_ppe42.py +++ b/tests/functional/ppc/test_ppe42.py @@ -7,9 +7,10 @@ # SPDX-License-Identifier: GPL-2.0-or-later =20 import asyncio -from qemu_test import QemuSystemTest, Asset +from qemu_test import QemuSystemTest, Asset, skipUnlessConfig =20 =20 +@skipUnlessConfig("HMP") class Ppe42Machine(QemuSystemTest): =20 timeout =3D 90 --=20 2.55.0.543.g5ebe2ebe4ea8