From nobody Mon Feb 9 08:27:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1565801385; cv=none; d=zoho.com; s=zohoarc; b=iNmUw3Ptg9wdwxL6vOOO1gUZs23nQJSM5Z9+DxeJ4UoiETSuHGDQ0+Lx91wvlJvB9/B9irrMIpZQ9C4UfqQEVZ41XFl1bnf/QRBJwBVBvZXbKwpoJLYfa07HVBxVIIdpI9BpALWHw1xrFXevJX2W2/bYdG/syu0zhX9WVmYJ9ls= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565801385; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=6KfFuRbz9pTXzucs3gL/3ktnkJOAWr4xsZYJb3iODwg=; b=HTH8wpR72reqWkMSz7LD41daM8zlb9NVuY5hzU3wvwr3DpI4n3Ryak/EBWrcrfzE4dVMJWxRG2djLMEJTXD0ba33VjamvxABzwBh1tfrww0P/5WVqt1RoWYD+9guG6fP/C6wtUfKxJBRg0lSWZ5zDf1PAcDvViHhRDDlMWhGMiY= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1565801385697372.0971549827839; Wed, 14 Aug 2019 09:49:45 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 84DC08E5A6; Wed, 14 Aug 2019 16:49:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 621F8900D4; Wed, 14 Aug 2019 16:49:44 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2D95C24F30; Wed, 14 Aug 2019 16:49:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x7EGngr7028265 for ; Wed, 14 Aug 2019 12:49:42 -0400 Received: by smtp.corp.redhat.com (Postfix) id BFEC28E7BD; Wed, 14 Aug 2019 16:49:42 +0000 (UTC) Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BA2F3900BB for ; Wed, 14 Aug 2019 16:49:40 +0000 (UTC) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A4058C0546FF for ; Wed, 14 Aug 2019 16:49:39 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id y8so5802940wrn.10 for ; Wed, 14 Aug 2019 09:49:39 -0700 (PDT) Received: from archlap.localdomain ([185.32.231.210]) by smtp.gmail.com with ESMTPSA id d20sm129372wmb.24.2019.08.14.09.49.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2019 09:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=GDUjrH632jWCwmpaIi8w3wzG7P5N4ahpnXgThAgCWyQ=; b=dUp0hbwQZYLtjrE8jpErPiYUzlM6SB/RUNc1Fa3GzEsyldlJdO/flkf2sVyRaiuzlW kIwW+TSQ1hi8XlvUSMj91ouLCxBx9XOt5F0Xkf1isEOU5PY4H7Wu0gHjynAgriQaZZUH yvykbeh7FkvYuarH57pZ0Qi2gR+KMFoBkT2bhSao+9ACfg6XftYfU8AcpHW9dHfaPptS mME1rV658Iws2KQPK9BOtbgtltT5EPbez2GH4ZG0M7/E983DI4NHvh/W6pvGAfIGGdxi Es+Xh7D3OhsvZWYWDu7aQYNyyb0xA71eZIWGPDuvoSDLcs8sgtfo4VJ7kjXJkSSmmWr3 tViA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GDUjrH632jWCwmpaIi8w3wzG7P5N4ahpnXgThAgCWyQ=; b=sxMA/3gZ25B4Im31E2lOIW1G4FwtzjSOcI2tiE6csqxEpftXIZ9u+9U2EW/N+0PS7A GIVUSkvGUhk04F601m4/lc7iWg/r95cqaJgMn20futqYWKdIiUygZD+JXpTSflgg6BTJ zKCA6I2bsuU/M5LVnJEDtasWRv/VoZUmAKHppHnckCfdCJ/a/LOargA7e+cGDwDHTmkN C9eJaJnN3wrfgEJrLSHYrqSp3oV7HbUaZuMLtQxbHExhLN8owftnk89MY6XvJQgtBBvf er5HJO/oGG7eS3iV8h+MWaetmApnAEIozOHkH4gY8G3zdfOfi5Y3e1iMcu61z1kc8Uvc x4EA== X-Gm-Message-State: APjAAAWaWsQzSTiLFvVV7EXrYY1+4zCpyW1n94+dOhhT5xm2pTQ0VFta qLzwIL89oyiMGW9kYAcSVbuiSngn150= X-Google-Smtp-Source: APXvYqzjuLCDjRFzMCZtumYCM/iaOgMuQT9C2I87pV9rfn7bEaShqhrniUW6rNxPma3e9saKzZ/EWg== X-Received: by 2002:adf:dc0f:: with SMTP id t15mr798044wri.50.1565801378009; Wed, 14 Aug 2019 09:49:38 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Wed, 14 Aug 2019 19:47:09 +0300 Message-Id: <20190814164709.5418-6-stamatis.iliass@gmail.com> In-Reply-To: <20190814164709.5418-1-stamatis.iliass@gmail.com> References: <20190814164709.5418-1-stamatis.iliass@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 14 Aug 2019 16:49:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 14 Aug 2019 16:49:39 +0000 (UTC) for IP:'209.85.221.65' DOMAIN:'mail-wr1-f65.google.com' HELO:'mail-wr1-f65.google.com' FROM:'stamatis.iliass@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.099 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS) 209.85.221.65 mail-wr1-f65.google.com 209.85.221.65 mail-wr1-f65.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 5/6] test_driver: implement virDomainDetachDeviceAlias X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 14 Aug 2019 16:49:45 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Ilias Stamatis Reviewed-by: Erik Skultety --- src/test/test_driver.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 1152ca5bed..e271bc58f8 100755 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -5119,6 +5119,17 @@ testDomainDetachDeviceFlags(virDomainPtr dom, xml, NULL, flags); } + +static int +testDomainDetachDeviceAlias(virDomainPtr dom, + const char *alias, + unsigned int flags) +{ + return testDomainAttachDetachUpdateDevice(dom, TEST_DEVICE_DETACH, + NULL, alias, flags); +} + + static int testDomainDetachDevice(virDomainPtr dom, const char *xml) @@ -9935,6 +9946,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .domainAttachDeviceFlags =3D testDomainAttachDeviceFlags, /* 5.7.0 */ .domainDetachDevice =3D testDomainDetachDevice, /* 5.7.0 */ .domainDetachDeviceFlags =3D testDomainDetachDeviceFlags, /* 5.7.0 */ + .domainDetachDeviceAlias =3D testDomainDetachDeviceAlias, /* 5.7.0 */ .domainGetAutostart =3D testDomainGetAutostart, /* 0.3.2 */ .domainSetAutostart =3D testDomainSetAutostart, /* 0.3.2 */ .domainGetDiskErrors =3D testDomainGetDiskErrors, /* 5.4.0 */ -- 2.22.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list