diff options
Diffstat (limited to 'test/sandbox/assert.nix')
| -rw-r--r-- | test/sandbox/assert.nix | 7 |
1 files changed, 6 insertions, 1 deletions
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 ''; } |
