diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-23 14:14:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-23 14:53:50 +0900 |
| commit | 75e0c5d4061d68dc4802285ec137e464f4e01b17 (patch) | |
| tree | b8307fa68188bac4c522afc36c27a5c1fb7c02da /test/configuration.nix | |
| parent | 770b37ae166a18f495865e96ccafc6f9fb9f4e88 (diff) | |
test/sandbox: parse full test case
This makes declaring multiple tests much cleaner.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/configuration.nix')
| -rw-r--r-- | test/configuration.nix | 23 |
1 files changed, 8 insertions, 15 deletions
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; |
