Eelco Dolstra
fa89713c78
* Rename apply' and
call'.
...
svn path=/nixos/trunk/; revision=21944
2010-05-23 12:02:54 +00:00
Eelco Dolstra
dd81311714
* Optionally pass the computed `nodes' to the test script as a
...
function argument, so that the test script can refer to computed
values such as the assigned IP addresses of the virtual machines.
svn path=/nixos/trunk/; revision=21939
2010-05-21 14:31:05 +00:00
Rob Vermaas
a4516ec98a
workaround for some fs problems experienced by some tests of webdsl/crawljax. also added require argument to runinmachinewithx function
...
svn path=/nixos/trunk/; revision=21423
2010-04-29 12:45:22 +00:00
Rob Vermaas
e18b352ce0
remove obsolete option from machine spec
...
svn path=/nixos/trunk/; revision=21151
2010-04-19 07:42:27 +00:00
Rob Vermaas
b75d15a9a8
virtualisation: add option to switch off readonly host fs in vm
...
svn path=/nixos/trunk/; revision=21126
2010-04-16 15:09:47 +00:00
Rob Vermaas
131b1e57fe
nixos: add runinmachinewithx variant
...
svn path=/nixos/trunk/; revision=20561
2010-03-11 15:09:10 +00:00
Rob Vermaas
95f2e60c5d
remove debugging
...
svn path=/nixos/trunk/; revision=20557
2010-03-11 13:12:17 +00:00
Rob Vermaas
3fae175c10
* nixos/lib/testing.nix: added runinmachine function to build derivation in machine given a nixos configuration
...
svn path=/nixos/trunk/; revision=20556
2010-03-11 13:11:06 +00:00
Eelco Dolstra
c4ae499f3d
svn path=/nixos/trunk/; revision=20545
2010-03-10 22:51:53 +00:00
Eelco Dolstra
358f3cd79c
* In tests/default.nix, only import lib/testing.nix.
...
svn path=/nixos/trunk/; revision=20483
2010-03-09 10:14:45 +00:00
Rob Vermaas
d79d934d85
move functions to lib/testing to allow easier use outside of nixos
...
svn path=/nixos/trunk/; revision=20072
2010-02-17 09:37:22 +00:00
Eelco Dolstra
fc805fe541
* In the test driver, connect to the QEMU monitor so that we can send
...
it special commands such as "screendump", "sendkey" and so on.
* Take screenshots using the "screendump" command. This has the
advantage over "scrot" that it also supports taking a picture of the
console, and is not affected by weird X visuals.
svn path=/nixos/trunk/; revision=19837
2010-02-05 16:51:37 +00:00
Eelco Dolstra
4c2fe97acc
* Always create hydra-build-products, otherwise the build is made
...
available as a one-click install which is not useful.
svn path=/nixos/trunk/; revision=19296
2010-01-07 16:50:26 +00:00
Eelco Dolstra
816f12da88
* Test driver: added support for running from an ISO image. The goal
...
is to merge test-nixos-install-from-cd so that we have a single
testing framework.
svn path=/nixos/trunk/; revision=19259
2010-01-06 13:36:21 +00:00
Eelco Dolstra
5af12b6afe
* Provide a function for taking a screenshot.
...
svn path=/nixos/trunk/; revision=19225
2010-01-05 11:35:59 +00:00
Eelco Dolstra
51097933ab
* Moved test-related stuff from lib/build-vms.nix to lib/testing.nix.
...
* Factored out some commonality between tests to make them a bit
simpler to write. A test is a function { pkgs, ... }: -> { nodes,
testScript } or { machine, testScript }. So it's no longer
necessary to have a "vms" attribute in every test.
svn path=/nixos/trunk/; revision=19220
2010-01-05 11:18:43 +00:00