about summary refs log tree commit diff
path: root/nixos/release.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-06-06 19:25:04 +0200
committerRobert Hensing <robert@roberthensing.nl>2022-06-06 19:25:04 +0200
commit03bcd6fd64ce7aead3fd852118267bd69d4eef50 (patch)
tree5dd5eeccb52cc51fea1b3a58bcc8f70abb0d20df /nixos/release.nix
parent51224f522f7a7d3a00ac2da4ceeedeea296cd2ed (diff)
nixos/release.nix: Add nixos.tests.allDrivers
Diffstat (limited to 'nixos/release.nix')
-rw-r--r--nixos/release.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/release.nix b/nixos/release.nix
index 0df443dd204cb..e0d782bcaec3d 100644
--- a/nixos/release.nix
+++ b/nixos/release.nix
@@ -17,6 +17,7 @@ let
   # Run the tests for each platform.  You can run a test by doing
   # e.g. ‘nix-build -A tests.login.x86_64-linux’, or equivalently,
   # ‘nix-build tests/login.nix -A result’.
+  # See also nixosTests in pkgs/top-level/all-packages.nix
   allTestsForSystem = system:
     import ./tests/all-tests.nix {
       inherit system;
@@ -24,7 +25,19 @@ let
       callTest = t: {
         ${system} = hydraJob t.test;
       };
+    } // {
+      # for typechecking of the scripts and evaluation of
+      # the nodes, without running VMs.
+      allDrivers =
+        import ./tests/all-tests.nix {
+        inherit system;
+        pkgs = import ./.. { inherit system; };
+        callTest = t: {
+          ${system} = hydraJob t.test.driver;
+        };
+      };
     };
+
   allTests =
     foldAttrs recursiveUpdate {} (map allTestsForSystem supportedSystems);