From nobody Sat May 4 18:34:25 2024 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=1601838525; cv=none; d=zohomail.com; s=zohoarc; b=JnWXEGqurK2KHIxd1paU77Qa4GkSXH79MFV6fddLlraAWPtWPzkETT1XPkqe8Mnc6S+x/Ry7pxUf7Y75Md5nz2ORgy5UZlY4kB03ehCXgEC8SueICYbYDLb5G7PMxtGXOKbe0nUhxzV8kA3mtBq6oZJySkLIkjrCQ+O429bQQ3k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1601838525; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=AncZVYG5l0c/iuzqHBudV81zJWYL4sos3qfgF0nb3fM=; b=G9tKRKNpcgMabfll41UGklVnSYWYF42Ip/XvhQ5VV11t1ldGABc8YxRtACJk+XsbauYT8eyPFi5tJPnu4ZkU8k9EmnOzTDG7LG1vu5S0IjDhllAX5XUe/o0KAh9QIY42HMOj7OYK7BBHv8HfKAh4paGZO6Zlv86AoJFDkfKT/cI= 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 1601838525568987.0479023273572; Sun, 4 Oct 2020 12:08: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-98-7q1zTapmO4KWq4Ub1fWsvg-1; Sun, 04 Oct 2020 15:08:42 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5B3F0E75F; Sun, 4 Oct 2020 19:08:36 +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 267BD5C225; Sun, 4 Oct 2020 19:08:35 +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 4B9451800BB2; Sun, 4 Oct 2020 19:08: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 094J5fr5011451 for ; Sun, 4 Oct 2020 15:05:41 -0400 Received: by smtp.corp.redhat.com (Postfix) id EB1B61001901; Sun, 4 Oct 2020 19:05:41 +0000 (UTC) Received: from worklaptop.redhat.com (ovpn-112-83.rdu2.redhat.com [10.10.112.83]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4451610013BD; Sun, 4 Oct 2020 19:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601838524; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=AncZVYG5l0c/iuzqHBudV81zJWYL4sos3qfgF0nb3fM=; b=FNk3bIZKAIOk6zEI2y8aYoJ30L5TgzCYpSLa0IczOLD7msIzi1vPm3XXXdcXyC8bpbGjiE rYCnfQNWF0bcbhSjaF+a5AS5UU6GxoJq2nAWEs5/CwEqcESAYyfHozHV7Lj2QzmzFRX1g1 BN6Hu2zL3xtJ9cPUiLvHZifBKlXHpLc= X-MC-Unique: 7q1zTapmO4KWq4Ub1fWsvg-1 From: Cole Robinson To: libvir-list@redhat.com Subject: [PATCH] tests: cover disk, interface Date: Sun, 4 Oct 2020 15:05:27 -0400 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: Cole Robinson 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.16 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" There is present no XML test coverage for this. Add genericxml parse + formatting coverage. Signed-off-by: Cole Robinson Reviewed-by: Michal Privoznik --- .../device-backenddomain.xml | 30 +++++++++++++++++++ .../device-backenddomain.xml | 1 + tests/genericxml2xmltest.c | 1 + 3 files changed, 32 insertions(+) create mode 100644 tests/genericxml2xmlindata/device-backenddomain.xml create mode 120000 tests/genericxml2xmloutdata/device-backenddomain.xml diff --git a/tests/genericxml2xmlindata/device-backenddomain.xml b/tests/ge= nericxml2xmlindata/device-backenddomain.xml new file mode 100644 index 0000000000..8e89c7fec3 --- /dev/null +++ b/tests/genericxml2xmlindata/device-backenddomain.xml @@ -0,0 +1,30 @@ + + foo + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219136 + 219136 + 1 + + hvm + + + + destroy + restart + destroy + + + + + + +
+ + + + + + + + + diff --git a/tests/genericxml2xmloutdata/device-backenddomain.xml b/tests/g= enericxml2xmloutdata/device-backenddomain.xml new file mode 120000 index 0000000000..f19471e3b5 --- /dev/null +++ b/tests/genericxml2xmloutdata/device-backenddomain.xml @@ -0,0 +1 @@ +../genericxml2xmlindata/device-backenddomain.xml \ No newline at end of file diff --git a/tests/genericxml2xmltest.c b/tests/genericxml2xmltest.c index 102abfdec2..5110bfba86 100644 --- a/tests/genericxml2xmltest.c +++ b/tests/genericxml2xmltest.c @@ -233,6 +233,7 @@ mymain(void) DO_TEST("launch-security-sev"); =20 DO_TEST_DIFFERENT("cputune"); + DO_TEST("device-backenddomain"); =20 #define DO_TEST_BACKUP_FULL(name, intrnl) \ do { \ --=20 2.28.0