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
|
2010-01-06 14:36:21 +01:00
|
|
|
t = testFun { inherit pkgs nixpkgs system testLib; };
|
2010-01-05 12:18:43 +01:00
|
|
|
in t // rec {
|
2010-01-06 14:36:21 +01:00
|
|
|
nodes =
|
|
|
|
if t ? nodes then t.nodes else
|
|
|
|
if t ? machine then { machine = t.machine; }
|
|
|
|
else { };
|
2010-01-05 12:18:43 +01:00
|
|
|
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 14:36:21 +01:00
|
|
|
installer = apply (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
|
|
|
}
|