From nobody Tue Dec 16 08:36:05 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1503302858603660.5562829023257; Mon, 21 Aug 2017 01:07:38 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 46BFF13A98; Mon, 21 Aug 2017 08:07: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 2021A6F932; Mon, 21 Aug 2017 08:07:36 +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 D37FC1803B21; Mon, 21 Aug 2017 08:07:35 +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 v7L87PrS002388 for ; Mon, 21 Aug 2017 04:07:25 -0400 Received: by smtp.corp.redhat.com (Postfix) id 66CE76F924; Mon, 21 Aug 2017 08:07:25 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id E260C6F92F for ; Mon, 21 Aug 2017 08:07:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 46BFF13A98 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Pavel Hrdina To: libvir-list@redhat.com Date: Mon, 21 Aug 2017 10:07:03 +0200 Message-Id: <0e90f28450a05f61aea374a2584d8838fdc11f42.1503302799.git.phrdina@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 03/17] tests: introduce genericxml test for UNIX chardev 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 21 Aug 2017 08:07:36 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- .../generic-chardev-unix-redirdev-missing-path.xml | 24 ++++++++++++ .../generic-chardev-unix-rng-missing-path.xml | 25 ++++++++++++ ...generic-chardev-unix-smartcard-missing-path.xml | 23 +++++++++++ .../genericxml2xmlindata/generic-chardev-unix.xml | 43 ++++++++++++++++++= +++ .../genericxml2xmloutdata/generic-chardev-unix.xml | 44 ++++++++++++++++++= ++++ tests/genericxml2xmltest.c | 7 ++++ 6 files changed, 166 insertions(+) create mode 100644 tests/genericxml2xmlindata/generic-chardev-unix-redirde= v-missing-path.xml create mode 100644 tests/genericxml2xmlindata/generic-chardev-unix-rng-mis= sing-path.xml create mode 100644 tests/genericxml2xmlindata/generic-chardev-unix-smartca= rd-missing-path.xml create mode 100644 tests/genericxml2xmlindata/generic-chardev-unix.xml create mode 100644 tests/genericxml2xmloutdata/generic-chardev-unix.xml diff --git a/tests/genericxml2xmlindata/generic-chardev-unix-redirdev-missi= ng-path.xml b/tests/genericxml2xmlindata/generic-chardev-unix-redirdev-miss= ing-path.xml new file mode 100644 index 0000000000..f0d6f3d60a --- /dev/null +++ b/tests/genericxml2xmlindata/generic-chardev-unix-redirdev-missing-path= .xml @@ -0,0 +1,24 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219136 + 219136 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-i686 + + + + + + + + diff --git a/tests/genericxml2xmlindata/generic-chardev-unix-rng-missing-pa= th.xml b/tests/genericxml2xmlindata/generic-chardev-unix-rng-missing-path.x= ml new file mode 100644 index 0000000000..fb45c044f8 --- /dev/null +++ b/tests/genericxml2xmlindata/generic-chardev-unix-rng-missing-path.xml @@ -0,0 +1,25 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219136 + 219136 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-i686 + + + + + + + + + diff --git a/tests/genericxml2xmlindata/generic-chardev-unix-smartcard-miss= ing-path.xml b/tests/genericxml2xmlindata/generic-chardev-unix-smartcard-mi= ssing-path.xml new file mode 100644 index 0000000000..451c8aa660 --- /dev/null +++ b/tests/genericxml2xmlindata/generic-chardev-unix-smartcard-missing-pat= h.xml @@ -0,0 +1,23 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219136 + 219136 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-i686 + + + + + + + diff --git a/tests/genericxml2xmlindata/generic-chardev-unix.xml b/tests/ge= nericxml2xmlindata/generic-chardev-unix.xml new file mode 100644 index 0000000000..bc715a3ae8 --- /dev/null +++ b/tests/genericxml2xmlindata/generic-chardev-unix.xml @@ -0,0 +1,43 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219136 + 219136 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-i686 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/genericxml2xmloutdata/generic-chardev-unix.xml b/tests/g= enericxml2xmloutdata/generic-chardev-unix.xml new file mode 100644 index 0000000000..c797cbff8a --- /dev/null +++ b/tests/genericxml2xmloutdata/generic-chardev-unix.xml @@ -0,0 +1,44 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219136 + 219136 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-i686 + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/genericxml2xmltest.c b/tests/genericxml2xmltest.c index c10c3f5c04..7dc137ed16 100644 --- a/tests/genericxml2xmltest.c +++ b/tests/genericxml2xmltest.c @@ -113,6 +113,13 @@ mymain(void) DO_TEST_DIFFERENT("chardev-udp"); DO_TEST_FULL("chardev-udp-missing-connect-service", 0, false, TEST_COMPARE_DOM_XML2XML_RESULT_FAIL_PARSE); + DO_TEST_DIFFERENT("chardev-unix"); + DO_TEST_FULL("chardev-unix-smartcard-missing-path", 0, false, + TEST_COMPARE_DOM_XML2XML_RESULT_FAIL_PARSE); + DO_TEST_FULL("chardev-unix-redirdev-missing-path", 0, false, + TEST_COMPARE_DOM_XML2XML_RESULT_FAIL_PARSE); + DO_TEST_FULL("chardev-unix-rng-missing-path", 0, false, + TEST_COMPARE_DOM_XML2XML_RESULT_FAIL_PARSE); =20 virObjectUnref(caps); virObjectUnref(xmlopt); --=20 2.13.5 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list