Move all backends into backend directory

This commit is contained in:
Nick Craig-Wood
2018-01-12 17:07:38 +00:00
parent 0a7731cf0d
commit b8b620f5c2
143 changed files with 88 additions and 87 deletions
+3 -3
View File
@@ -63,10 +63,10 @@ package {{ .FsName }}_test
import (
"testing"
"github.com/ncw/rclone/backend/{{ .FsName }}"
"github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/{{ .FsName }}"
{{ if (or (eq .FsName "crypt") (eq .FsName "cache")) }} _ "github.com/ncw/rclone/local"
{{ if (or (eq .FsName "crypt") (eq .FsName "cache")) }} _ "github.com/ncw/rclone/backend/local"
{{end}})
func TestSetup{{ .Suffix }}(t *testing.T)() {
@@ -106,7 +106,7 @@ func generateTestProgram(t *template.Template, fns []string, Fsname string, opti
}
data.TestName = "Test" + data.UpperFsName + data.Suffix + ":"
outfile := "../../" + data.FsName + "/" + data.FsName + data.Suffix + "_test.go"
outfile := "../../backend/" + data.FsName + "/" + data.FsName + data.Suffix + "_test.go"
if data.FsName == "local" {
data.TestName = ""