aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-08 19:23:03 +0900
committerOphestra <cat@gensokyo.uk>2026-11-08 19:23:03 +0900
commit8e27edf2b7b4265e20fec14bc608ea8fc5e51914 (patch)
tree1f1ccd81882b0a4abeade75bd12907ad1d719bab /cmd
parent8c15959571568b231afe1eb3358ca3da7c00b026 (diff)
cmd/hakurei/testsuite: use Rosa OS prefix
This uses the correct prefix when compiled for Rosa OS. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/hakurei/testsuite/main.go2
-rw-r--r--cmd/hakurei/testsuite/prefix.go8
-rw-r--r--cmd/hakurei/testsuite/prefix_rosa.go8
3 files changed, 17 insertions, 1 deletions
diff --git a/cmd/hakurei/testsuite/main.go b/cmd/hakurei/testsuite/main.go
index 4f17a3e3..bb83aac0 100644
--- a/cmd/hakurei/testsuite/main.go
+++ b/cmd/hakurei/testsuite/main.go
@@ -189,7 +189,7 @@ func main() {
"hsu",
"sharefs",
} {
- pathname := fhs.AbsUsr.Append("local/bin", name)
+ pathname := prefix.Append("bin", name)
testsuite.AssertOutput(
"validating "+pathname.String()+" static linking",
"", "\tnot a dynamic executable\n",
diff --git a/cmd/hakurei/testsuite/prefix.go b/cmd/hakurei/testsuite/prefix.go
new file mode 100644
index 00000000..03cf6fd7
--- /dev/null
+++ b/cmd/hakurei/testsuite/prefix.go
@@ -0,0 +1,8 @@
+//go:build !rosa
+
+package main
+
+import "hakurei.app/fhs"
+
+// prefix is the hakurei installation prefix.
+var prefix = fhs.AbsUsr.Append("local")
diff --git a/cmd/hakurei/testsuite/prefix_rosa.go b/cmd/hakurei/testsuite/prefix_rosa.go
new file mode 100644
index 00000000..4a00367f
--- /dev/null
+++ b/cmd/hakurei/testsuite/prefix_rosa.go
@@ -0,0 +1,8 @@
+//go:build rosa
+
+package main
+
+import "hakurei.app/check"
+
+// prefix is the hakurei installation prefix on Rosa OS.
+var prefix = check.MustAbs("/system")