mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
816f12da88
is to merge test-nixos-install-from-cd so that we have a single testing framework. svn path=/nixos/trunk/; revision=19259
36 lines
890 B
Nix
36 lines
890 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 nixpkgs system testLib; };
|
|
in 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;
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
firefox = apply (import ./firefox.nix);
|
|
installer = apply (import ./installer.nix);
|
|
kde4 = apply (import ./kde4.nix);
|
|
quake3 = apply (import ./quake3.nix);
|
|
subversion = apply (import ./subversion.nix);
|
|
trac = apply (import ./trac.nix);
|
|
}
|