aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/testsuite
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-21 22:44:32 +0900
committerOphestra <cat@gensokyo.uk>2026-11-21 22:44:54 +0900
commit8871bad4d46c73594ae9f3e8c4cc29bd0b87fbff (patch)
treec97c787c636c0f729e1d4acee918240e13a886c6 /internal/testsuite
parentaa285d230942873674473944b6ebef321e853275 (diff)
internal/rosa: run cmd/hakurei/testsuite
This adds a specialised Rosa OS image and runs cmd/hakurei/testsuite in a Rosa OS qemu guest. Emulation for riscv64 and ppc64le is currently broken. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/testsuite')
-rw-r--r--internal/testsuite/testsuite.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/testsuite/testsuite.go b/internal/testsuite/testsuite.go
index 32d5e1ba..5eb0e1d4 100644
--- a/internal/testsuite/testsuite.go
+++ b/internal/testsuite/testsuite.go
@@ -57,7 +57,8 @@ func PopulatePasswd(cred *syscall.Credential) {
if _, err := os.Stat(fhs.Etc + "passwd"); errors.Is(err, os.ErrNotExist) {
if err = os.WriteFile(
fhs.Etc+"passwd",
- []byte("system:x:"+uid+":"+gid+":System user:/proc/nonexistent:/bin/sh\n"),
+ []byte("system:x:"+uid+":"+gid+":System user:/proc/nonexistent:/bin/sh\n"+
+ "nobody:x:65534:65534:nobody:/var/empty:/bin/false\n"),
0444,
); err != nil {
log.Fatal(err)