From patchwork Mon Apr 1 16:47:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 161544 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp687596jan; Mon, 1 Apr 2019 09:47:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/00Un02kubS+BOP+ewlR9iS0IL9YZEApZlNN84lcXVyMTr1xvWNyifoUfbqttXUq4zktO X-Received: by 2002:aed:3827:: with SMTP id j36mr2681337qte.196.1554137261539; Mon, 01 Apr 2019 09:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554137261; cv=none; d=google.com; s=arc-20160816; b=Z2GbZQIoqAWCNnydfJ2ZsD3vO8ifcOiqLFpl3deBRCoanlETR47O2F84ImGOKaGoSP 3oP3jJFdyNMzBt+86MzxMsz8OuinxHMx/v0FGHNctUl4l82P1n4Vcx6uUGkSKe1gsggI E4WhBkd7JYNBcrtoWI/ESOxi1suOG6Tbv3D/Z8nT/7Tlf2PxVWK/7BcxOYD1zpXv2gxn UfagAllfkRay0J2ZIydWDLOx1ZSqTc6o1aQAzFgO3UcTKf4nx48APmmEQqrd4GRkcemy QqECz76Z3pVvo/ii/cVAJrtA37x9irs98bTI6y4lX2qlI67sghQ0VGlmDtI2N+dvYdjD h/1Q== 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:message-id:date:to:from:delivered-to; bh=5GsOyqXaRtxnszi7a3TQDhZ7g8LCMTExg20mfcnL0/Q=; b=wtFkxtS+G0tN9pUHrTNfI6H4FuFPEj6V1K4a4JYRNTMalBMKO2ClCy1PQRsDjjNU5w bWMqIUk1eUhpAI2M2lA/6HtfulS7IaPhXHIgYYVXIlpbjWeenSed72eIZs2cUOkPk1/Q huzS8x1V3f75POnNHwP5fBTXVy0UrGleMc5M8g7g3dIYC+5y+KZZhZpg4WAo5v9e+ibE HFArVojIi/O2dGA62kOBOynieFjiFDi+NdXZbbbyHqtdUXBOaftNb9WR11G1jh9bECAj YIL917VgaSGW771FRgbvchPfjIaggZTcyKCA8IgAqjzv6LX/UyPxICBM/NKhAmlKHv/U yGUw== 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 h57si1317214qth.370.2019.04.01.09.47.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 09:47:41 -0700 (PDT) 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-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 mx1.redhat.com (Postfix) with ESMTPS id 42C6C89C38; Mon, 1 Apr 2019 16:47:40 +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 119985C25A; Mon, 1 Apr 2019 16:47:40 +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 E9BA041F3F; Mon, 1 Apr 2019 16:47:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x31GlXuL026647 for ; Mon, 1 Apr 2019 12:47:33 -0400 Received: by smtp.corp.redhat.com (Postfix) id DBE675C28C; Mon, 1 Apr 2019 16:47:33 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from worklaptop.redhat.com (ovpn-124-128.rdu2.redhat.com [10.10.124.128]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6650B5C25A; Mon, 1 Apr 2019 16:47:30 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Mon, 1 Apr 2019 12:47:16 -0400 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 00/12] tests: qemuxml2xml: add DO_TEST_CAPS* 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 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 01 Apr 2019 16:47:40 +0000 (UTC) This series moves testInfoSetArgs and friends from qemuxml2argvtest.c into testutilsqemu.c, so we can use them in qemuxml2xml and make use of the CAPS handling. It will also make things easier to test xml2xml failures for example if we wanted to. Cole Robinson (12): tests: qemuxml2xml: Break out testInfoSet*Paths tests: qemuxml2xml: Add info->{in,out}file tests: qemuxml2xml: Remove info->outActiveName tests: qemuxml2argv: Add info->{in,out}file tests: qemuxml2argv: add testInfoSetPaths tests: qemuxml2argv: Rename testInfo* to testQemuInfo* tests: Move testQemuInfo* to testutilsqemu tests: add testQemuGetCapsLatest tests: qemuxml2xml: Use struct testQemuInfo tests: qemuxml2xml: Use testQemuInfoSetArgs tests: qemuxml2xml: make GIC handling optional tests: qemuxml2xml: Add DO_TEST_CAPS* tests/qemuxml2argvdata/vhost-vsock.xml | 2 +- tests/qemuxml2argvtest.c | 238 ++----------- .../aarch64-os-firmware-efi.xml | 32 +- tests/qemuxml2xmloutdata/os-firmware-bios.xml | 69 +++- .../os-firmware-efi-secboot.xml | 69 +++- tests/qemuxml2xmloutdata/os-firmware-efi.xml | 69 +++- tests/qemuxml2xmltest.c | 313 ++++++++---------- tests/testutilsqemu.c | 181 ++++++++++ tests/testutilsqemu.h | 40 +++ 9 files changed, 618 insertions(+), 395 deletions(-) mode change 120000 => 100644 tests/qemuxml2xmloutdata/aarch64-os-firmware-efi.xml mode change 120000 => 100644 tests/qemuxml2xmloutdata/os-firmware-bios.xml mode change 120000 => 100644 tests/qemuxml2xmloutdata/os-firmware-efi-secboot.xml mode change 120000 => 100644 tests/qemuxml2xmloutdata/os-firmware-efi.xml -- 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list