test/sandbox: parse full test case
All checks were successful
Test / Create distribution (push) Successful in 25s
Test / Fortify (push) Successful in 2m37s
Test / Fpkg (push) Successful in 3m52s
Test / Data race detector (push) Successful in 4m12s
Test / Flake checks (push) Successful in 50s

This makes declaring multiple tests much cleaner.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-23 14:14:45 +09:00
parent 770b37ae16
commit 75e0c5d406
12 changed files with 255 additions and 229 deletions

View File

@@ -2,13 +2,12 @@
writeShellScript,
callPackage,
name,
version,
want,
}:
writeShellScript "check-sandbox" ''
writeShellScript "fortify-${name}-check-sandbox-script" ''
set -e
${callPackage ./mount.nix { inherit version; }}/bin/test
${callPackage ./fs.nix { inherit version; }}/bin/test
${callPackage ./seccomp.nix { inherit version; }}/bin/test
${callPackage ./assert.nix { inherit name version want; }}/bin/test
touch /tmp/sandbox-ok
''