release.nix: Automatically include all of tests/default.nix
This commit is contained in:
+7
-34
@@ -234,41 +234,14 @@ in {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
# Run the tests in ./tests/default.nix for each platform. You can
|
||||||
|
# run a test by doing e.g. "nix-build -A tests.login.x86_64-linux".
|
||||||
tests =
|
tests =
|
||||||
|
with pkgs.lib;
|
||||||
let
|
let
|
||||||
runTest = f: pkgs.lib.genAttrs systems (system:
|
testsFor = system:
|
||||||
f (import ./tests { inherit system; })
|
mapAttrsRecursiveCond (x: !x ? test) (n: v: listToAttrs [(nameValuePair system v.test)])
|
||||||
);
|
(import ./tests { inherit system; });
|
||||||
in {
|
in fold recursiveUpdate {} (map testsFor systems);
|
||||||
avahi = runTest (t: t.avahi.test);
|
|
||||||
bittorrent = runTest (t: t.bittorrent.test);
|
|
||||||
firefox = runTest (t: t.firefox.test);
|
|
||||||
firewall = runTest (t: t.firewall.test);
|
|
||||||
installer.grub1 = runTest (t: t.installer.grub1.test);
|
|
||||||
installer.lvm = runTest (t: t.installer.lvm.test);
|
|
||||||
installer.rebuildCD = runTest (t: t.installer.rebuildCD.test);
|
|
||||||
installer.separateBoot = runTest (t: t.installer.separateBoot.test);
|
|
||||||
installer.simple = runTest (t: t.installer.simple.test);
|
|
||||||
#installer.swraid = runTest (t: t.installer.swraid.test);
|
|
||||||
ipv6 = runTest (t: t.ipv6.test);
|
|
||||||
kde4 = runTest (t: t.kde4.test);
|
|
||||||
login = runTest (t: t.login.test);
|
|
||||||
latestKernel.login = runTest (t: t.latestKernel.login.test);
|
|
||||||
misc = runTest (t: t.misc.test);
|
|
||||||
#mpich = runTest (t: t.mpich.test);
|
|
||||||
mysql = runTest (t: t.mysql.test);
|
|
||||||
mysql_replication = runTest (t: t.mysql_replication.test);
|
|
||||||
nat = runTest (t: t.nat.test);
|
|
||||||
nfs3 = runTest (t: t.nfs3.test);
|
|
||||||
#nfs4 = runTest (t: t.nfs4.test);
|
|
||||||
openssh = runTest (t: t.openssh.test);
|
|
||||||
partition = runTest (t: t.partition.test);
|
|
||||||
proxy = runTest (t: t.proxy.test);
|
|
||||||
quake3 = runTest (t: t.quake3.report);
|
|
||||||
#subversion = runTest (t: t.subversion.report);
|
|
||||||
tomcat = runTest (t: t.tomcat.test);
|
|
||||||
#trac = runTest (t: t.trac.test);
|
|
||||||
xfce = runTest (t: t.xfce.test);
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -13,12 +13,12 @@ with import ../lib/testing.nix { inherit system minimal; };
|
|||||||
login = makeTest (import ./login.nix {});
|
login = makeTest (import ./login.nix {});
|
||||||
latestKernel.login = makeTest (import ./login.nix ({ config, pkgs, ... }: { boot.kernelPackages = pkgs.linuxPackages_latest; }));
|
latestKernel.login = makeTest (import ./login.nix ({ config, pkgs, ... }: { boot.kernelPackages = pkgs.linuxPackages_latest; }));
|
||||||
misc = makeTest (import ./misc.nix);
|
misc = makeTest (import ./misc.nix);
|
||||||
mpich = makeTest (import ./mpich.nix);
|
#mpich = makeTest (import ./mpich.nix);
|
||||||
mysql = makeTest (import ./mysql.nix);
|
mysql = makeTest (import ./mysql.nix);
|
||||||
mysql_replication = makeTest (import ./mysql-replication.nix);
|
mysql_replication = makeTest (import ./mysql-replication.nix);
|
||||||
nat = makeTest (import ./nat.nix);
|
nat = makeTest (import ./nat.nix);
|
||||||
nfs3 = makeTest (import ./nfs.nix { version = 3; });
|
nfs3 = makeTest (import ./nfs.nix { version = 3; });
|
||||||
nfs4 = makeTest (import ./nfs.nix { version = 4; });
|
#nfs4 = makeTest (import ./nfs.nix { version = 4; });
|
||||||
openssh = makeTest (import ./openssh.nix);
|
openssh = makeTest (import ./openssh.nix);
|
||||||
partition = makeTest (import ./partition.nix);
|
partition = makeTest (import ./partition.nix);
|
||||||
portmap = makeTest (import ./portmap.nix);
|
portmap = makeTest (import ./portmap.nix);
|
||||||
|
|||||||
@@ -268,6 +268,7 @@ in {
|
|||||||
fileSystems = rootFS;
|
fileSystems = rootFS;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
swraid = makeTest
|
swraid = makeTest
|
||||||
{ createPartitions =
|
{ createPartitions =
|
||||||
''
|
''
|
||||||
@@ -300,6 +301,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
fileSystems = rootFS + bootFS;
|
fileSystems = rootFS + bootFS;
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
# Test a basic install using GRUB 1.
|
# Test a basic install using GRUB 1.
|
||||||
grub1 = makeTest
|
grub1 = makeTest
|
||||||
|
|||||||
Reference in New Issue
Block a user