mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 20:04:52 +01:00
ef2ef8ef84
Summary: In cases where cmount is not available in macOS, we alias nfsmount to mount command and transparently start the NFS server and mount it to the target dir. The NFS server is started on localhost on a random port so it is reasonably secure. Test Plan: ``` go run rclone.go mount --http-url https://beta.rclone.org :http: nfs-test ``` Added mount tests: ``` go test ./cmd/nfsmount ```
16 lines
282 B
Go
16 lines
282 B
Go
//go:build darwin && !cmount
|
|
// +build darwin,!cmount
|
|
|
|
package nfsmount
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/rclone/rclone/vfs/vfscommon"
|
|
"github.com/rclone/rclone/vfs/vfstest"
|
|
)
|
|
|
|
func TestMount(t *testing.T) {
|
|
vfstest.RunTests(t, false, vfscommon.CacheModeMinimal, false, mount)
|
|
}
|