From patchwork Tue Feb 19 20:09:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 158731 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4080851jaa; Tue, 19 Feb 2019 12:10:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IYvhAIPwH9OpeiA/TN7Js4nm2/b7DRhqwGwRjM8Rqr/6dmwYHqKx+qZtg8i9+CbfdDHJLTC X-Received: by 2002:a37:aa86:: with SMTP id t128mr21667795qke.205.1550607050351; Tue, 19 Feb 2019 12:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550607050; cv=none; d=google.com; s=arc-20160816; b=JPD7f4ltbYEu1Qm8qlQBkKuJ1sRU1Rax1lALxaN4XL+RpUjGVr1uhbc5N41MDlvu6S BKsngg4C2J+IgXqAuM+r0Im3XBKaDNbjtKeBWtowhyu78hXGtDbadpUZ2Nysh/gz6LH1 v7P2tQK4lyU63E8nS/JdvNa4xbykFc2vfNfthfGiwze+qJOve/a9clJ1X5NX/Nf2uB70 qVchaoO/DkGaB16W7ubE1gzmOJB7te/gofIcOSwCxuLcf7wq9CNX1jlbBSIJ/HNgZI7J w504HNq0uka0DKzbDVz9m26B8aOQCSoD6+usOf1ySjLbqsdfSgBJ+1k3wfBKpq0tJ47s HiXg== 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=lvCMYW0f2tDcg5RF9axt571kpW4Y4h1DNSjypB7t8Z4=; b=HGL6Ta53tbS2Xn8CwtJvDckn8B9D97aSsAQowAElH1MlqFjKwVOBcfyinVHPVKv/xY /sfu2DtTK48GGmLhPfbsE1DsaG85Pvk2dWWWHiBNND79GFU7nmzefog0E0OirQkU5mjP +UkGtrOZmeIF+eBDDxlPmrCiP0g12Qm4VJqouWKTb+mzOWL9URk9HP50dibKwuAc9U1h PlwIdvTpE7Bwqt7VLEqBrPBqC/KdDcoLBLQNjNRlZ88K4+mXJz6eB75s85XWFD1qtKxk +6e10NkE6HgQM5ES0LFmpMdLQCZK1bbVBYv2ZBsEjlOR4ew9aT7W9iz5iLRWcdY0js60 dwqQ== 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 w9si378496qki.247.2019.02.19.12.10.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 12:10:50 -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-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 mx1.redhat.com (Postfix) with ESMTPS id E9E2759447; Tue, 19 Feb 2019 20:10:48 +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 6A8635D6AA; Tue, 19 Feb 2019 20:10:47 +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 8673F181A00B; Tue, 19 Feb 2019 20:10:45 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x1JKAi0h000446 for ; Tue, 19 Feb 2019 15:10:44 -0500 Received: by smtp.corp.redhat.com (Postfix) id 582D860140; Tue, 19 Feb 2019 20:10:44 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from worklaptop.bos.redhat.com (dhcp-17-6.bos.redhat.com [10.18.17.6]) by smtp.corp.redhat.com (Postfix) with ESMTP id 001CF600C8; Tue, 19 Feb 2019 20:10:43 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Tue, 19 Feb 2019 15:09:30 -0500 Message-Id: <855ab8e0c77ce44b24b0869bb6c54b2444671760.1550606392.git.crobinso@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 01/10] 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.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 19 Feb 2019 20:10:49 +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 b9ab148fab..2333147252 100644 --- a/tests/domaincapstest.c +++ b/tests/domaincapstest.c @@ -432,6 +432,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",