From patchwork Wed Mar 6 23:36:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 159767 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp6773654jad; Wed, 6 Mar 2019 15:37:22 -0800 (PST) X-Google-Smtp-Source: APXvYqz1GzzZbRt3ERAjUpcR+8WpSI77z8W9Cxlhi5Ewy7jtgpgfktFrTjpprUO+x5bPjgJ0Mv+a X-Received: by 2002:a37:8dc5:: with SMTP id p188mr7607005qkd.330.1551915442398; Wed, 06 Mar 2019 15:37:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551915442; cv=none; d=google.com; s=arc-20160816; b=LkgJXh3z6nL3I1Qme9O0ibp/OCKlJIcXD9Hu6ckywFkHVuPe32GIQlkW/vZMRh2vxU dqdmr1XyTfcqWGqNtwypQA9gi94MTkbOt+Dr7b0JeQ2oQdF3Ocf66dJ62L5uRyGqX5co CAL7ESBMTYFQeY4zn9jzciBLBRycUPlK+K0AliPfdTJ9FPc6ZnbnKZ3k3bOJzSehYuKr xHGcP4ng39tcSAW4JqwIDQ4o+aezcTvB9jxMd2LaBuvePu7eW7VnOc/Axh/k99nD39k8 KGdm/WoI5ik31UDNrUU8DeafwTOzFAQzpRhbBXrDbSSK3OtM1nNGbBsILlAs7SFsjvV9 K/3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :delivered-to; bh=MnO2NSS9PLPwvfHRZUms6dOll+cXYUvpLW+wdPgpYXQ=; b=k7i3nAZvpEoqYgZWhDvY4iAoW+KTODxhh2r+t4ccJVG4tXsde3pkFgaCxL8sO6r8C9 0JR/Wb+QrWwZlxVi4rItpwlViyiyBsntc8qyRriTwB8E2rmnCzJ47FzZBpq2EGpH0IBu mUVE40nVGnxcI/by+kJFQYAmvNcM4qttwBGhuINeKuJ0+gaUSe8KVmLXL870nzrE71gK w+5P9EMibHDeVo1SFJhF7P1oCsZbOxXBGOM7JtMDPCB58/C+FH7DuW1olKsDyH2SpGV6 PEWpBaz42wNgJOqTkHOWGgNYHJI1TodaUA4r4wZXaS0dQ9OvjbTNSadpOBrq39vVirXd ACmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id d127si1958078qka.79.2019.03.06.15.37.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 15:37:22 -0800 (PST) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 mx1.redhat.com (Postfix) with ESMTPS id 9858C308339E; Wed, 6 Mar 2019 23:37:20 +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 B2C0F1001E60; Wed, 6 Mar 2019 23:37:19 +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 4367E41F3D; Wed, 6 Mar 2019 23:37:17 +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 x26NbFlZ005156 for ; Wed, 6 Mar 2019 18:37:15 -0500 Received: by smtp.corp.redhat.com (Postfix) id DEE2E1001DFB; Wed, 6 Mar 2019 23:37:15 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from worklaptop.redhat.com (ovpn-121-104.rdu2.redhat.com [10.10.121.104]) by smtp.corp.redhat.com (Postfix) with ESMTP id 78C831001DE2; Wed, 6 Mar 2019 23:37:15 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Wed, 6 Mar 2019 18:36:50 -0500 Message-Id: <135b87f1280c46b2b0fbd930fa8c5fbeb00bbdb1.1551914794.git.crobinso@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 Subject: [libvirt] [PATCH v2 01/16] tests: domcaps: Add a default 'empty' test 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 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 06 Mar 2019 23:37:21 +0000 (UTC) The 'empty' demonstrates XML generated when only bare minimum caps data has been filled in. This will demonstrate changes that alter the default XML output. Signed-off-by: Cole Robinson --- tests/domaincapsschemadata/empty.xml | 25 +++++++++++++++++++++++++ tests/domaincapstest.c | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 tests/domaincapsschemadata/empty.xml -- 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/tests/domaincapsschemadata/empty.xml b/tests/domaincapsschemadata/empty.xml new file mode 100644 index 0000000000..2b2e97d3b3 --- /dev/null +++ b/tests/domaincapsschemadata/empty.xml @@ -0,0 +1,25 @@ + + /bin/emulatorbin + kvm + my-machine-type + x86_64 + + + + + + + + + + + + + + + + + + diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c index 3be2806a48..b5bf4c234f 100644 --- a/tests/domaincapstest.c +++ b/tests/domaincapstest.c @@ -433,6 +433,9 @@ mymain(void) VIR_FREE(name); \ } while (0) + DO_TEST("empty", "/bin/emulatorbin", "my-machine-type", + "x86_64", VIR_DOMAIN_VIRT_KVM, CAPS_NONE); + #if WITH_QEMU DO_TEST_QEMU("1.7.0", "caps_1.7.0",