From 55b3baa54a9b5253a3de90f1917808582cd5fa94 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 23 Nov 2024 10:24:56 +0100 Subject: tests(tests): Initialize infrastructure and documentation for it --- tests/default.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/default.nix (limited to 'tests/default.nix') 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 -- cgit 1.4.1