2022-04-24 11:27:28 +02:00
|
|
|
//go:build cmount && ((linux && cgo) || (darwin && cgo) || (freebsd && cgo) || windows) && (!race || !windows)
|
2017-05-19 16:46:13 +02:00
|
|
|
// +build cmount
|
2022-04-24 11:27:28 +02:00
|
|
|
// +build linux,cgo darwin,cgo freebsd,cgo windows
|
2017-11-19 15:18:57 +01:00
|
|
|
// +build !race !windows
|
|
|
|
|
2022-08-28 13:21:57 +02:00
|
|
|
// Package cmount implements a FUSE mounting system for rclone remotes.
|
|
|
|
//
|
2017-11-19 15:18:57 +01:00
|
|
|
// FIXME this doesn't work with the race detector under Windows either
|
|
|
|
// hanging or producing lots of differences.
|
2017-05-02 23:36:11 +02:00
|
|
|
|
|
|
|
package cmount
|
|
|
|
|
|
|
|
import (
|
2022-01-27 10:38:24 +01:00
|
|
|
"runtime"
|
2017-05-02 23:36:11 +02:00
|
|
|
"testing"
|
|
|
|
|
2022-01-27 10:38:24 +01:00
|
|
|
"github.com/rclone/rclone/fstest/testy"
|
2023-10-04 19:33:12 +02:00
|
|
|
"github.com/rclone/rclone/vfs/vfscommon"
|
2020-04-16 14:33:46 +02:00
|
|
|
"github.com/rclone/rclone/vfs/vfstest"
|
2017-05-02 23:36:11 +02:00
|
|
|
)
|
|
|
|
|
2018-04-08 12:18:15 +02:00
|
|
|
func TestMount(t *testing.T) {
|
2022-01-27 10:38:24 +01:00
|
|
|
// Disable tests under macOS and the CI since they are locking up
|
|
|
|
if runtime.GOOS == "darwin" {
|
|
|
|
testy.SkipUnreliable(t)
|
|
|
|
}
|
2023-10-04 19:33:12 +02:00
|
|
|
vfstest.RunTests(t, false, vfscommon.CacheModeOff, true, mount)
|
2018-04-08 12:18:15 +02:00
|
|
|
}
|