fortify/test/sandbox/case/default.nix
Ophestra b2bbb91f5c
Some checks failed
Test / Create distribution (push) Successful in 25s
Test / Fpkg (push) Successful in 34s
Test / Fortify (push) Failing after 52s
Test / Data race detector (push) Failing after 52s
Test / Flake checks (push) Has been skipped
test: format path aid offsets
Signed-off-by: Ophestra <cat@gensokyo.uk>
2025-03-23 15:50:57 +09:00

57 lines
838 B
Nix

{
lib,
callPackage,
foot,
version,
}:
let
fs = mode: dir: data: {
mode = lib.fromHexString mode;
inherit
dir
data
;
};
ent = fsname: dir: type: opts: freq: passno: {
inherit
fsname
dir
type
opts
freq
passno
;
};
checkSandbox = callPackage ../. { inherit version; };
callTestCase =
path:
let
tc = import path {
inherit
fs
ent
;
};
in
{
name = "check-sandbox-${tc.name}";
verbose = true;
share = foot;
packages = [ ];
command = builtins.toString (checkSandbox tc.name tc.want);
extraPaths = [
{
src = "/proc/mounts";
dst = "/.fortify/mounts";
}
];
};
in
{
preset = callTestCase ./preset.nix;
}