aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-12 23:03:22 +0900
committerOphestra <cat@gensokyo.uk>2025-11-12 23:03:22 +0900
commitb5630f6883c874d458d9ae3c666cfb7ae5e3121d (patch)
treee2c488165211b1f68b9eaef8469d92a81ba37f43
parent17ffdb2dcf3bb5c8edf277a017cecd8e71a2e26b (diff)
test: move package sandbox internal
This should never be used outside vm tests. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--test/internal/sandbox/assert.go (renamed from test/sandbox/assert.go)0
-rw-r--r--test/internal/sandbox/assert_test.go (renamed from test/sandbox/assert_test.go)0
-rw-r--r--test/internal/sandbox/fs.go (renamed from test/sandbox/fs.go)0
-rw-r--r--test/internal/sandbox/fs_test.go (renamed from test/sandbox/fs_test.go)2
-rw-r--r--test/internal/sandbox/mount.go (renamed from test/sandbox/mount.go)0
-rw-r--r--test/internal/sandbox/mount_test.go (renamed from test/sandbox/mount_test.go)2
-rw-r--r--test/internal/sandbox/ptrace.go (renamed from test/sandbox/ptrace.go)0
-rw-r--r--test/internal/sandbox/seccomp.go (renamed from test/sandbox/seccomp.go)0
-rw-r--r--test/sandbox/tool/main.go2
-rw-r--r--test/sandbox/tool/package.nix4
10 files changed, 5 insertions, 5 deletions
diff --git a/test/sandbox/assert.go b/test/internal/sandbox/assert.go
index 82c928b0..82c928b0 100644
--- a/test/sandbox/assert.go
+++ b/test/internal/sandbox/assert.go
diff --git a/test/sandbox/assert_test.go b/test/internal/sandbox/assert_test.go
index efeb7cb3..efeb7cb3 100644
--- a/test/sandbox/assert_test.go
+++ b/test/internal/sandbox/assert_test.go
diff --git a/test/sandbox/fs.go b/test/internal/sandbox/fs.go
index 36d6c6d3..36d6c6d3 100644
--- a/test/sandbox/fs.go
+++ b/test/internal/sandbox/fs.go
diff --git a/test/sandbox/fs_test.go b/test/internal/sandbox/fs_test.go
index 8dd920b0..a7813ee5 100644
--- a/test/sandbox/fs_test.go
+++ b/test/internal/sandbox/fs_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"testing/fstest"
- "hakurei.app/test/sandbox"
+ "hakurei.app/test/internal/sandbox"
)
var (
diff --git a/test/sandbox/mount.go b/test/internal/sandbox/mount.go
index 791a68b9..791a68b9 100644
--- a/test/sandbox/mount.go
+++ b/test/internal/sandbox/mount.go
diff --git a/test/sandbox/mount_test.go b/test/internal/sandbox/mount_test.go
index 7d6b0df1..65bcec43 100644
--- a/test/sandbox/mount_test.go
+++ b/test/internal/sandbox/mount_test.go
@@ -7,7 +7,7 @@ import (
"path"
"testing"
- "hakurei.app/test/sandbox"
+ "hakurei.app/test/internal/sandbox"
)
func TestMountinfo(t *testing.T) {
diff --git a/test/sandbox/ptrace.go b/test/internal/sandbox/ptrace.go
index 8272ff5b..8272ff5b 100644
--- a/test/sandbox/ptrace.go
+++ b/test/internal/sandbox/ptrace.go
diff --git a/test/sandbox/seccomp.go b/test/internal/sandbox/seccomp.go
index 7df781d2..7df781d2 100644
--- a/test/sandbox/seccomp.go
+++ b/test/internal/sandbox/seccomp.go
diff --git a/test/sandbox/tool/main.go b/test/sandbox/tool/main.go
index ef3325de..889142d4 100644
--- a/test/sandbox/tool/main.go
+++ b/test/sandbox/tool/main.go
@@ -12,7 +12,7 @@ import (
"strings"
"syscall"
- "hakurei.app/test/sandbox"
+ "hakurei.app/test/internal/sandbox"
)
var (
diff --git a/test/sandbox/tool/package.nix b/test/sandbox/tool/package.nix
index 92829b29..13e18272 100644
--- a/test/sandbox/tool/package.nix
+++ b/test/sandbox/tool/package.nix
@@ -12,7 +12,7 @@ buildGoModule rec {
src = builtins.path {
name = "${pname}-src";
- path = lib.cleanSource ../.;
+ path = lib.cleanSource ../../.;
filter = path: type: (type == "directory") || (type == "regular" && lib.hasSuffix ".go" path);
};
vendorHash = null;
@@ -23,7 +23,7 @@ buildGoModule rec {
nativeBuildInputs = [ pkg-config ];
preBuild = ''
- go mod init hakurei.app/test/sandbox >& /dev/null
+ go mod init hakurei.app/test >& /dev/null
'';
postInstall = ''