about summary refs log tree commit diff stats
path: root/tests/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-23 10:24:56 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-23 10:25:15 +0100
commit55b3baa54a9b5253a3de90f1917808582cd5fa94 (patch)
tree132b997514bfb50668c92d3e5d72f45e01dfee27 /tests/default.nix
parentbuild(flake): Update (diff)
downloadnixos-config-55b3baa54a9b5253a3de90f1917808582cd5fa94.tar.gz
nixos-config-55b3baa54a9b5253a3de90f1917808582cd5fa94.zip
tests(tests): Initialize infrastructure and documentation for it
Diffstat (limited to '')
-rw-r--r--tests/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/default.nix b/tests/default.nix
new file mode 100644
index 00000000..9803c99c
--- /dev/null
+++ b/tests/default.nix
@@ -0,0 +1,33 @@
+{
+  lib,
+  pkgs,
+  myPkgs,
+  nixpkgs_as_input,
+  extraModules,
+}: let
+  nixLib = import ../lib {};
+
+  mkTest = import ./infrastructure {
+    inherit
+      pkgs
+      lib
+      nixos-lib
+      myPkgs
+      extraModules
+      ;
+  };
+
+  nixos-lib = import (nixpkgs_as_input + "/nixos/lib") {};
+
+  tests = nixLib.mkByName {
+    baseDirectory = ./by-name;
+    fileName = "test.nix";
+    finalizeFunction = name: value:
+      import value {
+        inherit
+          mkTest
+          ;
+      };
+  };
+in
+  tests