qemu-e2k/tests/acceptance
Philippe Mathieu-Daudé 15b1bdca1e tests/acceptance/integratorcp: Verify Tux is displayed on framebuffer
Add a test that verifies the Tux logo is displayed on the framebuffer.

We simply follow the OpenCV "Template Matching with Multiple Objects"
tutorial, replacing Lionel Messi by Tux:
https://docs.opencv.org/4.2.0/d4/dc6/tutorial_py_template_matching.html

When OpenCV and NumPy are installed, this test can be run using:

  $ AVOCADO_ALLOW_UNTRUSTED_CODE=hmmm \
    avocado --show=app,framebuffer run -t device:framebuffer \
      tests/acceptance/machine_arm_integratorcp.py
  JOB ID     : 8c46b0f8269242e87d738247883ea2a470df949e
  JOB LOG    : avocado/job-results/job-2020-01-31T21.38-8c46b0f/job.log
   (1/1) tests/acceptance/machine_arm_integratorcp.py:IntegratorMachine.test_framebuffer_tux_logo:
  framebuffer: found Tux at position [x, y] = (0, 0)
  PASS (3.96 s)
  RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
  JOB TIME   : 4.23 s

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-id: 20200225172501.29609-5-philmd@redhat.com
Message-Id: <20200131211102.29612-3-f4bug@amsat.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2020-02-28 16:14:57 +00:00
..
avocado_qemu Acceptance tests: Add interrupt_interactive_console_until_pattern() 2020-02-07 15:12:48 +01:00
README.rst Add functional/acceptance tests infrastructure 2018-06-15 16:10:11 -03:00
boot_linux_console.py tests/acceptance/boot_linux_console: Do not use VGA on Clipper machine 2020-02-07 15:12:48 +01:00
cpu_queries.py Acceptance tests: use avocado tags for machine type 2019-12-16 11:23:19 -05:00
empty_cpu_model.py tests/acceptance: Makes linux_initrd and empty_cpu_model use QEMUMachine 2019-12-16 10:59:50 -05:00
linux_initrd.py Acceptance tests: use avocado tags for machine type 2019-12-16 11:23:19 -05:00
linux_ssh_mips_malta.py Python queue 2019-12-17 2019-12-17 14:34:31 +00:00
machine_arm_integratorcp.py tests/acceptance/integratorcp: Verify Tux is displayed on framebuffer 2020-02-28 16:14:57 +00:00
machine_arm_n8x0.py tests/acceptance: Add a test for the N800 and N810 arm machines 2020-02-28 16:14:57 +00:00
machine_m68k_nextcube.py Acceptance tests: use avocado tags for machine type 2019-12-16 11:23:19 -05:00
machine_mips_malta.py tests/acceptance: Count multiple Tux logos displayed on framebuffer 2020-02-27 14:19:07 +01:00
machine_sparc_leon3.py Acceptance tests: use avocado tags for machine type 2019-12-16 11:23:19 -05:00
migration.py tests/acceptance/migration: Default to -nodefaults 2020-02-07 15:12:48 +01:00
pc_cpu_hotplug_props.py pc: Don't make die-id mandatory unless necessary 2019-09-03 14:39:46 -03:00
ppc_prep_40p.py Acceptance tests: use avocado tags for machine type 2019-12-16 11:23:19 -05:00
version.py tests/acceptance/version: Default to -nodefaults 2020-02-07 15:12:48 +01:00
virtio_check_params.py tests/acceptance: Remove shebang header 2020-02-07 15:12:48 +01:00
virtio_version.py python/qemu: split QEMUMachine out from underneath __init__.py 2019-07-01 19:02:10 -03:00
vnc.py VNC Acceptance test: simplify test names 2019-08-28 21:10:15 -04:00
x86_cpu_model_versions.py tests/acceptance: Remove shebang header 2020-02-07 15:12:48 +01:00

README.rst

============================================
Acceptance tests using the Avocado Framework
============================================

This directory contains functional tests, also known as acceptance
level tests.  They're usually higher level, and may interact with
external resources and with various guest operating systems.

For more information, please refer to ``docs/devel/testing.rst``,
section "Acceptance tests using the Avocado Framework".