aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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")