From nobody Thu Nov 21 22:01:05 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1715769029138128.0553121999169; Wed, 15 May 2024 03:30:29 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 15F6B18AA; Wed, 15 May 2024 06:30:28 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 15D4D1A40; Wed, 15 May 2024 06:28:44 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id D4B9C1AF9; Wed, 15 May 2024 06:28:36 -0400 (EDT) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 2EDB91B39 for ; Wed, 15 May 2024 06:28:20 -0400 (EDT) Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a59c5c9c6aeso144917466b.2 for ; Wed, 15 May 2024 03:28:20 -0700 (PDT) Received: from localhost.localdomain ([212.70.118.255]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b17754sm832975266b.192.2024.05.15.03.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 03:28:18 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715768899; x=1716373699; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gPhi3gaBUwV5R+jNx78kuQuPv4GxYOzeIw/QzkNz+Qo=; b=XOEWnX+/PPXpbAx8X4HtgTmjBJv6coDvBUn47tO56X2PWJu1tzK3G2RlL1JIVWb9/P BzLcQ1vEl+cc7Vgmd/WtpndSY2xpIP2V4h364en46XhGrEyjpuLYQpnN3j29UHJ3zQMw t+DVrts2iPjG7yCiN5zKeBfnVdz1Ss5DhROK8sAG8mLi7yCu4dukLjhL61geaGDHYwZA YU42KMJXPdWTShoVkmptArpomQVIekFbTxTyCqaFHVNRG2jAgpKIEd0eLR3toNSfZg90 ZsRNDYR73+srOp02YhpXhBIqr891hqvG3Y0BqJagqIZUa2kQtIMnbb+z9nBtkrBiic3j FTjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715768899; x=1716373699; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gPhi3gaBUwV5R+jNx78kuQuPv4GxYOzeIw/QzkNz+Qo=; b=iT9m4jfc1PwMFoNZGTmUexnLUoXBlavAqdQJs7UUvB0X5mbuB7bZKRR7wlL7LY6Pn4 GvMWYD02ZJ4htByNbggYGpa0pECDj+t66n79HNhgNKgYHkHbWFqZZ5uDSn1dKuq/RKf6 BFZJO179ujDx1uZLfPjn5bOmZKqn6E7pOYUt3kSxAOUQNth4QKkgrHgnNXaydFTeNuo8 UXWt//kFIhm2NnP3Rs0IN8CoozsagP1Vxd2sksDc7lE4xSSmz9uh1RBUCxmP9LNXX7I/ EbIWiKa7H5Hdsb53W2w87+qPjBsXWoajz6HSDSE4PF7LskLnBwes3dzJBw8m0rS48zxV ry3g== X-Gm-Message-State: AOJu0YxjPT7eJt4snO9Mj1WpHtnWtbXT877k6XtQy1wllphoOsX82IVF oAk7pL2abtfoDChVrKDnuJwYVUJle44IqfJHJLj8LM5DRClo6MmwxdiunA== X-Google-Smtp-Source: AGHT+IGW3mFPrejxCRzkHj+uj3RXRR5EPv7JzWdV866UJJh6LZFeo6wWGIIovE7XwY2qicaMpRKPlQ== X-Received: by 2002:a17:907:7da3:b0:a58:e3d9:e2d6 with SMTP id a640c23a62f3a-a5a2d672f76mr1310325366b.56.1715768898534; Wed, 15 May 2024 03:28:18 -0700 (PDT) From: Rayhan Faizel To: devel@lists.libvirt.org Subject: [PATCH 2/2] qemuhotplugtest: Add testcases for hotplugging evdev input devices Date: Wed, 15 May 2024 15:57:54 +0530 Message-Id: <20240515102754.31493-3-rayhan.faizel@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240515102754.31493-1-rayhan.faizel@gmail.com> References: <20240515102754.31493-1-rayhan.faizel@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: R7YCMWL5JPR2R2RCWYXPAII6BM2NZFCU X-Message-ID-Hash: R7YCMWL5JPR2R2RCWYXPAII6BM2NZFCU X-MailFrom: rayhan.faizel@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Rayhan Faizel X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1715769030508100001 Content-Type: text/plain; charset="utf-8" This patch adds testcases to exercise hotplugging/hotunplugging evdev input devices. Signed-off-by: Rayhan Faizel --- tests/qemuhotplugtest.c | 5 ++ .../qemuhotplug-input-evdev.xml | 3 + .../qemuhotplug-base-live+input-evdev.xml | 58 +++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 tests/qemuhotplugtestdevices/qemuhotplug-input-evdev.xml create mode 100644 tests/qemuhotplugtestdomains/qemuhotplug-base-live+inpu= t-evdev.xml diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c index 961a7a3c64..d935ad58ed 100644 --- a/tests/qemuhotplugtest.c +++ b/tests/qemuhotplugtest.c @@ -774,6 +774,11 @@ mymain(void) "device_del", QMP_DEVICE_DELETED("scsi0-0-0-4") QMP_OK, "blockdev-del", QMP_OK); =20 + DO_TEST_ATTACH("x86_64", "base-live", "input-evdev", false, true, + "object-add", QMP_OK); + DO_TEST_DETACH("x86_64", "base-live", "input-evdev", false, false, + "object-del", QMP_OK); + #define DO_TEST_CPU_GROUP(archname, prefix, vcpus, expectfail) \ do { \ cpudata.test =3D prefix; \ diff --git a/tests/qemuhotplugtestdevices/qemuhotplug-input-evdev.xml b/tes= ts/qemuhotplugtestdevices/qemuhotplug-input-evdev.xml new file mode 100644 index 0000000000..7f3d9cfd72 --- /dev/null +++ b/tests/qemuhotplugtestdevices/qemuhotplug-input-evdev.xml @@ -0,0 +1,3 @@ + + + diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+input-evdev= .xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+input-evdev.xml new file mode 100644 index 0000000000..50d8815a5c --- /dev/null +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+input-evdev.xml @@ -0,0 +1,58 @@ + + hotplug + d091ea82-29e6-2e34-3005-f02617b36e87 + 4194304 + 4194304 + 4 + + hvm + + + + + + + + + qemu64 + + + destroy + restart + restart + + /usr/bin/qemu-system-x86_64 + + +
+ + + +
+ + + +
+ + + + + + +
+ + + + + + + + + + + +