summary refs log tree commit diff
path: root/nixos/lib/test-driver
Commit message (Collapse)AuthorAge
* waitForUnit: Fail if the unit reaches inactive state with no pending jobsEelco Dolstra2015-12-30
| | | | | This prevents waitForUnit for looping for many minutes before giving up.
* Simple EC2 user-data VM testDan Peebles2015-06-11
|
* Drop obsolete boot=on parameterEelco Dolstra2015-06-10
|
* nixos/test-driver: Fix bashism in Machine.pm.aszlig2015-05-22
| | | | | | Thanks to @bjornfor for the note. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/test-driver: Make tesseract OCR optional.aszlig2015-05-22
| | | | | | | | | | | | | | | | | By default this is now enabled, and it has to be explicitely enabled using "enableOCR = true". If it is set to false, any usage of getScreenText or waitForText will fail with an error suggesting to pass enableOCR. This should get rid of the rather large dependency on tesseract which we don't need for most tests. Note, that I'm using system("type -P") here to check whether tesseract is in PATH. I know it's a bashism but we already have other bashisms within the test scripts and we also run it with bash, so IMHO it's not a problem here. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/test-driver: Add new waitForText function.aszlig2015-05-21
| | | | | | | | As promised in the previous commit, this can be used similarly to $machine->waitForWindow, where you supply a regular expression and it's retrying OCR until the regexp matches. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/test-driver: Add new getScreenText function.aszlig2015-05-21
| | | | | | | | | | | | | | | | | | | | | 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>
* nixos: test: add tests for booting installation iso in various waysBob van der Linden2015-03-24
|
* test-driver: Use netpbm instead of imagemagickEelco Dolstra2014-09-25
| | | | Imagemagick pulls in 100s of megabytes of dependencies.
* nixos/test-reports: use local copy of jqueryBjørn Forsman2014-09-07
| | | | | | | | | | | | | | The current way test reports get jquery, src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" only works when getting reports over http:// or https://, not file://. Change it so that it works for all protocols by using a local copy of jquery. This fixes the issue where locally created and browsed test reports cannot be navigated properly; clicking the '+' symbol to expand sub-sections doesn't work.
* nixos/log2html: Remove schema from jQuery URLs.aszlig2014-06-27
| | | | | | | This allows viewing test logs for example when using a Hydra running with HTTPS. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* test-driver: Set context to include machines created by createMachineEelco Dolstra2014-05-21
|
* Fix waitForXEelco Dolstra2014-04-17
|
* journalctl no longer parses the flag "-bu"Eelco Dolstra2014-04-17
|
* Remove ignored argument to syncEelco Dolstra2014-04-07
|
* Shut up Perl warningEelco Dolstra2014-03-18
|
* Revert "test-driver: Set the date to the current time on boot"Eelco Dolstra2014-03-18
| | | | | | This reverts commit 4e6eae45ee8c2357acf3dc7e3caba9d86c2edeac. It breaks running the test driver interactively (in that it causes all VMs to be started immediately, which is not always what you wnat).
* test-driver: Set the date to the current time on bootShea Levy2014-03-17
| | | | Should allow merging #1816
* Sync /tmp/xchg to ensure that the coverage data is flushedEelco Dolstra2014-03-03
|
* nixos X tests: wait for logind to link a session to the serverShea Levy2014-01-22
| | | | | | There seems to be some race causing failures if an X command gets in before slim starts the session Signed-off-by: Shea Levy <shea@shealevy.com>
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10