diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-01 17:00:46 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-01 21:44:30 +0900 |
| commit | 6a144f780ab62a5e6936d8f551dd03f51b11a153 (patch) | |
| tree | d3bb149739945becd2d0330d678f7ada620953f4 /internal/workflows/test.go | |
| parent | a356dceedf0be29ae584866e540872ec1c048f59 (diff) | |
test/sharefs: migrate tests
This runs tests directly in the container, significantly reducing
overhead introduced by virtualisation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/workflows/test.go')
| -rw-r--r-- | internal/workflows/test.go | 35 |
1 files changed, 31 insertions, 4 deletions
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{ |
