mount_test.go 703 B

1234567891011121314151617181920212223242526
  1. //go:build cmount && ((linux && cgo) || (darwin && cgo) || (freebsd && cgo) || windows) && (!race || !windows)
  2. // Package cmount implements a FUSE mounting system for rclone remotes.
  3. //
  4. // FIXME this doesn't work with the race detector under Windows either
  5. // hanging or producing lots of differences.
  6. package cmount
  7. import (
  8. "runtime"
  9. "testing"
  10. "github.com/rclone/rclone/fstest/testy"
  11. "github.com/rclone/rclone/vfs/vfscommon"
  12. "github.com/rclone/rclone/vfs/vfstest"
  13. )
  14. func TestMount(t *testing.T) {
  15. // Disable tests under macOS and the CI since they are locking up
  16. if runtime.GOOS == "darwin" {
  17. testy.SkipUnreliable(t)
  18. }
  19. vfstest.RunTests(t, false, vfscommon.CacheModeOff, true, mount)
  20. }