1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/nixos/doc/manual/development
aszlig 235c2228ca
nixos/test-driver: Add new getScreenText function.
Basically, this creates a screenshot and throws tesseract at it to
recognize the characters from the screenshot. In order to produce a
result that is well enough, we're using lanczos scaling and scale the
image up to 400% of its original size.

This provides the base functionality for a new Machine method which will
be called waitForText. I originally had that idea long ago when writing
the VM tests for VirtualBox and Chromium, but thought it would be
disproportionate to the case.

The downside however is that VM tests now depend on tesseract, but given
the average runtime of our tests it really shouldn't have a too big
impact and it's only a runtime dependency after all.

Another issue is that the OCR process takes quite some time to finish,
but IMHO it's better (as in more deterministic) than to rely on sleep().

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2015-05-21 19:55:21 +02:00
..
building-nixos.xml Chunk NixOS manual 2014-08-26 19:03:49 +02:00
building-parts.xml Chunk NixOS manual 2014-08-26 19:03:49 +02:00
development.xml manual: re-add running nixos tests sections 2015-04-21 02:28:59 -04:00
nixos-tests.xml manual: re-add running nixos tests sections 2015-04-21 02:28:59 -04:00
option-declarations.xml Chunk NixOS manual 2014-08-26 19:03:49 +02:00
option-def.xml Chunk NixOS manual 2014-08-26 19:03:49 +02:00
running-nixos-tests-interactively.xml manual: re-add running nixos tests sections 2015-04-21 02:28:59 -04:00
running-nixos-tests.xml manual: re-add running nixos tests sections 2015-04-21 02:28:59 -04:00
sources.xml Document the nixpkgs-channels repo 2015-05-20 14:20:53 +02:00
testing-installer.xml Chunk NixOS manual 2014-08-26 19:03:49 +02:00
writing-modules.xml Chunk NixOS manual 2014-08-26 19:03:49 +02:00
writing-nixos-tests.xml nixos/test-driver: Add new getScreenText function. 2015-05-21 19:55:21 +02:00