diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-07 20:11:29 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-07 20:11:29 +0900 |
| commit | 2b44493e8a255b40a9809208f5c751ca7c539027 (patch) | |
| tree | bac9737a7a8817e2693fd6d0c0666c308588d2c8 /test | |
| parent | c30dd4e630005fa6f2409d3a3c2400d512c52042 (diff) | |
test/sandbox: guard on testtool tag
This tool should not show up when building hakurei normally.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test')
| -rw-r--r-- | test/sandbox/assert.go | 2 | ||||
| -rw-r--r-- | test/sandbox/assert_test.go | 2 | ||||
| -rw-r--r-- | test/sandbox/fs.go | 2 | ||||
| -rw-r--r-- | test/sandbox/fs_test.go | 2 | ||||
| -rw-r--r-- | test/sandbox/mount.go | 2 | ||||
| -rw-r--r-- | test/sandbox/mount_test.go | 2 | ||||
| -rw-r--r-- | test/sandbox/ptrace.go | 2 | ||||
| -rw-r--r-- | test/sandbox/seccomp.go | 2 | ||||
| -rw-r--r-- | test/sandbox/tool/main.go | 2 | ||||
| -rw-r--r-- | test/sandbox/tool/package.nix | 2 |
10 files changed, 20 insertions, 0 deletions
diff --git a/test/sandbox/assert.go b/test/sandbox/assert.go index e00bc5d1..388d2328 100644 --- a/test/sandbox/assert.go +++ b/test/sandbox/assert.go @@ -1,3 +1,5 @@ +//go:build testtool + /* Package sandbox provides utilities for checking sandbox outcome. diff --git a/test/sandbox/assert_test.go b/test/sandbox/assert_test.go index c3fb5800..efeb7cb3 100644 --- a/test/sandbox/assert_test.go +++ b/test/sandbox/assert_test.go @@ -1,3 +1,5 @@ +//go:build testtool + package sandbox import ( diff --git a/test/sandbox/fs.go b/test/sandbox/fs.go index 2aa3aa5d..36d6c6d3 100644 --- a/test/sandbox/fs.go +++ b/test/sandbox/fs.go @@ -1,3 +1,5 @@ +//go:build testtool + package sandbox import ( diff --git a/test/sandbox/fs_test.go b/test/sandbox/fs_test.go index 44868723..8dd920b0 100644 --- a/test/sandbox/fs_test.go +++ b/test/sandbox/fs_test.go @@ -1,3 +1,5 @@ +//go:build testtool + package sandbox_test import ( diff --git a/test/sandbox/mount.go b/test/sandbox/mount.go index 29405722..791a68b9 100644 --- a/test/sandbox/mount.go +++ b/test/sandbox/mount.go @@ -1,3 +1,5 @@ +//go:build testtool + package sandbox /* diff --git a/test/sandbox/mount_test.go b/test/sandbox/mount_test.go index 43970b29..7d6b0df1 100644 --- a/test/sandbox/mount_test.go +++ b/test/sandbox/mount_test.go @@ -1,3 +1,5 @@ +//go:build testtool + package sandbox_test import ( diff --git a/test/sandbox/ptrace.go b/test/sandbox/ptrace.go index b6e4130e..3f1acad5 100644 --- a/test/sandbox/ptrace.go +++ b/test/sandbox/ptrace.go @@ -1,3 +1,5 @@ +//go:build testtool + package sandbox import ( diff --git a/test/sandbox/seccomp.go b/test/sandbox/seccomp.go index 8ef59c98..7df781d2 100644 --- a/test/sandbox/seccomp.go +++ b/test/sandbox/seccomp.go @@ -1,3 +1,5 @@ +//go:build testtool + package sandbox import ( diff --git a/test/sandbox/tool/main.go b/test/sandbox/tool/main.go index 77310744..f53950ce 100644 --- a/test/sandbox/tool/main.go +++ b/test/sandbox/tool/main.go @@ -1,3 +1,5 @@ +//go:build testtool + package main import ( diff --git a/test/sandbox/tool/package.nix b/test/sandbox/tool/package.nix index 43e21ca5..92829b29 100644 --- a/test/sandbox/tool/package.nix +++ b/test/sandbox/tool/package.nix @@ -17,6 +17,8 @@ buildGoModule rec { }; vendorHash = null; + tags = [ "testtool" ]; + buildInputs = [ util-linux ]; nativeBuildInputs = [ pkg-config ]; |
