From 0eb1bc6301591a9d8ebcd348238c2e98ee2a7bc0 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 24 Mar 2025 01:39:31 +0900 Subject: test/sandbox: verify outcome via mountinfo Signed-off-by: Ophestra --- test/sandbox/assert.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/sandbox/assert.nix') diff --git a/test/sandbox/assert.nix b/test/sandbox/assert.nix index 2ab075f4..e3aeb063 100644 --- a/test/sandbox/assert.nix +++ b/test/sandbox/assert.nix @@ -1,6 +1,8 @@ { writeText, buildGoModule, + pkg-config, + util-linux, version, }: @@ -11,6 +13,9 @@ buildGoModule { src = ../.; vendorHash = null; + buildInputs = [ util-linux ]; + nativeBuildInputs = [ pkg-config ]; + preBuild = '' go mod init git.gensokyo.uk/security/fortify/test >& /dev/null cp ${writeText "main.go" '' @@ -19,7 +24,7 @@ buildGoModule { import "os" import "git.gensokyo.uk/security/fortify/test/sandbox" - func main() { (&sandbox.T{FS: os.DirFS("/"), PMountsPath: "/.fortify/mounts"}).MustCheckFile(os.Args[1]) } + func main() { (&sandbox.T{FS: os.DirFS("/")}).MustCheckFile(os.Args[1]) } ''} main.go ''; } -- cgit v1.3.1