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; });
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
{
|
2010-01-05 15:12:51 +01:00
|
|
|
firefox = apply (import ./firefox.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
|
|
|
}
|