From 8e27edf2b7b4265e20fec14bc608ea8fc5e51914 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 8 Nov 2026 19:23:03 +0900 Subject: cmd/hakurei/testsuite: use Rosa OS prefix This uses the correct prefix when compiled for Rosa OS. Signed-off-by: Ophestra --- cmd/hakurei/testsuite/main.go | 2 +- cmd/hakurei/testsuite/prefix.go | 8 ++++++++ cmd/hakurei/testsuite/prefix_rosa.go | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 cmd/hakurei/testsuite/prefix.go create mode 100644 cmd/hakurei/testsuite/prefix_rosa.go (limited to 'cmd') 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") -- cgit v1.3.1