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