RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1655807 - Backport avocado-qemu tests for QEMU 2.12
Summary: Backport avocado-qemu tests for QEMU 2.12
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: qemu-kvm
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Yash Mankad
QA Contact: Qianqian Zhu
URL:
Whiteboard:
Depends On:
Blocks: 1669922
TreeView+ depends on / blocked
 
Reported: 2018-12-04 00:28 UTC by Yash Mankad
Modified: 2019-06-14 00:50 UTC (History)
11 users (show)

Fixed In Version: qemu-kvm-2.12.0-48.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1669922 (view as bug list)
Environment:
Last Closed: 2019-06-14 00:50:54 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yash Mankad 2018-12-04 00:28:12 UTC
Description of problem:
Backport the Avocado QEMU tests from upstream and include them in qemu-kvm-2.12.0-y.el8, so that we can run them as gating tests for the qemu-kvm package in the downstream OSCI environment

Version-Release number of selected component (if applicable):
qemu-kvm-2.12.0-y.el8

Comment 3 Danilo de Paula 2018-12-14 15:10:41 UTC
Fix included in qemu-kvm-2.12.0-48.el8

Comment 5 Qianqian Zhu 2018-12-17 05:55:40 UTC
Checked qemu-kvm-2.12.0-48.module+el8+2529+a9686a4d, there are serials of acceptance related patches:

From ae8198a11e507c4f4f701aa92c3ae531d140e547 Mon Sep 17 00:00:00 2001
From: Yash Mankad <ymankad>
Date: Wed, 12 Dec 2018 00:14:41 +0000
Subject: [PATCH 13/13] Acceptance tests: add make rule for running them
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

RH-Author: Yash Mankad <ymankad>
Message-id: <9527fefa2d8d1b27d4a647cf8355236b61fb028b.1544573601.git.ymankad>
Patchwork-id: 83439
O-Subject: [RHEL-8.0 qemu-kvm PATCH v2 7/7] Acceptance tests: add make rule for running them
Bugzilla: 1655807
RH-Acked-by: Eduardo Habkost <ehabkost>
RH-Acked-by: John Snow <jsnow>
RH-Acked-by: Philippe Mathieu-Daudé <philmd>

From: Cleber Rosa <crosa>

The acceptance (aka functional, aka Avocado-based) tests are
Python files located in "tests/acceptance" that need to be run
with the Avocado libs and test runner.

Let's provide a convenient way for QEMU developers to run them,
by making use of the tests-venv with the required setup.

Also, while the Avocado test runner will take care of creating a
location to save test results to, it was understood that it's better
if the results are kept within the build tree.

Signed-off-by: Cleber Rosa <crosa>
Acked-by: Stefan Hajnoczi <stefanha>
Acked-by: Wainer dos Santos Moschetta <wainersm>
Reviewed-by: Caio Carrara <ccarrara>
Message-Id: <20181018153134.8493-3-crosa>
Signed-off-by: Eduardo Habkost <ehabkost>
(cherry picked from commit a56931eef343c7564e35bcc05eaed2a469a1b1b8)
Signed-off-by: Yash Mankad <ymankad>
Signed-off-by: Danilo C. L. de Paula <ddepaula>
---
 docs/devel/testing.rst | 43 ++++++++++++++++++++++++++++++++++++++-----
 tests/Makefile.include | 21 +++++++++++++++++++--
 tests/requirements.txt |  1 +
 3 files changed, 58 insertions(+), 7 deletions(-)


And simply test it by:
[root@ qemu-2.12.0]# make check-acceptance
  VENV    /root/rpmbuild/BUILD/qemu-2.12.0/tests/venv
  PIP     /root/rpmbuild/BUILD/qemu-2.12.0/tests/requirements.txt
  MKDIR   /root/rpmbuild/BUILD/qemu-2.12.0/tests/results
  AVOCADO tests/acceptance

There are 6 test cases and they all passed:
job.log:2018-12-17 00:46:49,411 test             L1005 INFO | PASS 1-/root/rpmbuild/BUILD/qemu-2.12.0/tests/acceptance/boot_linux_console.py:BootLinuxConsole.test
job.log:2018-12-17 00:46:49,625 test             L1005 INFO | PASS 2-/root/rpmbuild/BUILD/qemu-2.12.0/tests/acceptance/version.py:Version.test_qmp_human_info_version
job.log:2018-12-17 00:46:49,817 test             L1005 INFO | PASS 3-/root/rpmbuild/BUILD/qemu-2.12.0/tests/acceptance/vnc.py:Vnc.test_no_vnc
job.log:2018-12-17 00:46:50,001 test             L1005 INFO | PASS 4-/root/rpmbuild/BUILD/qemu-2.12.0/tests/acceptance/vnc.py:Vnc.test_no_vnc_change_password
job.log:2018-12-17 00:46:50,209 test             L1005 INFO | PASS 5-/root/rpmbuild/BUILD/qemu-2.12.0/tests/acceptance/vnc.py:Vnc.test_vnc_change_password_requires_a_password
job.log:2018-12-17 00:46:50,426 test             L1005 INFO | PASS 6-/root/rpmbuild/BUILD/qemu-2.12.0/tests/acceptance/vnc.py:Vnc.test_vnc_change_password

Comment 6 Qianqian Zhu 2018-12-17 05:58:43 UTC
Hi Yash,

Would you help check if it is sufficient to VERIFY this bz per comment 5?
And I have another question, where do we manage avocado-qemu related bz in the further? Report here to qemu-kvm component?

Thanks,
Qianqian

Comment 7 Yash Mankad 2018-12-20 06:06:23 UTC
Hi Qianqian,

Yes, as all tests are PASSing using make check-acceptance, I think that is sufficient to VERIFY this BZ.
For future avocado_qemu related BZs, you can open them against the qemu-kvm component for RHEL-8.

Thanks.

Comment 8 Qianqian Zhu 2018-12-20 06:12:05 UTC
Thanks Yash, I am moving it to VERIFIED.


Note You need to log in before you can comment on or make changes to this bug.