summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-09-16 11:31:09 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-09-16 13:30:33 +0200
commitfbb40e0389276556f7282abb6c7452281f7698b2 (patch)
treec16e938462a2a9768931f2fe86e8cb1bea4d4da9 /release.nix
parent0192c027203efa9b7b4d6516d8d5ae322e76c6bd (diff)
downloadnixpkgs-fbb40e0389276556f7282abb6c7452281f7698b2.tar
nixpkgs-fbb40e0389276556f7282abb6c7452281f7698b2.tar.gz
nixpkgs-fbb40e0389276556f7282abb6c7452281f7698b2.tar.bz2
nixpkgs-fbb40e0389276556f7282abb6c7452281f7698b2.tar.lz
nixpkgs-fbb40e0389276556f7282abb6c7452281f7698b2.tar.xz
nixpkgs-fbb40e0389276556f7282abb6c7452281f7698b2.tar.zst
nixpkgs-fbb40e0389276556f7282abb6c7452281f7698b2.zip
release.nix: Automatically include all of tests/default.nix
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix41
1 files changed, 7 insertions, 34 deletions
diff --git a/release.nix b/release.nix
index a6b80be0ea6..6d61b796359 100644
--- a/release.nix
+++ b/release.nix
@@ -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 =
+    with pkgs.lib;
     let
-      runTest = f: pkgs.lib.genAttrs systems (system:
-        f (import ./tests { inherit system; })
-      );
-    in {
-      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);
-    };
+      testsFor = system:
+        mapAttrsRecursiveCond (x: !x ? test) (n: v: listToAttrs [(nameValuePair system v.test)])
+          (import ./tests { inherit system; });
+    in fold recursiveUpdate {} (map testsFor systems);
 
 }