From nobody Mon Feb 9 01:47:27 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1603110193; cv=none; d=zohomail.com; s=zohoarc; b=JUUkdY0AcvArfc8dazK+LSkVmBs0M4Phh5c0+tOdysPnjioGFIBowBrrxgnXx6eu9xBWiFLi5s4zADQwpW7M1xbHACqxWqk2InsaFPPacLKGmza5LJx9vFdb5gD4UIjwMLozzHCnzfFeYhRVw+8HjALLDfqfilGO3ttNurA9wqA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603110193; 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=UeGZnocOWMwxW1hHlXoO5CmLktpwGc17F623YbrOsV6KIXvdJQLvJYxEULY6fBb0bnjmprP2kUhEqmqHL1ctYqMd4jZjTvBpX7mYJfp5vQEoJ2YPOhyF52H2hB5Fcud+QHE4EwBx0UkDNnoz95bZkHWTv9VqPMQWVhoZnH2F1Qw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 160311019357923.47127527865746; Mon, 19 Oct 2020 05:23:13 -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-396-INwHzt62P7GvQHNEn9iC5A-1; Mon, 19 Oct 2020 08:23:10 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D4F2764155; Mon, 19 Oct 2020 12:23:03 +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 B152C10013C4; Mon, 19 Oct 2020 12:23:03 +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 7C38C18408AD; Mon, 19 Oct 2020 12:23:03 +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 09JCN1xB001944 for ; Mon, 19 Oct 2020 08:23:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id B01E260C05; Mon, 19 Oct 2020 12:23:01 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 158AD60FC2 for ; Mon, 19 Oct 2020 12:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603110192; 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=HciP8WfXlyjgE6w0pLmpZHxYtUXIGr8Abfy8ImifjrvYmW4DqHhHZWC1yAcNG4aQhzyKko 1xyTsX1zMqG49lF+ZamuEZq2AtSlEQroWlNPGcOmc5K7rPKJua0xycWH+XNfBnkKCtdr1Z Go1RcYi4rDaE2JRNV4GCjgsZXZDjwL8= X-MC-Unique: INwHzt62P7GvQHNEn9iC5A-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH v2 06/18] virschematest: Add coverage for 'examples/xml/test' Date: Mon, 19 Oct 2020 14:22:15 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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.84 on 10.5.11.22 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