2010-01-05 11:18:43 +00:00
|
|
|
{ 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; });
|
|
|
|
|
2010-01-07 13:19:38 +00:00
|
|
|
in with testLib; let
|
|
|
|
|
|
|
|
call = f: f { inherit pkgs nixpkgs system testLib; };
|
|
|
|
|
|
|
|
apply = testFun: complete (call testFun);
|
|
|
|
|
|
|
|
complete = t: t // rec {
|
|
|
|
nodes =
|
|
|
|
if t ? nodes then t.nodes else
|
|
|
|
if t ? machine then { machine = t.machine; }
|
|
|
|
else { };
|
|
|
|
vms = buildVirtualNetwork { inherit nodes; };
|
|
|
|
test = runTests vms t.testScript;
|
|
|
|
report = makeReport test;
|
|
|
|
};
|
2010-01-05 11:18:43 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
2010-01-05 14:12:51 +00:00
|
|
|
firefox = apply (import ./firefox.nix);
|
2010-01-07 13:19:38 +00:00
|
|
|
installer = pkgs.lib.mapAttrs (name: complete) (call (import ./installer.nix));
|
2010-01-05 23:59:29 +00:00
|
|
|
kde4 = apply (import ./kde4.nix);
|
2010-01-11 15:58:15 +00:00
|
|
|
proxy = apply (import ./proxy.nix);
|
2010-01-05 11:18:43 +00:00
|
|
|
quake3 = apply (import ./quake3.nix);
|
|
|
|
subversion = apply (import ./subversion.nix);
|
2010-01-05 11:57:17 +00:00
|
|
|
trac = apply (import ./trac.nix);
|
2010-01-05 11:18:43 +00:00
|
|
|
}
|