mirror_qemu/tests/acceptance
Philippe Mathieu-Daudé ca2e7e463f tests/acceptance: Add test of NeXTcube framebuffer using OCR
Add a test of the NeXTcube framebuffer using the Tesseract OCR
engine on a screenshot of the framebuffer device.

The test is very quick:

  $ avocado --show=app,console run tests/acceptance/machine_m68k_nextcube.py
  JOB ID     : 78844a92424cc495bd068c3874d542d1e20f24bc
  JOB LOG    : /home/phil/avocado/job-results/job-2019-08-13T13.16-78844a9/job.log
   (1/3) tests/acceptance/machine_m68k_nextcube.py:NextCubeMachine.test_bootrom_framebuffer_size: PASS (2.16 s)
   (2/3) tests/acceptance/machine_m68k_nextcube.py:NextCubeMachine.test_bootrom_framebuffer_ocr_with_tesseract_v3: -
  ue r pun Honl'flx ; 5‘ 55‘
  avg ncaaaaa 25 MHZ, memary jag m
  Backplane slat «a
  Ethernet address a a r a r3 2
  Memgry sackets aea canflqured far 16MB Darlly page made stMs but have 16MB page made stMs )nstalled
  Memgry sackets a and 1 canflqured far 16MB Darlly page made stMs but have 16MB page made stMs )nstalled
  [...]
  Yestlnq the rpu, 5::
  system test raneg Errar egge 51
  Egg: cammand
  Default pggc devlce nut fauna
  NEXY>I
  PASS (2.64 s)
   (3/3) tests/acceptance/machine_m68k_nextcube.py:NextCubeMachine.test_bootrom_framebuffer_ocr_with_tesseract_v4: SKIP: tesseract v4 OCR tool not available
  RESULTS    : PASS 2 | ERROR 0 | FAIL 0 | SKIP 1 | WARN 0 | INTERRUPT 0 | CANCEL 0
  JOB TIME   : 5.35 s

Documentation on how to install tesseract:
  https://github.com/tesseract-ocr/tesseract/wiki#installation

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20190813134921.30602-2-philmd@redhat.com>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
2019-09-07 08:33:49 +02:00
..
avocado_qemu tests.acceptance.avocado_qemu: Add support for powerpc 2019-08-28 20:42:16 -04:00
README.rst Add functional/acceptance tests infrastructure 2018-06-15 16:10:11 -03:00
boot_linux_console.py Boot Linux Console Test: add a test for ppc64 + pseries 2019-08-28 21:10:03 -04:00
cpu_queries.py i386: Disable OSPKE on CPU model definitions 2019-03-20 12:18:15 -03:00
empty_cpu_model.py cpu: Fix crash with empty -cpu option 2019-04-25 14:17:35 -03:00
linux_initrd.py tests/acceptance: use "arch:" tag to filter target specific tests 2019-05-02 21:33:26 -03:00
linux_ssh_mips_malta.py BootLinuxSshTest: Only use 'test' for unittest.TestCase method names 2019-08-27 16:57:15 -03:00
machine_m68k_nextcube.py tests/acceptance: Add test of NeXTcube framebuffer using OCR 2019-09-07 08:33:49 +02:00
migration.py Acceptance tests: drop left over usage of "🥑 enable" 2019-08-28 20:42:16 -04:00
pc_cpu_hotplug_props.py pc: Don't make die-id mandatory unless necessary 2019-09-03 14:39:46 -03:00
version.py Acceptance tests: drop usage of "🥑 enable" 2019-02-22 14:07:01 -05: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 i386: Add Cascadelake-Server-v2 CPU model 2019-07-05 17:12:30 -03: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".