bc68c2985c
connections. * In the root shell, source /etc/bashrc and set $HOME and $DISPLAY. svn path=/nixos/trunk/; revision=19247
31 lines
776 B
Nix
31 lines
776 B
Nix
{ nixpkgs ? ../../nixpkgs
|
|
, services ? ../../services
|
|
, system ? builtins.currentSystem
|
|
}:
|
|
|
|
let
|
|
|
|
testLib =
|
|
(import ../lib/build-vms.nix { inherit nixpkgs services system; }) //
|
|
(import ../lib/testing.nix { inherit nixpkgs services system; });
|
|
|
|
apply = testFun:
|
|
with testLib;
|
|
let
|
|
t = testFun { inherit pkgs testLib; };
|
|
in t // rec {
|
|
nodes = if t ? nodes then t.nodes else { machine = t.machine; };
|
|
vms = buildVirtualNetwork { inherit nodes; };
|
|
test = runTests vms t.testScript;
|
|
report = makeReport test;
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
firefox = apply (import ./firefox.nix);
|
|
kde4 = apply (import ./kde4.nix);
|
|
quake3 = apply (import ./quake3.nix);
|
|
subversion = apply (import ./subversion.nix);
|
|
trac = apply (import ./trac.nix);
|
|
}
|