diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-01 02:11:19 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-01 03:27:02 +0900 |
| commit | 987981df7313d0a121121be36f5c8cf86ffeacd1 (patch) | |
| tree | 90d342687c1da0d8d5a727faaa19786a43f3a962 /test/sandbox/case/default.nix | |
| parent | f14e7255be2cf766a63f08e53f6e1cb48e4d17dc (diff) | |
test/sandbox: check pd behaviour
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/case/default.nix')
| -rw-r--r-- | test/sandbox/case/default.nix | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/test/sandbox/case/default.nix b/test/sandbox/case/default.nix index fa5cca57..6db1ff45 100644 --- a/test/sandbox/case/default.nix +++ b/test/sandbox/case/default.nix @@ -23,17 +23,21 @@ let ; }; + importTestCase = + path: + import path { + inherit + fs + ent + ignore + system + ; + }; + callTestCase = path: identity: let - tc = import path { - inherit - fs - ent - ignore - system - ; - }; + tc = importTestCase path; in { name = "check-sandbox-${tc.name}"; @@ -61,9 +65,13 @@ let testCaseName = name: "cat.gensokyo.hakurei.test." + name; in { - ${testCaseName "preset"} = callTestCase ./preset.nix 1; - ${testCaseName "tty"} = callTestCase ./tty.nix 2; - ${testCaseName "mapuid"} = callTestCase ./mapuid.nix 3; - ${testCaseName "device"} = callTestCase ./device.nix 4; - ${testCaseName "pdlike"} = callTestCase ./pdlike.nix 5; + apps = { + ${testCaseName "preset"} = callTestCase ./preset.nix 1; + ${testCaseName "tty"} = callTestCase ./tty.nix 2; + ${testCaseName "mapuid"} = callTestCase ./mapuid.nix 3; + ${testCaseName "device"} = callTestCase ./device.nix 4; + ${testCaseName "pdlike"} = callTestCase ./pdlike.nix 5; + }; + + pd = importTestCase ./pd.nix; } |
