Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

test: add build constraints to Unix-only files (#11712)

Martijn Hoekstra1076ebdf4aea
diff --git a/test/fuse_dlm/dlm_concurrent_write_test.go b/test/fuse_dlm/dlm_concurrent_write_test.go
index 5f844e622d..c56cbac739 100644
--- a/test/fuse_dlm/dlm_concurrent_write_test.go
+++ b/test/fuse_dlm/dlm_concurrent_write_test.go
@@ -1,3 +1,5 @@
+//go:build linux || darwin
+
package fuse_dlm
import (
diff --git a/test/fuse_dlm/framework_test.go b/test/fuse_dlm/framework_test.go
index 69f4dbfd8f..fbc76414f2 100644
--- a/test/fuse_dlm/framework_test.go
+++ b/test/fuse_dlm/framework_test.go
@@ -1,3 +1,5 @@
+//go:build linux || darwin
+
package fuse_dlm
import (
diff --git a/test/fuse_dlm/posix_lock_ring_test.go b/test/fuse_dlm/posix_lock_ring_test.go
index 62210c3fb3..0874fe969d 100644
--- a/test/fuse_dlm/posix_lock_ring_test.go
+++ b/test/fuse_dlm/posix_lock_ring_test.go
@@ -1,3 +1,5 @@
+//go:build linux || darwin
+
package fuse_dlm
import (
diff --git a/test/fuse_p2p/peer_chunk_sharing_test.go b/test/fuse_p2p/peer_chunk_sharing_test.go
index c64bc0c7f8..8daf0e1445 100644
--- a/test/fuse_p2p/peer_chunk_sharing_test.go
+++ b/test/fuse_p2p/peer_chunk_sharing_test.go
@@ -1,3 +1,5 @@
+//go:build linux || darwin
+
package fuse_p2p
import (
diff --git a/unmaintained/check_disk_size/check_disk_size.go b/unmaintained/check_disk_size/check_disk_size.go
index 4a8b92b887..c0e78f0e99 100644
--- a/unmaintained/check_disk_size/check_disk_size.go
+++ b/unmaintained/check_disk_size/check_disk_size.go
@@ -1,3 +1,5 @@
+//go:build !windows && !openbsd && !netbsd && !plan9 && !solaris
+
package main
import (