nixpkgs/nixos/lib
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
..
test-driver nixos/test-driver: Add new getScreenText function. 2015-05-21 19:55:21 +02:00
build-vms.nix In a test VM it's impossible to connect to itself, so fix this 2015-02-19 21:13:49 +00:00
channel-expr.nix
eval-config.nix Document and rename internal option of modules. 2015-03-15 14:45:42 +01:00
from-env.nix
make-iso9660-image.nix nixos: iso-image: use syslinux bootloader for USB booting support 2015-03-24 22:01:04 +01:00
make-iso9660-image.sh nixos: iso-image: filename escaping in xorriso 2015-03-24 22:01:51 +01:00
make-squashfs.nix
make-system-tarball.nix nixos/make-system-tarball: extra commands to be executed before archive 2014-12-11 23:17:27 +01:00
make-system-tarball.sh nixos/make-system-tarball: extra commands to be executed before archive 2014-12-11 23:17:27 +01:00
nixpkgs.nix
qemu-flags.nix
testing.nix nixos/test-driver: Add new getScreenText function. 2015-05-21 19:55:21 +02:00
utils.nix