From nobody Sat Feb 7 10:50:22 2026 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=1570506015; cv=none; d=zoho.com; s=zohoarc; b=hdTQE3NvKJrtg5VwMV6jrwWI3SBBL+WWHEs8+d+Vmmch1B7JybvxZvfTGccrYLOF5bK3a+WgeQ6O98qfNkffKyxEFVCR7llqb7sHim7pMLRvT+I9VmUiLim+VxBwRdwnJAmCMVhRGFGeaA6qhRt/8xInHFAAo1UxmIouAIO3DYE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570506015; 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=jxbpYIkMAHrbUvgi8zOz6yMNyFdkm4fPuZ+8lWk5Sy4=; b=V+FSc+snoXhJ0NNKivdlE2NqlNYx3N2TjEl8ey0SyYJcAaMDB1R8R5QE01jWlaSA9rLCW7ybqRsK9Ell/Awagst+pW1B1bsN4HMkPG83OI53qaDggdPE7zMIekZcEg0mZwIr+3grz0WI097bxQ5GVtyieqe/ZIt2LJsWn4nhVlU= 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 1570506015038230.9438470582213; Mon, 7 Oct 2019 20:40:15 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EC2F7A44AC3; Tue, 8 Oct 2019 03:40:12 +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 BE34E100EBA3; Tue, 8 Oct 2019 03:40:12 +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 5A898180B76F; Tue, 8 Oct 2019 03:40:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x983bx7A030843 for ; Mon, 7 Oct 2019 23:37:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id CC52260925; Tue, 8 Oct 2019 03:37:59 +0000 (UTC) Received: from mx1.redhat.com (ext-mx21.extmail.prod.ext.phx2.redhat.com [10.5.110.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C6B5260605 for ; Tue, 8 Oct 2019 03:37:57 +0000 (UTC) Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (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 5B24418C4284 for ; Tue, 8 Oct 2019 03:37:56 +0000 (UTC) Received: by mail-qt1-f172.google.com with SMTP id n7so22924197qtb.6 for ; Mon, 07 Oct 2019 20:37:56 -0700 (PDT) Received: from localhost.localdomain ([2804:431:c7cb:2ffa:6543:6636:1395:624c]) by smtp.gmail.com with ESMTPSA id n192sm8186314qke.9.2019.10.07.20.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 20:37:54 -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=WhfoZWCvKc4CkuUB4RDAdQ/oosM3/4SP8fX2cQoRico=; b=dZa7kq9aZjUy4uRz5O3Ibqzy9aifEZ4Ut6gdIhw8hoCzKBX+ut2v9SqrYQzDjkZZbU T27ODhRgpnCPn8xHe+Ms0wQLkingNpO06mYOampMIG1A9XXTbq8qeidJX6xXRoOtua+J zMp8YFa0V5cWrVhnpVZVZOmfXHoSX5WLi7E5M0CXkuyrYmiZbxe4jJ5+bgFVlcSUUxY1 1yzKLTl5fEUE450wmUVQAJdJg0I6/t7TUBsSSHvWVVRqNDv3ixkS/IXSV2RWOymMCRR/ Vl5o+7QqyMv5/+O7brQo1PSVB+tJIhPI3ztL9BCnqaamiTUwG2pfaBgt+KrgguhooLsN WE6A== 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=WhfoZWCvKc4CkuUB4RDAdQ/oosM3/4SP8fX2cQoRico=; b=PSSh+8kKT/cpBPNh6qeg0TSoI5Sf6pzCbSfepjefG+LDOKduabSZ1Wi2B1ZwJPzk6k 753dFTtep97fGIJTsbw10rDxfgl16nmm9/W/Jp2rG77+MRV/2s/bb9wh7E7UGLUp79of +EcLBVvDeBqX3k49QLVxyd2F+fGKAcl4xH9NhpXXSjBWAiryj91ITgCAxLBULLToYPsC Rv4h2z6WPi9bafxJT88ngzdpPMR3m5clugfUWTE45A7oSaPsOa7KITQMUG6uWWETZbVf qOKAHvyYOW/MWy+fbt48FEwjMBSv5pRZmq8MaqLclkMRWM3JLv4jT817anQQSQMOGFGo ly1w== X-Gm-Message-State: APjAAAX0FPXWIiid43mOOAXEYT+JNLivtaL5C1avHbrrORHwixQWIb+/ OmV9D0iG/XenRghLBJqcU5RtttAQ X-Google-Smtp-Source: APXvYqwUEu5H3dmEw40Du3sGRWXkfiHSLxyLhHqaGiysJE9uZjzdDKJTRXH+ksPBy6uBzBikd+wqhA== X-Received: by 2002:ac8:76c6:: with SMTP id q6mr3322318qtr.158.1570505875101; Mon, 07 Oct 2019 20:37:55 -0700 (PDT) From: jcfaracco@gmail.com To: libvir-list@redhat.com Date: Tue, 8 Oct 2019 00:35:59 -0300 Message-Id: <20191008033558.24751-5-jcfaracco@gmail.com> In-Reply-To: <20191008033558.24751-1-jcfaracco@gmail.com> References: <20191008033558.24751-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.62]); Tue, 08 Oct 2019 03:37:56 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.62]); Tue, 08 Oct 2019 03:37:56 +0000 (UTC) for IP:'209.85.160.172' DOMAIN:'mail-qt1-f172.google.com' HELO:'mail-qt1-f172.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.1 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.160.172 mail-qt1-f172.google.com 209.85.160.172 mail-qt1-f172.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.62 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Cc: Julio Faracco Subject: [libvirt] [PATCH v3 4/4] tests: Add separate tests for resolution 'x' and 'y' 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.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Tue, 08 Oct 2019 03:40:13 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Julio Faracco New tests to verify resolution properties of a simple qxl video. Other video models supports 'xres' and 'yres' feature for QEMU. But a qxl test should be enough to cover this domain feature. Signed-off-by: Julio Faracco --- .../video-qxl-resolution.args | 32 ++++++++++++++ .../qemuxml2argvdata/video-qxl-resolution.xml | 42 +++++++++++++++++++ tests/qemuxml2argvtest.c | 4 ++ .../video-qxl-resolution.xml | 42 +++++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 5 files changed, 121 insertions(+) create mode 100644 tests/qemuxml2argvdata/video-qxl-resolution.args create mode 100644 tests/qemuxml2argvdata/video-qxl-resolution.xml create mode 100644 tests/qemuxml2xmloutdata/video-qxl-resolution.xml diff --git a/tests/qemuxml2argvdata/video-qxl-resolution.args b/tests/qemux= ml2argvdata/video-qxl-resolution.args new file mode 100644 index 0000000000..ed2e4422da --- /dev/null +++ b/tests/qemuxml2argvdata/video-qxl-resolution.args @@ -0,0 +1,32 @@ +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-i686 \ +-name QEMUGuest1 \ +-S \ +-machine pc,accel=3Dtcg,usb=3Doff,dump-guest-core=3Doff \ +-m 214 \ +-realtime mlock=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,path=3D/tmp/lib/domain--1-QEMUGuest1/moni= tor.sock,\ +server,nowait \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-no-acpi \ +-usb \ +-drive file=3D/dev/HostVG/QEMUGuest1,format=3Draw,if=3Dnone,id=3Ddrive-ide= 0-0-0 \ +-device ide-hd,bus=3Dide.0,unit=3D0,drive=3Ddrive-ide0-0-0,id=3Dide0-0-0,b= ootindex=3D1 \ +-device qxl-vga,id=3Dvideo0,ram_size=3D67108864,vram_size=3D67108864,vgame= m_mb=3D8,\ +xres=3D1280,yres=3D720,bus=3Dpci.0,addr=3D0x2 \ +-device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x3 diff --git a/tests/qemuxml2argvdata/video-qxl-resolution.xml b/tests/qemuxm= l2argvdata/video-qxl-resolution.xml new file mode 100644 index 0000000000..1bc415f3f8 --- /dev/null +++ b/tests/qemuxml2argvdata/video-qxl-resolution.xml @@ -0,0 +1,42 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219136 + 219136 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-i686 + + + + +
+ + +
+ + +
+ + + + +