2010-01-05 12:18:43 +01: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 14:19:38 +01: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 12:18:43 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
2010-01-05 15:12:51 +01:00
|
|
|
firefox = apply (import ./firefox.nix);
|
2010-01-07 14:19:38 +01:00
|
|
|
installer = pkgs.lib.mapAttrs (name: complete) (call (import ./installer.nix));
|
2010-01-06 00:59:29 +01:00
|
|
|
kde4 = apply (import ./kde4.nix);
|
2010-01-05 12:18:43 +01:00
|
|
|
quake3 = apply (import ./quake3.nix);
|
|
|
|
subversion = apply (import ./subversion.nix);
|
2010-01-05 12:57:17 +01:00
|
|
|
trac = apply (import ./trac.nix);
|
2010-01-05 12:18:43 +01:00
|
|
|
}
|