From nobody Fri Dec 19 19:13:06 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592241105; cv=none; d=zohomail.com; s=zohoarc; b=Dnzmd5gzVSd9ikUKWQj287IjQxape+PeudyomMVXXHbmUCxN1P/jiH9ibW12PD3ILqd5km4+tlLT0VOeX2i1HeCGImG23nqyvaf1J5ztM0kQ9kaLWMdaWNL67rrXU7UldHs5jkUIFrr5a/YVLsqXUeY6eh/UVxpRVCTqpTB2JnY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592241105; 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; bh=AkA4NAhaVVZecVpeVsHPyXOZ5hbj/5Fd7z6kGiBMRZE=; b=eZ1hjlF9N7Nt5HuaJYIYY6vhtJs+kkjoVpuDiY7fTRNy9jcCqvJGO3zCs33El5ERT0YBe6SNJ9jOZm26Xlbot4bZUfVHm+4N2uGnq/IfI+XOgsdylRn5nMPWqtTlD4Bo1T2jE0lmMuvy1ClRcXsBLFrMDZ/RdwVL2FlrRpHKAn0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1592241105260319.9308412817809; Mon, 15 Jun 2020 10:11:45 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-423-vXKwXtr1Pz6S8jUf4mUqGw-1; Mon, 15 Jun 2020 13:11:41 -0400 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id F3DD11138317; Mon, 15 Jun 2020 17:11:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D3E6460C05; Mon, 15 Jun 2020 17:11:34 +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 A503C1805311; Mon, 15 Jun 2020 17:11:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05FHAnV6004839 for ; Mon, 15 Jun 2020 13:10:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2FCC3100238C; Mon, 15 Jun 2020 17:10:49 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.90]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9CE48100164D for ; Mon, 15 Jun 2020 17:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592241104; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=AkA4NAhaVVZecVpeVsHPyXOZ5hbj/5Fd7z6kGiBMRZE=; b=N6AexIvpqSR9XctG/ElX1EhxxQ1H1lLzQAPKOSJEPReBla/Z9zoEfjtAUcSy5IIM0mYiwc 7W11YEZqEljQzDacxis3ub1+qJ+qbz7OWuSYDPihl7ze8LphsWcfWy6P88q9C1f5E873Bn 0zk8+ksCNSrkbEe/VtNaxxUZwLJwheY= X-MC-Unique: vXKwXtr1Pz6S8jUf4mUqGw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 17/32] qemublocktest: Re-add bitmap validation for 'basic' and 'snapshots' cases Date: Mon, 15 Jun 2020 19:10:04 +0200 Message-Id: <4e24c91d8745c5ea12b67cf85610b79592454fd9.1592240635.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com 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: , 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-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Now that we've updated both the test data and the validator to new semantics we can start testing again. Signed-off-by: Peter Krempa Reviewed-by: Eric Blake --- tests/qemublocktest.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c index 0ed9b99bc4..6d1bf3f250 100644 --- a/tests/qemublocktest.c +++ b/tests/qemublocktest.c @@ -1346,6 +1346,18 @@ mymain(void) TEST_BITMAP_VALIDATE("empty", "a", false); + TEST_BITMAP_VALIDATE("basic", "a", true); + TEST_BITMAP_VALIDATE("basic", "b", true); + TEST_BITMAP_VALIDATE("basic", "c", true); + TEST_BITMAP_VALIDATE("basic", "d", true); + TEST_BITMAP_VALIDATE("basic", "current", true); + + TEST_BITMAP_VALIDATE("snapshots", "a", true); + TEST_BITMAP_VALIDATE("snapshots", "b", true); + TEST_BITMAP_VALIDATE("snapshots", "c", true); + TEST_BITMAP_VALIDATE("snapshots", "d", true); + TEST_BITMAP_VALIDATE("snapshots", "current", true); + #define TEST_BITMAP_BLOCKCOPY(testname, shllw, ndf) \ do { \ blockbitmapblockcopydata.name =3D testname; \ --=20 2.26.2