From patchwork Sun Oct 4 19:05:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 314033 Delivered-To: patch@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp714554ilm; Sun, 4 Oct 2020 12:08:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvOeXjTKoDwJODa6hjnRCjJm0Xnqjocpf94Zp41phbYixxVfwg2nna+V5sMa94TQ1pYFf4 X-Received: by 2002:a25:ba4f:: with SMTP id z15mr14467575ybj.408.1601838524777; Sun, 04 Oct 2020 12:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601838524; cv=none; d=google.com; s=arc-20160816; b=02n7yfrSMh6Lb5U6vJ4Me2WobthApuJOJ+utkSAeCWMSVVl3txe1cAtVfImtIC6OA0 osv3qs1y6yq7oODUss4PAp1NwCtwxgUixRWzSYwY/z7NYvIVhgKc9l7I+LMW3Io9fn4j gp/jbASSr7x2+rsLD7D/nxuWNEXeWns7RGG7X1Bkdn8GMdIkp9WM+Kv1d/9Zan+ZaJK/ lRe4DUN0OzXVASPXzOyomxqxmdF/XGtMoftUktUDUNWXU9iMwc1N/8nYpfXMtB/rm+FB OKLB/CyNv52e7QxlJycpsqcvAc1vgH2EOJweIRcmuC4Z6Lq6PxCEnjgDq93GdG1x7Oy/ k/rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:errors-to:sender:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:cc :mime-version:message-id:date:subject:to:from:delivered-to :dkim-signature; bh=AncZVYG5l0c/iuzqHBudV81zJWYL4sos3qfgF0nb3fM=; b=rY71SSk8a/60DXWFfHle6b3AdfZtYZkYjHPKgDCTt6ltJNsVQBfdsXQ35bN29YOPxy nuu7anW/3AJumTTHt/TG2/FAsjp3bxI6aUy7aPOySh8fNWhbsWQpE9X7Gx+QSDINvX+O 16zGO9okjqOGgUQu/aLNy1yrQOeH+/v35U/eOgZWRh75ojauri9KOiAuSEAbyghBgqBX 7s0WNY3HHfJ1pTAq4I2wwTnWZZZlcOO9wXFZtDVoiubMiUGeLpzvGfTN9fmoKirhP18/ U5fm6EyoTBRMoH9Q2EmXhsdSxYS1botMM3heMzbCPRESAsiBPx3CNPpQiOlVdfa5xAwj Xm4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FNk3bIZK; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 63.128.21.124 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 us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com. [63.128.21.124]) by mx.google.com with ESMTPS id f25si8749292ybj.381.2020.10.04.12.08.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Oct 2020 12:08:44 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FNk3bIZK; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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= 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 X-MC-Unique: 7q1zTapmO4KWq4Ub1fWsvg-1 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) Delivered-To: libvir-list@redhat.com 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) 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 There is present no XML test coverage for this. Add genericxml parse + formatting coverage. Signed-off-by: Cole Robinson --- .../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 -- 2.28.0 Reviewed-by: Michal Privoznik diff --git a/tests/genericxml2xmlindata/device-backenddomain.xml b/tests/genericxml2xmlindata/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/genericxml2xmloutdata/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"); DO_TEST_DIFFERENT("cputune"); + DO_TEST("device-backenddomain"); #define DO_TEST_BACKUP_FULL(name, intrnl) \ do { \