summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-01-05 11:18:43 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-01-05 11:18:43 +0000
commit51097933ab1413fe6a1e853d39a273a7b9969c26 (patch)
treee6585ff22117c15c96f5f46759dafe92775a87e4 /release.nix
parentff86799d42abf507bace415da4f8406871a763c8 (diff)
downloadnixpkgs-51097933ab1413fe6a1e853d39a273a7b9969c26.tar
nixpkgs-51097933ab1413fe6a1e853d39a273a7b9969c26.tar.gz
nixpkgs-51097933ab1413fe6a1e853d39a273a7b9969c26.tar.bz2
nixpkgs-51097933ab1413fe6a1e853d39a273a7b9969c26.tar.lz
nixpkgs-51097933ab1413fe6a1e853d39a273a7b9969c26.tar.xz
nixpkgs-51097933ab1413fe6a1e853d39a273a7b9969c26.tar.zst
nixpkgs-51097933ab1413fe6a1e853d39a273a7b9969c26.zip
* Moved test-related stuff from lib/build-vms.nix to lib/testing.nix.
* Factored out some commonality between tests to make them a bit
  simpler to write.  A test is a function { pkgs, ... }: -> { nodes,
  testScript } or { machine, testScript }.  So it's no longer
  necessary to have a "vms" attribute in every test.

svn path=/nixos/trunk/; revision=19220
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix35
1 files changed, 13 insertions, 22 deletions
diff --git a/release.nix b/release.nix
index e12989fa57e..c99131bf3bd 100644
--- a/release.nix
+++ b/release.nix
@@ -111,30 +111,20 @@ let
     minimal_install_archive = {system ? "i686-linux"}: (iso_minimal {inherit system;})
       .config.system.build.minimalInstallArchive;
 
-    tests.subversion =
+    tests = 
       { services ? ../services }:
+      let
+        t = import ./tests { 
+          inherit nixpkgs services;
+          system = "i686-linux";
+        };
+      in {
+        subversion = t.subversion.report;
+        kde4 = t.kde4.test;
+        quake3 = t.quake3.test;
+      };
 
-      (import ./tests/subversion.nix {
-        inherit nixpkgs services;
-        system = "i686-linux";
-      }).report;
-    
-    tests.kde4 =
-      { services ? ../services }:
-
-      (import ./tests/kde4.nix {
-        inherit nixpkgs services;
-        system = "i686-linux";
-      }).test;
-
-    tests.quake3 =
-      { services ? ../services }:
-
-      (import ./tests/quake3.nix {
-        inherit nixpkgs services;
-        system = "i686-linux";
-      }).test;
-
+    /*
     ### tests about installing NixOS
 
     # installs NixOs in a qemu_kvm instance using a tweaked iso.
@@ -142,6 +132,7 @@ let
       (import ./tests/test-nixos-install-from-cd/test.nix {
         inherit nixpkgs;
       }).test;
+    */
 
     # the archive installer can't be tested without chroot which requires being root
     # options: run in kvm or uml ?