aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/workflows/test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/workflows/test.go')
-rw-r--r--internal/workflows/test.go35
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{