aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/dbus/proc_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-07-25 00:43:22 +0900
committerOphestra <cat@gensokyo.uk>2025-07-25 00:45:10 +0900
commite71ae3b8c5b4a8f103a078783fef2f56ee5450a2 (patch)
treee6b7a87006563da8c360ca248e261a7fe7e2820f /system/dbus/proc_test.go
parent9d7a19d162e7003ce89804f00c526b77b2328baa (diff)
container: remove custom cmd initialisation
This part of the interface is very unintuitive and only used for testing, even in testing it is inelegant and can be done better. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/dbus/proc_test.go')
-rw-r--r--system/dbus/proc_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/system/dbus/proc_test.go b/system/dbus/proc_test.go
new file mode 100644
index 00000000..5e93ace2
--- /dev/null
+++ b/system/dbus/proc_test.go
@@ -0,0 +1,17 @@
+package dbus_test
+
+import (
+ "os"
+ "testing"
+
+ "hakurei.app/container"
+ "hakurei.app/helper"
+ "hakurei.app/internal"
+ "hakurei.app/internal/hlog"
+)
+
+func TestMain(m *testing.M) {
+ container.TryArgv0(hlog.Output{}, hlog.Prepare, internal.InstallOutput)
+ helper.InternalHelperStub()
+ os.Exit(m.Run())
+}