From nobody Thu Nov 21 17:40:55 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 1731939632899598.5851752172889; Mon, 18 Nov 2024 06:20:32 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id A87721BAF; Mon, 18 Nov 2024 09:20:23 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 513A41C00; Mon, 18 Nov 2024 09:10:49 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 8A42019FF; Mon, 18 Nov 2024 08:55:24 -0500 (EST) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 1C5EC1A01 for ; Mon, 18 Nov 2024 08:55:22 -0500 (EST) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-720d01caa66so2716007b3a.2 for ; Mon, 18 Nov 2024 05:55:22 -0800 (PST) Received: from localhost.localdomain ([2409:40f4:9:7d39:e991:fcfb:15ab:ce58]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-72477135ecbsm6113482b3a.84.2024.11.18.05.55.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 18 Nov 2024 05:55:19 -0800 (PST) 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,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,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=1731938120; x=1732542920; 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=oQTfUA7NUK1nzodkDKF741zQLSAsoVxcktHetVfAKqI=; b=GDr02LDBhP9msir+MzSkUGfUpNuwBzmEk2Pu5e5+DxobDhsZ1xQsWkqcjBhVsoDT+O 5UEPwYpA0SGOx286zYUhWqBXqOAy1xT63bxVJlFDBEDiMm0JRa5IK569klTiaVCZwCEl ljA9D5Rt83scxOQwZ7+AQbsC0k37Z8O5vBnJQffxA6P3L9WyA9F0X5ttzFzAnne2yEd2 zwljW5V3o2ABR/LsQXk2Ff2K3oHppw7i1aC/VWi+lL4tdrhEWcj3tpp3Y3NAIRvxYAt3 kyLKhOuHBvxMln8Qb5WQmHK675jxd3AHFaDc3c0djFd0YSREj3HGk0zR4s3oL7JscmZF FT8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731938120; x=1732542920; 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=oQTfUA7NUK1nzodkDKF741zQLSAsoVxcktHetVfAKqI=; b=WhU+gjnmDo1g1yXopyABsWel4cQNOES5SUQR+DlD3xxtzYNKvcvrP6g3y0rM3MrBCO GHhRz6OqfVJirKJPnau98xlSSjjUBVcUJbrNXjjJNmsF4/Pu9wg5CyAs2VG7Ci5qKpZr ym+mCt0ezAPu4p92Cto02ENnVh9PIQD+JGa2pv5QNlbx7QR/2jS/aYi9O6qNgw9v/B29 jNR6jr7UzVZw3ERHqm8sMR5uTIAyFvUEFhQTRcF8Eqi0uxr6jt+T3CHKfSCcv1HtRi0T 1GilSAYvSp3imWAgzZNsZun6/Wfyo8q+pLPlvHdOepdNWekfD3w3gnunlZozf793DOpT EfJQ== X-Gm-Message-State: AOJu0YwZ1sMVblbCs968DXbIM/2Fb03MSnWaBv1A2n21DUsYur1+w3UB wtR5QrrThpUEihMqKD3BU98HG99JZONl/r0GDJD6PaT3TZUNwv3Ug4KDodNb X-Google-Smtp-Source: AGHT+IGmUyLBs9w4CbbaQkaK/9t3Q766QQJgJd3xxkvQ43pZ7zXhpttqVjhLE2D7xwyxzygcE4klcA== X-Received: by 2002:a05:6a00:3d0a:b0:71e:59d2:9c99 with SMTP id d2e1a72fcca58-72476b672d4mr16352487b3a.4.1731938119698; Mon, 18 Nov 2024 05:55:19 -0800 (PST) From: Harikumar R To: devel@lists.libvirt.org Subject: [PATCH v5 13/18] qemuxmlconftest: Add 'throttlefilter' tests Date: Mon, 18 Nov 2024 19:24:21 +0530 Message-Id: <20241118135426.37643-14-harirajkumar230@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20241118135426.37643-1-harirajkumar230@gmail.com> References: <20241118135426.37643-1-harirajkumar230@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MailFrom: harirajkumar230@gmail.com X-Mailman-Rule-Hits: nonmember-moderation 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 Message-ID-Hash: K5ILAW5Z74MEP3NK6BA6HHHGKSERGKKH X-Message-ID-Hash: K5ILAW5Z74MEP3NK6BA6HHHGKSERGKKH X-Mailman-Approved-At: Mon, 18 Nov 2024 14:10:18 -0500 CC: harikumar.rajkumar@ibm.com, sanjeev.ranjan@ibm.com, earulana@in.ibm.com, Chun Feng Wu 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: 1731939641739116600 Content-Type: text/plain; charset="utf-8" From: Chun Feng Wu Test domain xml and status xml * Add tests for "throttlegroup" domain xml processing, including groups referenced and not referenced by filters * Add tests for "throttlefilter" domain xml processing, including throttle group referenced by different disks * Add negative test case to report error when iotune is configured together with throttle filters * Add tests for throttlefilter nodename parse and format for statusxml (disk/privateData/nodenames/nodename with type=3D'throttle-filter') * Add iotune limited disk tests to make sure iotune refactory works Signed-off-by: Chun Feng Wu --- .../throttlefilter-in.xml | 392 ++++++++++++++++++ .../throttlefilter-out.xml | 392 ++++++++++++++++++ tests/qemuxmlactivetest.c | 1 + .../throttlefilter-invalid.x86_64-latest.err | 1 + .../throttlefilter-invalid.xml | 89 ++++ .../throttlefilter.x86_64-latest.args | 55 +++ .../throttlefilter.x86_64-latest.xml | 105 +++++ tests/qemuxmlconfdata/throttlefilter.xml | 95 +++++ tests/qemuxmlconftest.c | 2 + 9 files changed, 1132 insertions(+) create mode 100644 tests/qemustatusxml2xmldata/throttlefilter-in.xml create mode 100644 tests/qemustatusxml2xmldata/throttlefilter-out.xml create mode 100644 tests/qemuxmlconfdata/throttlefilter-invalid.x86_64-lat= est.err create mode 100644 tests/qemuxmlconfdata/throttlefilter-invalid.xml create mode 100644 tests/qemuxmlconfdata/throttlefilter.x86_64-latest.args create mode 100644 tests/qemuxmlconfdata/throttlefilter.x86_64-latest.xml create mode 100644 tests/qemuxmlconfdata/throttlefilter.xml diff --git a/tests/qemustatusxml2xmldata/throttlefilter-in.xml b/tests/qemu= statusxml2xmldata/throttlefilter-in.xml new file mode 100644 index 0000000000..2a98d6f5e2 --- /dev/null +++ b/tests/qemustatusxml2xmldata/throttlefilter-in.xml @@ -0,0 +1,392 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -2 + + copy + 0439a4a8-db56-4933-9183-d8681d7b0746 + 1024000 + 1024000 + 1 + + + 200 + 200 + limit0 + 1 + + + 250 + 250 + limit1 + 1 + + + 300 + 300 + limit2 + 1 + + + 400 + 400 + limit012 + 1 + + + + /machine + + + hvm + + + + + + + + + + + + + + destroy + restart + restart + + + + + + /usr/bin/qemu-system-x86_64 + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + 10000000 + 400000 + 100000 + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +