From 75e0c5d4061d68dc4802285ec137e464f4e01b17 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 23 Mar 2025 14:14:45 +0900 Subject: test/sandbox: parse full test case This makes declaring multiple tests much cleaner. Signed-off-by: Ophestra --- test/configuration.nix | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'test/configuration.nix') diff --git a/test/configuration.nix b/test/configuration.nix index f6c3d147..6bdc13ea 100644 --- a/test/configuration.nix +++ b/test/configuration.nix @@ -4,6 +4,12 @@ config, ... }: +let + testCases = import ./sandbox/case { + inherit (pkgs) lib callPackage foot; + inherit (config.environment.fortify.package) version; + }; +in { users.users = { alice = { @@ -102,21 +108,8 @@ home-manager = _: _: { home.stateVersion = "23.05"; }; apps = [ - { - name = "check-sandbox"; - verbose = true; - share = pkgs.foot; - packages = [ ]; - command = "${pkgs.callPackage ./sandbox { - inherit (config.environment.fortify.package) version; - }}"; - extraPaths = [ - { - src = "/proc/mounts"; - dst = "/.fortify/mounts"; - } - ]; - } + testCases.moduleDefault + { name = "ne-foot"; verbose = true; -- cgit v1.3.1