From nobody Thu Nov 21 18:08:45 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=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1732119240; cv=none; d=zohomail.com; s=zohoarc; b=fdQFCxKLxASkULNvWztZInKfhLJNsfwUW3B8wW7qw3Gy+YJkEEBirS/4G8rr9pOxqeRRhWXXQIv5eq3yBPrtLBjHcr3m5uzX6xlXjOulIfoYV1hZixku+rF7RemGJal5Kv3JnkCHGOUJwjO7C3CJ9TDB8VpCx8vkaVcmddGGWjU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732119240; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id; bh=R17kxOatgE9uZ8TPyoka19b7e5modi3m52lvmemOntE=; b=fxQijgXO2Z8HsxdA4r4xa0gWZmoWS/ZGK0JErxFo9DDBpOgg8U/N/ELHxVGGOxhpNchDqVZFndWUJYidPd2xp5ZeW6X/mdj3vmeFMJKo0YJklqVPFaAoDRh71x4AxjnshUQ8q6YnL7VejcGGMAAjXObRS9sQgrbShQC/hPKcxhM= ARC-Authentication-Results: i=1; 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=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1732119240476206.87964556332497; Wed, 20 Nov 2024 08:14:00 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 6A884A41; Wed, 20 Nov 2024 11:13:59 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 4F6471499; Wed, 20 Nov 2024 11:10:03 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id E223A1526; Wed, 20 Nov 2024 11:09:55 -0500 (EST) Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (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 06E7F154E for ; Wed, 20 Nov 2024 11:09:42 -0500 (EST) Received: from [130.117.225.1] (helo=vz9-barybin-2.ch-qa.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1tDn0z-0005yc-0V; Wed, 20 Nov 2024 16:53:13 +0100 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,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; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=ewynCiEMNroPTYWXrTClsqDayBlLl7dj7WnLa1fIIo8=; b=I08W5+Ln6nGq tA7pImzsc0uL8A8HHeZSxuJjWO1m2DMeeqdC6gDvsimiiDiKDp6iWV+qKSVHfwmiuUvsRTX2XCQ26 aqgukqtcmWfiiG+PcU6MSuV4ShegJNVGyS1P/np0nnfU44XsYXTjPGP4rkZDhEtcDwluJ9xczdygJ mb9x4zwgEbe1voEMASmiyGIqKLJkraQ0t5lZ/K+LxyBV75H3p4m9yWqP/4torkKtlFEDqjxWIfm3z GJmRgrqakSROAnUYRsl0QZgIiQzFB71hFk+FQYANvVKTw/hOZSbJ2BAUqsq7R+RwuPUM9hhQJkADi 8FHmIqyr0lwZx0et2B27eg==; To: devel@lists.libvirt.org Subject: [PATCH 14/15] tests: add qcow2 data-file tests Date: Wed, 20 Nov 2024 18:48:49 +0300 Message-ID: <20241120155229.1259-15-nikolai.barybin@virtuozzo.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20241120155229.1259-1-nikolai.barybin@virtuozzo.com> References: <20241120155229.1259-1-nikolai.barybin@virtuozzo.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: IDFESQZDZ7WGUQPPQQM67GBMAQZFW65V X-Message-ID-Hash: IDFESQZDZ7WGUQPPQQM67GBMAQZFW65V X-MailFrom: nikolai.barybin@virtuozzo.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: den@openvz.org, Nikolai Barybin 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: From: Nikolai Barybin via Devel Reply-To: Nikolai Barybin X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1732119240881116600 Content-Type: text/plain; charset="utf-8" - qemuxmlconftest: check various xml definitions of dataFileStore: types file, block, network and the case when data-file belongs to qcow2 backing image - virstoragetest: create qcow2 image chains and check that data files are properly probed by metadata parser - qemuxmlactivetest: check that status files will contain data files' node names Signed-off-by: Nikolai Barybin --- .../qcow2-data-file-in.xml | 86 ++++++++++++++++ .../qcow2-data-file-out.xml | 86 ++++++++++++++++ tests/qemuxmlactivetest.c | 2 + ...sk-qcow2-datafile-store.x86_64-latest.args | 51 ++++++++++ ...isk-qcow2-datafile-store.x86_64-latest.xml | 81 +++++++++++++++ .../disk-qcow2-datafile-store.xml | 67 +++++++++++++ tests/qemuxmlconftest.c | 1 + tests/virstoragetest.c | 98 +++++++++++++++++++ tests/virstoragetestdata/out/qcow2-data_file | 20 ++++ .../out/qcow2-qcow2_qcow2-qcow2-data_file | 31 ++++++ 10 files changed, 523 insertions(+) create mode 100644 tests/qemustatusxml2xmldata/qcow2-data-file-in.xml create mode 100644 tests/qemustatusxml2xmldata/qcow2-data-file-out.xml create mode 100644 tests/qemuxmlconfdata/disk-qcow2-datafile-store.x86_64-= latest.args create mode 100644 tests/qemuxmlconfdata/disk-qcow2-datafile-store.x86_64-= latest.xml create mode 100644 tests/qemuxmlconfdata/disk-qcow2-datafile-store.xml create mode 100644 tests/virstoragetestdata/out/qcow2-data_file create mode 100644 tests/virstoragetestdata/out/qcow2-qcow2_qcow2-qcow2-da= ta_file diff --git a/tests/qemustatusxml2xmldata/qcow2-data-file-in.xml b/tests/qem= ustatusxml2xmldata/qcow2-data-file-in.xml new file mode 100644 index 0000000000..40479dd3d6 --- /dev/null +++ b/tests/qemustatusxml2xmldata/qcow2-data-file-in.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + testtest + + + + + + + + + + + + + + + + -2 + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219136 + 219136 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-i386 + + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +
+ + +
+ + + + +