From nobody Tue Nov 26 19:49:46 2024 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; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1567201447; cv=none; d=zoho.com; s=zohoarc; b=Verj377xqqHRQukvWO4ykCjfz/JHpsPive3hlM2xaJ8zL0od4+S1G8I5PZ94o0GHewZhuojJInEra7QYCIaXQIXtE8oRHTwKXnNVB6P3aB4aTfII62XBt1gcPgvmyPu0bctMHtNHkdybF1SpA+LkCb4gj8hSPNm7sM1snjG9VwA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567201447; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=gBo1xKOOC0XoMOq2C6126FQTpqd9l7DOtbLQWSs5g0I=; b=SJl3U0T2oh4T1Y8Q21WITI6AkM4cqyXtALbeYb6G2sMAXWQ2MaL/lJcHpoTmrJnqt7ylcQMtgWLmgOY444z3yp3yYoV0k9BKMoyhFdohh3gh3GGYeSjmKbvnX8rghFyaUkcpQxbC/TY2DfqXUER2oTZygsswQIwZOlSlXpLeXGo= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1567201447530754.1021655608662; Fri, 30 Aug 2019 14:44:07 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6104F2DE09; Fri, 30 Aug 2019 21:44:06 +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 3E67019C6A; Fri, 30 Aug 2019 21:44:06 +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 04E8224FDF; Fri, 30 Aug 2019 21:44:06 +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 x7ULi1Is005629 for ; Fri, 30 Aug 2019 17:44:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id 59886100197A; Fri, 30 Aug 2019 21:44:01 +0000 (UTC) Received: from mx1.redhat.com (ext-mx29.extmail.prod.ext.phx2.redhat.com [10.5.110.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 53889100195C for ; Fri, 30 Aug 2019 21:43:58 +0000 (UTC) Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 324E918B20E8 for ; Fri, 30 Aug 2019 21:43:57 +0000 (UTC) Received: by mail-qk1-f181.google.com with SMTP id c189so5928224qkg.2 for ; Fri, 30 Aug 2019 14:43:57 -0700 (PDT) Received: from localhost.localdomain ([191.17.58.35]) by smtp.gmail.com with ESMTPSA id y25sm2970689qtf.83.2019.08.30.14.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2019 14:43:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wCEZwGR096iokdM2g7/MGzlAQZYvBayQDItd47EpGdI=; b=ldlcd033LnSE9c1VJleX06vq53I3SNs8m0yotjD+jsQ7Fj+JAvHats4GpDxBHTTmWR uj99bBAIZY4E8fvbyH6Pz0BXwLFwj5J+PXnoGcp8IJJlTdG20O8EbDk53zJXmS7eb0Dv xFi56lu/AQbnun3iTG3lxnNjp17eFY278Uj7i6JmieXrBPUUKNMuhxlP16sxFA/Xiayi NPwJVLEnPYVnm0fZOLZbgT6r7Bn5dCIX2dI92RAwZ64kIchYap1GqybEnBvYQW8jRe5i +W5oiSShH6nrH4E3pHiQXj5MLsK+OkR4FyH+vqoDRiktIaVyL/X5cRR5EopGt62EMJoG dc7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wCEZwGR096iokdM2g7/MGzlAQZYvBayQDItd47EpGdI=; b=pa8t9FtEUPgTenDdB4sMkps3CgkiRTlXB1F22otcnApLsBBY0mbft/JDUzQEtkPDF5 FzQwEXKiKyhOkZBK4QN21r+xZVlprkqT/4HDBflJEnL7mTDJ+UNYdqDmUSmqgW7NBnB7 FA7wpCkka4f1f/FepSg50V402JYBxFEyUzxfuQYg3UVnC/qbNAgxt+F+nx0OY/opjRJu SpY1ZXSgcg0+EHbjv3FPBbixzcGgGIdv5kbnb/J/ls0gX0ioDFbeI4fQ+pkpkyT8kY26 E0oCpNgWndFQXtZ2R2ni8nQ3Xzdi/NaNxsCW2jh3u8Qpzlfq3XcUe5IooDdakze1ogyr 3x1w== X-Gm-Message-State: APjAAAVd1PTznNnLk8EnkGjAwX2eDrugNC4UVSDmmeK1qJDYJ6cyDKH/ ScewLs+lIVKBNHBPFOo9FOpj1W4b X-Google-Smtp-Source: APXvYqyZcc+AmQLAzruCHRxz3mYF9hTk/Gto7X0j1+34i3VVdWcq68SA58T1o9uzL4edjQQ43DPNnA== X-Received: by 2002:a37:b004:: with SMTP id z4mr17808577qke.103.1567201436194; Fri, 30 Aug 2019 14:43:56 -0700 (PDT) From: jcfaracco@gmail.com To: libvir-list@redhat.com Date: Fri, 30 Aug 2019 18:41:00 -0300 Message-Id: <20190830214101.8759-9-jcfaracco@gmail.com> In-Reply-To: <20190830214101.8759-1-jcfaracco@gmail.com> References: <20190830214101.8759-1-jcfaracco@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.70]); Fri, 30 Aug 2019 21:43:57 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.70]); Fri, 30 Aug 2019 21:43:57 +0000 (UTC) for IP:'209.85.222.181' DOMAIN:'mail-qk1-f181.google.com' HELO:'mail-qk1-f181.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.099 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS) 209.85.222.181 mail-qk1-f181.google.com 209.85.222.181 mail-qk1-f181.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.70 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: Julio Faracco Subject: [libvirt] [PATCH v2 08/10] tests: Introduce resolution test for Virtio model 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 30 Aug 2019 21:44:06 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Julio Faracco New test case was added to cover 'xres' and 'yres' properties for Virtio model due to latest QEMU version. Signed-off-by: Julio Faracco --- ...o-virtio-gpu-resolution.x86_64-latest.args | 35 +++++++++++++++++++ .../video-virtio-gpu-resolution.xml | 33 +++++++++++++++++ tests/qemuxml2argvtest.c | 1 + ...eo-virtio-gpu-resolution.x86_64-latest.xml | 33 +++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 5 files changed, 103 insertions(+) create mode 100644 tests/qemuxml2argvdata/video-virtio-gpu-resolution.x86_= 64-latest.args create mode 100644 tests/qemuxml2argvdata/video-virtio-gpu-resolution.xml create mode 100644 tests/qemuxml2xmloutdata/video-virtio-gpu-resolution.x8= 6_64-latest.xml diff --git a/tests/qemuxml2argvdata/video-virtio-gpu-resolution.x86_64-late= st.args b/tests/qemuxml2argvdata/video-virtio-gpu-resolution.x86_64-latest.= args new file mode 100644 index 0000000000..20702a4c81 --- /dev/null +++ b/tests/qemuxml2argvdata/video-virtio-gpu-resolution.x86_64-latest.args @@ -0,0 +1,35 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-QEMUGuest1 \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.config \ +QEMU_AUDIO_DRV=3Dnone \ +/usr/bin/qemu-system-x86_64 \ +-name guest=3DQEMUGuest1,debug-threads=3Don \ +-S \ +-object secret,id=3DmasterKey0,format=3Draw,\ +file=3D/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=3Dtcg,usb=3Doff,dump-guest-core=3Doff \ +-m 1024 \ +-overcommit mem-lock=3Doff \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,fd=3D1729,server,nowait \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-no-acpi \ +-boot strict=3Don \ +-device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 \ +-device virtio-vga,id=3Dvideo0,max_outputs=3D1,xres=3D1280,yres=3D720,\ +bus=3Dpci.0,addr=3D0x2 \ +-device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x3 \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,\ +resourcecontrol=3Ddeny \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/video-virtio-gpu-resolution.xml b/tests= /qemuxml2argvdata/video-virtio-gpu-resolution.xml new file mode 100644 index 0000000000..2641a18711 --- /dev/null +++ b/tests/qemuxml2argvdata/video-virtio-gpu-resolution.xml @@ -0,0 +1,33 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 1048576 + 1048576 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + + + +