test/sandbox: invoke check program directly
All checks were successful
Test / Create distribution (push) Successful in 26s
Test / Fpkg (push) Successful in 34s
Test / Fortify (push) Successful in 40s
Test / Data race detector (push) Successful in 2m47s
Test / Flake checks (push) Successful in 1m4s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-27 03:09:16 +09:00
parent 300571af47
commit 996b42634d
5 changed files with 18 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
{
lib,
callPackage,
writeText,
foot,
version,
@@ -29,7 +30,7 @@ let
;
};
checkSandbox = callPackage ../. { inherit version; };
checkSandbox = callPackage ../assert.nix { inherit version; };
callTestCase =
path:
@@ -48,7 +49,11 @@ let
inherit (tc) tty mapRealUid;
share = foot;
packages = [ ];
command = builtins.toString (checkSandbox tc.name tc.want);
path = "${checkSandbox}/bin/test";
args = [
"test"
(toString (writeText "fortify-${tc.name}-want.json" (builtins.toJSON tc.want)))
];
};
in
{