nixpkgs/nixos
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
..
doc/manual nixos/test-driver: Add new getScreenText function. 2015-05-21 19:55:21 +02:00
lib nixos/test-driver: Add new getScreenText function. 2015-05-21 19:55:21 +02:00
maintainers nixos/initrd: Generic library copying 2015-03-28 18:37:29 -07:00
modules Merge pull request #7857 from rushmorem/marathon-module-update 2015-05-21 16:52:14 +03:00
tests nixos/tests/installer: Add test for LUKS rootfs. 2015-05-21 13:21:41 +02:00
COPYING Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
default.nix Fix nixos-option 2013-10-28 22:45:58 +01:00
README Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
release-combined.nix nixos/release: Add luksroot test to "tested" job. 2015-05-21 13:21:41 +02:00
release-small.nix Rename scrubDrv -> hydraJob and make it more effective 2015-03-20 19:46:18 +01:00
release.nix nixos/release: Add luksroot test to "tested" job. 2015-05-21 13:21:41 +02:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.