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