From 6a144f780ab62a5e6936d8f551dd03f51b11a153 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 1 Oct 2026 17:00:46 +0900 Subject: test/sharefs: migrate tests This runs tests directly in the container, significantly reducing overhead introduced by virtualisation. Signed-off-by: Ophestra --- internal/workflows/test.go | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) (limited to 'internal/workflows/test.go') diff --git a/internal/workflows/test.go b/internal/workflows/test.go index 88e91a22..28307b53 100644 --- a/internal/workflows/test.go +++ b/internal/workflows/test.go @@ -53,12 +53,40 @@ var _ = (&Workflow{ {"sharefs", Job{ Name: "ShareFS", - On: "nix", + On: "rosa", Steps: []Step{ + fixup, checkout, - newNixOSTest("sharefs"), - newUploadArtifact("test output", "sharefs-vm-output"), + toolchain, + + { + Name: "install fuse and fs_mark", + Run: "apt-get update && apt-get install -y fuse3 fsmark", + }, + + newCIRequest("distribution", "dist -o result", "dist"), + install, + + { + Name: "Mount sharefs", + Run: "useradd " + + "-ru 1023 " + + "-md /var/lib/sdcard " + + "-k /var/empty " + + "-s /sbin/nologin " + + "media_rw && install -dm0 /sdcard && " + + "sharefs " + + "-o rw,noexec,nosuid,nodev,noatime," + + "allow_other,mkdir,source=/var/lib/sdcard," + + "setuid=1023,setgid=1023 /sdcard", + }, + + { + Name: "Compile and run test suite", + Run: "sharefs -V && rm -rf result && " + + "go run -tags=testsuite ./test/sharefs ubuntu", + }, }, }}, @@ -71,7 +99,6 @@ var _ = (&Workflow{ "race", "sandbox", "sandbox-race", - "sharefs", }, Steps: []Step{ -- cgit v1.3.1