From nobody Mon Feb 9 12:42:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.25 as permitted sender) client-ip=209.132.183.25; envelope-from=libvir-list-bounces@redhat.com; helo=mx4-phx2.redhat.com; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.25 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by mx.zohomail.com with SMTPS id 1486912632234390.428727730201; Sun, 12 Feb 2017 07:17:12 -0800 (PST) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v1CFDwVD027455; Sun, 12 Feb 2017 10:13:58 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v1CFD54g024795 for ; Sun, 12 Feb 2017 10:13:05 -0500 Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1CFD5qI024093 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 12 Feb 2017 10:13:05 -0500 Received: from mail-lf0-f65.google.com (mail-lf0-f65.google.com [209.85.215.65]) (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 454CB3B709 for ; Sun, 12 Feb 2017 15:13:04 +0000 (UTC) Received: by mail-lf0-f65.google.com with SMTP id v186so6560553lfa.2 for ; Sun, 12 Feb 2017 07:13:03 -0800 (PST) Received: from kloomba.my.domain ([95.104.139.40]) by smtp.gmail.com with ESMTPSA id h9sm1414489ljb.51.2017.02.12.07.13.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Feb 2017 07:13:01 -0800 (PST) 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; bh=lOuLtjTk+SVcERLjRC2COZJTabsOBjrcC0eW38+CLSI=; b=PGDgZNMyKnrYH7oDK7sAyPZwekLRKcJLBQwmBGAW/ByserF5983fZBfUKGVX4uvBy6 awhqzAyx1qVO7zygZN5o/8VWvK/JG+RVtbN4TJFag9DbrF+cdhKbD1Uznft4sTZjMDe3 RH3yzUdi20W9OIhvWTAGR8Ca2b48GFy/yYBH+8AIjK69EGaKHCdROF0sHDhfl9WjRFaf F9yxyTLj2MUYiCW1d4Vy8bV+SimFfyWlJkFZtjhdYj/ML2mBvsm2HIQLtPL8kIuKBCb+ u3KPE9aO4+nfqE911dwZPxODtbpA/hLTNwn2F+hXB5lbRh+lSE47mVgJW37RIEFhzK4S pwnQ== 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; bh=lOuLtjTk+SVcERLjRC2COZJTabsOBjrcC0eW38+CLSI=; b=QFtgneh+Tu2grFI0yR1pMG1oJ8RgcnIAxJW5SHtNN4qleZfrELw3eNxbVAg3TZjOMa 6xly5FfUmDITN0OU53R+6fLcsageDaSU1Eur1L1t/faO+T1mKH9isT+IB6AEno1kcEfG 4I3lLXpEUd1yjkDsZrcWO12duPiRCTdg9bD5MHG9WkvnxTmFG1I/SCGMfILICjuvgZ+/ BjJxVP2Q1b6jx/OKEaJcQR8Jo9siYbbKbuBdLj5b3EWfaZPWQthb6AefdLZE3plt+sar +SP44W1358T2TFygr0QmA5SxIDwyyWFkAVzBqhvRfxXNuD3wwt0+ysxurMJR8f3m0/ce ns3Q== X-Gm-Message-State: AMke39mhUxA9QLe90efUa+uR9P16nnTwdd45r9sXnREwF1jrSWj+pgu4TFgvsP0nTtNu9Q== X-Received: by 10.46.80.29 with SMTP id e29mr1567647ljb.121.1486912381747; Sun, 12 Feb 2017 07:13:01 -0800 (PST) From: Roman Bogorodskiy To: libvir-list@redhat.com Date: Sun, 12 Feb 2017 19:12:34 +0400 Message-Id: <20170212151234.25936-7-bogorodskiy@gmail.com> In-Reply-To: <20170212151234.25936-1-bogorodskiy@gmail.com> References: <20170212151234.25936-1-bogorodskiy@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Sun, 12 Feb 2017 15:13:04 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Sun, 12 Feb 2017 15:13:04 +0000 (UTC) for IP:'209.85.215.65' DOMAIN:'mail-lf0-f65.google.com' HELO:'mail-lf0-f65.google.com' FROM:'bogorodskiy@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.17 * (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.215.65 mail-lf0-f65.google.com 209.85.215.65 mail-lf0-f65.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.30 X-loop: libvir-list@redhat.com Cc: Roman Bogorodskiy Subject: [libvirt] [PATCH 6/6] bhyve: test cases for VNC 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-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Roman Bogorodskiy --- tests/bhyvexml2argvdata/bhyvexml2argv-vnc.args | 12 +++++++++++ tests/bhyvexml2argvdata/bhyvexml2argv-vnc.ldargs | 1 + tests/bhyvexml2argvdata/bhyvexml2argv-vnc.xml | 26 ++++++++++++++++++++= ++++ tests/bhyvexml2argvtest.c | 7 ++++++- 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-vnc.args create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-vnc.ldargs create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-vnc.xml diff --git a/tests/bhyvexml2argvdata/bhyvexml2argv-vnc.args b/tests/bhyvexm= l2argvdata/bhyvexml2argv-vnc.args new file mode 100644 index 000000000..90889b8f3 --- /dev/null +++ b/tests/bhyvexml2argvdata/bhyvexml2argv-vnc.args @@ -0,0 +1,12 @@ +/usr/sbin/bhyve \ +-c 1 \ +-m 214 \ +-u \ +-H \ +-P \ +-s 0:0,hostbridge \ +-l bootrom,/path/to/test.fd \ +-s 2:0,ahci,hd:/tmp/freebsd.img \ +-s 3:0,virtio-net,faketapdev,mac=3D52:54:00:00:00:00 \ +-s 4:0,fbuf,tcp=3D127.0.0.1:5904 \ +-s 1,lpc bhyve diff --git a/tests/bhyvexml2argvdata/bhyvexml2argv-vnc.ldargs b/tests/bhyve= xml2argvdata/bhyvexml2argv-vnc.ldargs new file mode 100644 index 000000000..421376db9 --- /dev/null +++ b/tests/bhyvexml2argvdata/bhyvexml2argv-vnc.ldargs @@ -0,0 +1 @@ +dummy diff --git a/tests/bhyvexml2argvdata/bhyvexml2argv-vnc.xml b/tests/bhyvexml= 2argvdata/bhyvexml2argv-vnc.xml new file mode 100644 index 000000000..9bef80bb4 --- /dev/null +++ b/tests/bhyvexml2argvdata/bhyvexml2argv-vnc.xml @@ -0,0 +1,26 @@ + + bhyve + df3be7e7-a104-11e3-aeb0-50e5492bd3dc + 219136 + 1 + + hvm + /path/to/test.fd + + + + + + +
+ + + + +
+ + + + + + diff --git a/tests/bhyvexml2argvtest.c b/tests/bhyvexml2argvtest.c index 8567ceeae..9089807c6 100644 --- a/tests/bhyvexml2argvtest.c +++ b/tests/bhyvexml2argvtest.c @@ -167,7 +167,8 @@ mymain(void) =20 driver.grubcaps =3D BHYVE_GRUB_CAP_CONSDEV; driver.bhyvecaps =3D BHYVE_CAP_RTC_UTC | BHYVE_CAP_AHCI32SLOT | \ - BHYVE_CAP_NET_E1000 | BHYVE_CAP_LPC_BOOTROM; + BHYVE_CAP_NET_E1000 | BHYVE_CAP_LPC_BOOTROM | \ + BHYVE_CAP_FBUF; =20 DO_TEST("base"); DO_TEST("acpiapic"); @@ -192,6 +193,7 @@ mymain(void) DO_TEST("localtime"); DO_TEST("net-e1000"); DO_TEST("uefi"); + DO_TEST("vnc"); =20 /* Address allocation tests */ DO_TEST("addr-single-sata-disk"); @@ -217,6 +219,9 @@ mymain(void) driver.bhyvecaps &=3D ~BHYVE_CAP_LPC_BOOTROM; DO_TEST_FAILURE("uefi"); =20 + driver.bhyvecaps &=3D ~BHYVE_CAP_FBUF; + DO_TEST_FAILURE("vnc"); + virObjectUnref(driver.caps); virObjectUnref(driver.xmlopt); =20 --=20 2.11.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list