From nobody Sun Feb 8 21:29:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1602143775; cv=none; d=zohomail.com; s=zohoarc; b=B78Rn9+3JhLjdNtUYacl92TIscxFKTuODQCusO0irhF6+4N6ByFrnZkMyhKcd0s1L8Atr/jXnJSmpeBmvtO5DNfj2f0CGEPnBU3mj506mmqWaTgiXuaos3ZT3l4hJJfyr779+WBPvLRMpGbKI6VRwQDK4ikwtcyL+zGr59KiBLg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602143775; 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=tJsQ/guKpAjdl3eRGAbV2PtVnRet8VriNF3NQpP8cCA=; b=Hw5PKi5F2S9tyfb4rma+0cAnHoEwPKqD5Nt8jsuAw/cYI3XYBnnFGyrPEwXRWMuDZuBUqm6p6FiyP1QPpcOlv2Q6UpT/hCfVRDmHXGJfGc4wny7PPpvWVN7wbu5kTHnEanMkEbKW7+A7qVxJ6XFvKQZUdQB+dWdNir2DzOSm1Fk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1602143775723145.32290333659387; Thu, 8 Oct 2020 00:56:15 -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-23-pGZqz0ApOsG_nxFEV7VpUw-1; Thu, 08 Oct 2020 03:56:12 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CD3E9879514; Thu, 8 Oct 2020 07:56:05 +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 AB67155799; Thu, 8 Oct 2020 07:56:05 +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 7B00D8C7BB; Thu, 8 Oct 2020 07:56:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0987u3aX003699 for ; Thu, 8 Oct 2020 03:56:03 -0400 Received: by smtp.corp.redhat.com (Postfix) id A7C265D9D5; Thu, 8 Oct 2020 07:56:03 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id B1F425D9F3 for ; Thu, 8 Oct 2020 07:55:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602143774; 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=tJsQ/guKpAjdl3eRGAbV2PtVnRet8VriNF3NQpP8cCA=; b=BOc0tljdvJVv8EMfTAYWXU4cgJr2/xGJy0SIePiRVzoPRWBBik/wPhp8S4UY+U69UgsoS2 z7p+S3OODTKqXGYx48iKfEJD2hmmKvNKBhOTOJdxdDnmwAxkDU1KU57wJ7nO4yrf9LmJ1K ihmogJJVRScyZRv2GptghVrgm1snGG4= X-MC-Unique: pGZqz0ApOsG_nxFEV7VpUw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 07/21] virschematest: Add coverage for 'examples/xml/test' Date: Thu, 8 Oct 2020 09:55:21 +0200 Message-Id: <10c4122987ebcdddd467ec5c2a4e50a313363397.1602143655.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com 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" Add all appropriate file from our test driver example XML directory. Note that the two 'node.*' files are actually custom for the test driver to load full state. We don't have a schema for them. Signed-off-by: Peter Krempa --- tests/virschematest.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/virschematest.c b/tests/virschematest.c index 29cd5cc6e3..816305d776 100644 --- a/tests/virschematest.c +++ b/tests/virschematest.c @@ -229,6 +229,8 @@ static const struct testSchemaEntry schemaDomain[] =3D { { .dir =3D "tests/xlconfigdata" }, { .dir =3D "tests/libxlxml2domconfigdata" }, { .dir =3D "tests/qemuhotplugtestdomains" }, + { .dir =3D "examples/xml/test/", + .dirRegex =3D "testdom.*" }, }; static const struct testSchemaEntry schemaDomainCaps[] =3D { @@ -259,6 +261,8 @@ static const struct testSchemaEntry schemaNetwork[] =3D= { { .dir =3D "tests/networkxml2xmlin" }, { .dir =3D "tests/networkxml2xmlout" }, { .dir =3D "tests/networkxml2confdata" }, + { .dir =3D "examples/xml/test/", + .dirRegex =3D "testnet.*" }, }; static const struct testSchemaEntry schemaNetworkport[] =3D { @@ -267,6 +271,7 @@ static const struct testSchemaEntry schemaNetworkport[]= =3D { static const struct testSchemaEntry schemaNodedev[] =3D { { .dir =3D "tests/nodedevschemadata" }, + { .file =3D "examples/xml/test/testdev.xml" }, }; static const struct testSchemaEntry schemaNwfilter[] =3D { @@ -292,6 +297,7 @@ static const struct testSchemaEntry schemaStoragePool[]= =3D { { .dir =3D "tests/storagepoolschemadata" }, { .dir =3D "examples/xml/storage", .dirRegex =3D "pool-.*" }, + { .file =3D "examples/xml/test/testpool.xml" }, }; static const struct testSchemaEntry schemaStorageVol[] =3D { @@ -300,6 +306,7 @@ static const struct testSchemaEntry schemaStorageVol[] = =3D { { .dir =3D "tests/storagevolschemadata" }, { .dir =3D "examples/xml/storage", .dirRegex =3D "vol-.*" }, + { .file =3D "examples/xml/test/testvol.xml" }, }; --=20 2.26.2