forked from TrueCloudLab/rclone
fstest: remove -subdir flag as it no longer tests anything useful #3421
This commit is contained in:
parent
ba0e1ea6ae
commit
af3c47d282
12 changed files with 34 additions and 101 deletions
|
@ -118,7 +118,7 @@ but they can be run against any of the remotes.
|
||||||
|
|
||||||
cd fs/sync
|
cd fs/sync
|
||||||
go test -v -remote TestDrive:
|
go test -v -remote TestDrive:
|
||||||
go test -v -remote TestDrive: -subdir
|
go test -v -remote TestDrive: -fast-list
|
||||||
|
|
||||||
cd fs/operations
|
cd fs/operations
|
||||||
go test -v -remote TestDrive:
|
go test -v -remote TestDrive:
|
||||||
|
@ -362,9 +362,7 @@ Or if you want to run the integration tests manually:
|
||||||
* `go test -v -remote TestRemote:`
|
* `go test -v -remote TestRemote:`
|
||||||
* `cd fs/sync`
|
* `cd fs/sync`
|
||||||
* `go test -v -remote TestRemote:`
|
* `go test -v -remote TestRemote:`
|
||||||
* If you are making a bucket based remote, then check with this also
|
* If your remote defines `ListR` check with this also
|
||||||
* `go test -v -remote TestRemote: -subdir`
|
|
||||||
* And if your remote defines `ListR` this also
|
|
||||||
* `go test -v -remote TestRemote: -fast-list`
|
* `go test -v -remote TestRemote: -fast-list`
|
||||||
|
|
||||||
See the [testing](#testing) section for more information on integration tests.
|
See the [testing](#testing) section for more information on integration tests.
|
||||||
|
|
|
@ -115,7 +115,7 @@ func newRun() *Run {
|
||||||
fstest.Initialise()
|
fstest.Initialise()
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
r.fremote, r.fremoteName, r.cleanRemote, err = fstest.RandomRemote(*fstest.RemoteName, *fstest.SubDir)
|
r.fremote, r.fremoteName, r.cleanRemote, err = fstest.RandomRemote()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to open remote %q: %v", *fstest.RemoteName, err)
|
log.Fatalf("Failed to open remote %q: %v", *fstest.RemoteName, err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ func TestRestic(t *testing.T) {
|
||||||
|
|
||||||
fstest.Initialise()
|
fstest.Initialise()
|
||||||
|
|
||||||
fremote, _, clean, err := fstest.RandomRemote(*fstest.RemoteName, *fstest.SubDir)
|
fremote, _, clean, err := fstest.RandomRemote()
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
defer clean()
|
defer clean()
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ type StartFn func(f fs.Fs) (configmap.Simple, func())
|
||||||
func run(t *testing.T, name string, start StartFn, useProxy bool) {
|
func run(t *testing.T, name string, start StartFn, useProxy bool) {
|
||||||
fstest.Initialise()
|
fstest.Initialise()
|
||||||
|
|
||||||
fremote, _, clean, err := fstest.RandomRemote(*fstest.RemoteName, *fstest.SubDir)
|
fremote, _, clean, err := fstest.RandomRemote()
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
defer clean()
|
defer clean()
|
||||||
|
|
||||||
|
|
|
@ -250,7 +250,7 @@ func TestServerSideCopy(t *testing.T) {
|
||||||
file1 := r.WriteObject(context.Background(), "sub dir/hello world", "hello world", t1)
|
file1 := r.WriteObject(context.Background(), "sub dir/hello world", "hello world", t1)
|
||||||
fstest.CheckItems(t, r.Fremote, file1)
|
fstest.CheckItems(t, r.Fremote, file1)
|
||||||
|
|
||||||
FremoteCopy, _, finaliseCopy, err := fstest.RandomRemote(*fstest.RemoteName, *fstest.SubDir)
|
FremoteCopy, _, finaliseCopy, err := fstest.RandomRemote()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
defer finaliseCopy()
|
defer finaliseCopy()
|
||||||
t.Logf("Server side copy (if possible) %v -> %v", r.Fremote, FremoteCopy)
|
t.Logf("Server side copy (if possible) %v -> %v", r.Fremote, FremoteCopy)
|
||||||
|
@ -1026,7 +1026,7 @@ func TestSyncWithTrackRenames(t *testing.T) {
|
||||||
|
|
||||||
// Test a server side move if possible, or the backup path if not
|
// Test a server side move if possible, or the backup path if not
|
||||||
func testServerSideMove(t *testing.T, r *fstest.Run, withFilter, testDeleteEmptyDirs bool) {
|
func testServerSideMove(t *testing.T, r *fstest.Run, withFilter, testDeleteEmptyDirs bool) {
|
||||||
FremoteMove, _, finaliseMove, err := fstest.RandomRemote(*fstest.RemoteName, *fstest.SubDir)
|
FremoteMove, _, finaliseMove, err := fstest.RandomRemote()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
defer finaliseMove()
|
defer finaliseMove()
|
||||||
|
|
||||||
|
@ -1066,7 +1066,7 @@ func testServerSideMove(t *testing.T, r *fstest.Run, withFilter, testDeleteEmpty
|
||||||
fstest.CheckItems(t, FremoteMove, file2, file1, file3u)
|
fstest.CheckItems(t, FremoteMove, file2, file1, file3u)
|
||||||
|
|
||||||
// Create a new empty remote for stuff to be moved into
|
// Create a new empty remote for stuff to be moved into
|
||||||
FremoteMove2, _, finaliseMove2, err := fstest.RandomRemote(*fstest.RemoteName, *fstest.SubDir)
|
FremoteMove2, _, finaliseMove2, err := fstest.RandomRemote()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
defer finaliseMove2()
|
defer finaliseMove2()
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,6 @@ import (
|
||||||
// Globals
|
// Globals
|
||||||
var (
|
var (
|
||||||
RemoteName = flag.String("remote", "", "Remote to test with, defaults to local filesystem")
|
RemoteName = flag.String("remote", "", "Remote to test with, defaults to local filesystem")
|
||||||
SubDir = flag.Bool("subdir", false, "Set to test with a sub directory")
|
|
||||||
Verbose = flag.Bool("verbose", false, "Set to enable logging")
|
Verbose = flag.Bool("verbose", false, "Set to enable logging")
|
||||||
DumpHeaders = flag.Bool("dump-headers", false, "Set to dump headers (needs -verbose)")
|
DumpHeaders = flag.Bool("dump-headers", false, "Set to dump headers (needs -verbose)")
|
||||||
DumpBodies = flag.Bool("dump-bodies", false, "Set to dump bodies (needs -verbose)")
|
DumpBodies = flag.Bool("dump-bodies", false, "Set to dump bodies (needs -verbose)")
|
||||||
|
@ -439,28 +438,22 @@ func RandomRemoteName(remoteName string) (string, string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// RandomRemote makes a random bucket or subdirectory on the remote
|
// RandomRemote makes a random bucket or subdirectory on the remote
|
||||||
|
// from the -remote parameter
|
||||||
//
|
//
|
||||||
// Call the finalise function returned to Purge the fs at the end (and
|
// Call the finalise function returned to Purge the fs at the end (and
|
||||||
// the parent if necessary)
|
// the parent if necessary)
|
||||||
//
|
//
|
||||||
// Returns the remote, its url, a finaliser and an error
|
// Returns the remote, its url, a finaliser and an error
|
||||||
func RandomRemote(remoteName string, subdir bool) (fs.Fs, string, func(), error) {
|
func RandomRemote() (fs.Fs, string, func(), error) {
|
||||||
var err error
|
var err error
|
||||||
var parentRemote fs.Fs
|
var parentRemote fs.Fs
|
||||||
|
remoteName := *RemoteName
|
||||||
|
|
||||||
remoteName, _, err = RandomRemoteName(remoteName)
|
remoteName, _, err = RandomRemoteName(remoteName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, "", nil, err
|
return nil, "", nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if subdir {
|
|
||||||
parentRemote, err = fs.NewFs(remoteName)
|
|
||||||
if err != nil {
|
|
||||||
return nil, "", nil, err
|
|
||||||
}
|
|
||||||
remoteName += "/rclone-test-subdir-" + random.String(8)
|
|
||||||
}
|
|
||||||
|
|
||||||
remote, err := fs.NewFs(remoteName)
|
remote, err := fs.NewFs(remoteName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, "", nil, err
|
return nil, "", nil, err
|
||||||
|
|
|
@ -349,6 +349,7 @@ func Run(t *testing.T, opt *Opt) {
|
||||||
if *fstest.RemoteName != "" {
|
if *fstest.RemoteName != "" {
|
||||||
remoteName = *fstest.RemoteName
|
remoteName = *fstest.RemoteName
|
||||||
}
|
}
|
||||||
|
fstest.RemoteName = &remoteName
|
||||||
t.Logf("Using remote %q", remoteName)
|
t.Logf("Using remote %q", remoteName)
|
||||||
var err error
|
var err error
|
||||||
if remoteName == "" {
|
if remoteName == "" {
|
||||||
|
@ -1117,7 +1118,7 @@ func Run(t *testing.T, opt *Opt) {
|
||||||
require.Equal(t, fs.ErrorDirExists, err)
|
require.Equal(t, fs.ErrorDirExists, err)
|
||||||
|
|
||||||
// new remote
|
// new remote
|
||||||
newRemote, _, removeNewRemote, err := fstest.RandomRemote(remoteName, false)
|
newRemote, _, removeNewRemote, err := fstest.RandomRemote()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
defer removeNewRemote()
|
defer removeNewRemote()
|
||||||
|
|
||||||
|
@ -1422,7 +1423,7 @@ func Run(t *testing.T, opt *Opt) {
|
||||||
require.NotEqual(t, "", link3, "Link should not be empty")
|
require.NotEqual(t, "", link3, "Link should not be empty")
|
||||||
|
|
||||||
// sharing the "root" directory in a subremote
|
// sharing the "root" directory in a subremote
|
||||||
subRemote, _, removeSubRemote, err := fstest.RandomRemote(remoteName, false)
|
subRemote, _, removeSubRemote, err := fstest.RandomRemote()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
defer removeSubRemote()
|
defer removeSubRemote()
|
||||||
// ensure sub remote isn't empty
|
// ensure sub remote isn't empty
|
||||||
|
|
|
@ -90,7 +90,7 @@ func newRun() *Run {
|
||||||
Initialise()
|
Initialise()
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
r.Fremote, r.FremoteName, r.cleanRemote, err = RandomRemote(*RemoteName, *SubDir)
|
r.Fremote, r.FremoteName, r.cleanRemote, err = RandomRemote()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
r.Fatalf("Failed to open remote %q: %v", *RemoteName, err)
|
r.Fatalf("Failed to open remote %q: %v", *RemoteName, err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@ import (
|
||||||
// Test describes an integration test to run with `go test`
|
// Test describes an integration test to run with `go test`
|
||||||
type Test struct {
|
type Test struct {
|
||||||
Path string // path to the source directory
|
Path string // path to the source directory
|
||||||
SubDir bool // if it is possible to add -sub-dir to tests
|
|
||||||
FastList bool // if it is possible to add -fast-list to tests
|
FastList bool // if it is possible to add -fast-list to tests
|
||||||
AddBackend bool // set if Path needs the current backend appending
|
AddBackend bool // set if Path needs the current backend appending
|
||||||
NoRetries bool // set if no retries should be performed
|
NoRetries bool // set if no retries should be performed
|
||||||
|
@ -31,7 +30,6 @@ type Test struct {
|
||||||
type Backend struct {
|
type Backend struct {
|
||||||
Backend string // name of the backend directory
|
Backend string // name of the backend directory
|
||||||
Remote string // name of the test remote
|
Remote string // name of the test remote
|
||||||
SubDir bool // set to test with -sub-dir
|
|
||||||
FastList bool // set to test with -fast-list
|
FastList bool // set to test with -fast-list
|
||||||
OneOnly bool // set to run only one backend test at once
|
OneOnly bool // set to run only one backend test at once
|
||||||
Ignore []string // test names to ignore the failure of
|
Ignore []string // test names to ignore the failure of
|
||||||
|
@ -54,16 +52,12 @@ func (b *Backend) includeTest(t *Test) bool {
|
||||||
|
|
||||||
// MakeRuns creates Run objects the Backend and Test
|
// MakeRuns creates Run objects the Backend and Test
|
||||||
//
|
//
|
||||||
// There can be several created, one for each combination of SubDir
|
// There can be several created, one for each combination of optionl
|
||||||
// and FastList
|
// flags (eg FastList)
|
||||||
func (b *Backend) MakeRuns(t *Test) (runs []*Run) {
|
func (b *Backend) MakeRuns(t *Test) (runs []*Run) {
|
||||||
if !b.includeTest(t) {
|
if !b.includeTest(t) {
|
||||||
return runs
|
return runs
|
||||||
}
|
}
|
||||||
subdirs := []bool{false}
|
|
||||||
if b.SubDir && t.SubDir {
|
|
||||||
subdirs = append(subdirs, true)
|
|
||||||
}
|
|
||||||
fastlists := []bool{false}
|
fastlists := []bool{false}
|
||||||
if b.FastList && t.FastList {
|
if b.FastList && t.FastList {
|
||||||
fastlists = append(fastlists, true)
|
fastlists = append(fastlists, true)
|
||||||
|
@ -72,27 +66,24 @@ func (b *Backend) MakeRuns(t *Test) (runs []*Run) {
|
||||||
for _, item := range b.Ignore {
|
for _, item := range b.Ignore {
|
||||||
ignore[item] = struct{}{}
|
ignore[item] = struct{}{}
|
||||||
}
|
}
|
||||||
for _, subdir := range subdirs {
|
for _, fastlist := range fastlists {
|
||||||
for _, fastlist := range fastlists {
|
if t.LocalOnly && b.Backend != "local" {
|
||||||
if t.LocalOnly && b.Backend != "local" {
|
continue
|
||||||
continue
|
|
||||||
}
|
|
||||||
run := &Run{
|
|
||||||
Remote: b.Remote,
|
|
||||||
Backend: b.Backend,
|
|
||||||
Path: t.Path,
|
|
||||||
SubDir: subdir,
|
|
||||||
FastList: fastlist,
|
|
||||||
NoRetries: t.NoRetries,
|
|
||||||
OneOnly: b.OneOnly,
|
|
||||||
NoBinary: t.NoBinary,
|
|
||||||
Ignore: ignore,
|
|
||||||
}
|
|
||||||
if t.AddBackend {
|
|
||||||
run.Path = path.Join(run.Path, b.Backend)
|
|
||||||
}
|
|
||||||
runs = append(runs, run)
|
|
||||||
}
|
}
|
||||||
|
run := &Run{
|
||||||
|
Remote: b.Remote,
|
||||||
|
Backend: b.Backend,
|
||||||
|
Path: t.Path,
|
||||||
|
FastList: fastlist,
|
||||||
|
NoRetries: t.NoRetries,
|
||||||
|
OneOnly: b.OneOnly,
|
||||||
|
NoBinary: t.NoBinary,
|
||||||
|
Ignore: ignore,
|
||||||
|
}
|
||||||
|
if t.AddBackend {
|
||||||
|
run.Path = path.Join(run.Path, b.Backend)
|
||||||
|
}
|
||||||
|
runs = append(runs, run)
|
||||||
}
|
}
|
||||||
return runs
|
return runs
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,10 +3,8 @@ tests:
|
||||||
addbackend: true
|
addbackend: true
|
||||||
nobinary: true
|
nobinary: true
|
||||||
- path: fs/operations
|
- path: fs/operations
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- path: fs/sync
|
- path: fs/sync
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- path: vfs
|
- path: vfs
|
||||||
- path: cmd/serve/restic
|
- path: cmd/serve/restic
|
||||||
|
@ -14,35 +12,27 @@ tests:
|
||||||
backends:
|
backends:
|
||||||
# - backend: "amazonclouddrive"
|
# - backend: "amazonclouddrive"
|
||||||
# remote: "TestAmazonCloudDrive:"
|
# remote: "TestAmazonCloudDrive:"
|
||||||
# subdir: false
|
|
||||||
# fastlist: false
|
# fastlist: false
|
||||||
- backend: "local"
|
- backend: "local"
|
||||||
remote: ""
|
remote: ""
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "b2"
|
- backend: "b2"
|
||||||
remote: "TestB2:"
|
remote: "TestB2:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "crypt"
|
- backend: "crypt"
|
||||||
remote: "TestCryptDrive:"
|
remote: "TestCryptDrive:"
|
||||||
subdir: false
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "crypt"
|
- backend: "crypt"
|
||||||
remote: "TestCryptSwift:"
|
remote: "TestCryptSwift:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "drive"
|
- backend: "drive"
|
||||||
remote: "TestDrive:"
|
remote: "TestDrive:"
|
||||||
subdir: false
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "dropbox"
|
- backend: "dropbox"
|
||||||
remote: "TestDropbox:"
|
remote: "TestDropbox:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "googlecloudstorage"
|
- backend: "googlecloudstorage"
|
||||||
remote: "TestGoogleCloudStorage:"
|
remote: "TestGoogleCloudStorage:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "googlephotos"
|
- backend: "googlephotos"
|
||||||
remote: "TestGooglePhotos:"
|
remote: "TestGooglePhotos:"
|
||||||
|
@ -50,114 +40,88 @@ backends:
|
||||||
- backend
|
- backend
|
||||||
- backend: "hubic"
|
- backend: "hubic"
|
||||||
remote: "TestHubic:"
|
remote: "TestHubic:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "jottacloud"
|
- backend: "jottacloud"
|
||||||
remote: "TestJottacloud:"
|
remote: "TestJottacloud:"
|
||||||
subdir: false
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "onedrive"
|
- backend: "onedrive"
|
||||||
remote: "TestOneDrive:"
|
remote: "TestOneDrive:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "s3"
|
- backend: "s3"
|
||||||
remote: "TestS3:"
|
remote: "TestS3:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "s3"
|
- backend: "s3"
|
||||||
remote: "TestS3Minio:"
|
remote: "TestS3Minio:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "s3"
|
- backend: "s3"
|
||||||
remote: "TestS3Wasabi:"
|
remote: "TestS3Wasabi:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "s3"
|
- backend: "s3"
|
||||||
remote: "TestS3DigitalOcean:"
|
remote: "TestS3DigitalOcean:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
ignore:
|
ignore:
|
||||||
- TestIntegration/FsMkdir/FsPutFiles/FsCopy
|
- TestIntegration/FsMkdir/FsPutFiles/FsCopy
|
||||||
- backend: "s3"
|
- backend: "s3"
|
||||||
remote: "TestS3Ceph:"
|
remote: "TestS3Ceph:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
ignore:
|
ignore:
|
||||||
- TestIntegration/FsMkdir/FsPutFiles/FsCopy
|
- TestIntegration/FsMkdir/FsPutFiles/FsCopy
|
||||||
- backend: "s3"
|
- backend: "s3"
|
||||||
remote: "TestS3Alibaba:"
|
remote: "TestS3Alibaba:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "sftp"
|
- backend: "sftp"
|
||||||
remote: "TestSftp:"
|
remote: "TestSftp:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "swift"
|
- backend: "swift"
|
||||||
remote: "TestSwift:"
|
remote: "TestSwift:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "swift"
|
- backend: "swift"
|
||||||
remote: "TestSwiftCeph:"
|
remote: "TestSwiftCeph:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
ignore:
|
ignore:
|
||||||
- TestIntegration/FsMkdir/FsPutFiles/FsCopy
|
- TestIntegration/FsMkdir/FsPutFiles/FsCopy
|
||||||
- backend: "yandex"
|
- backend: "yandex"
|
||||||
remote: "TestYandex:"
|
remote: "TestYandex:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "ftp"
|
- backend: "ftp"
|
||||||
remote: "TestFTP:"
|
remote: "TestFTP:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "box"
|
- backend: "box"
|
||||||
remote: "TestBox:"
|
remote: "TestBox:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "fichier"
|
- backend: "fichier"
|
||||||
remote: "TestFichier:"
|
remote: "TestFichier:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "qingstor"
|
- backend: "qingstor"
|
||||||
remote: "TestQingStor:"
|
remote: "TestQingStor:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
oneonly: true
|
oneonly: true
|
||||||
- backend: "azureblob"
|
- backend: "azureblob"
|
||||||
remote: "TestAzureBlob:"
|
remote: "TestAzureBlob:"
|
||||||
subdir: true
|
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- backend: "pcloud"
|
- backend: "pcloud"
|
||||||
remote: "TestPcloud:"
|
remote: "TestPcloud:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "webdav"
|
- backend: "webdav"
|
||||||
remote: "TestWebdav:"
|
remote: "TestWebdav:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "cache"
|
- backend: "cache"
|
||||||
remote: "TestCache:"
|
remote: "TestCache:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "mega"
|
- backend: "mega"
|
||||||
remote: "TestMega:"
|
remote: "TestMega:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
ignore:
|
ignore:
|
||||||
- TestIntegration/FsMkdir/FsPutFiles/PublicLink
|
- TestIntegration/FsMkdir/FsPutFiles/PublicLink
|
||||||
- backend: "opendrive"
|
- backend: "opendrive"
|
||||||
remote: "TestOpenDrive:"
|
remote: "TestOpenDrive:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "union"
|
- backend: "union"
|
||||||
remote: "TestUnion:"
|
remote: "TestUnion:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "koofr"
|
- backend: "koofr"
|
||||||
remote: "TestKoofr:"
|
remote: "TestKoofr:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
- backend: "premiumizeme"
|
- backend: "premiumizeme"
|
||||||
remote: "TestPremiumizeMe:"
|
remote: "TestPremiumizeMe:"
|
||||||
subdir: false
|
|
||||||
fastlist: false
|
fastlist: false
|
||||||
|
|
|
@ -208,7 +208,6 @@ a:focus {
|
||||||
<th>Backend</th>
|
<th>Backend</th>
|
||||||
<th>Remote</th>
|
<th>Remote</th>
|
||||||
<th>Test</th>
|
<th>Test</th>
|
||||||
<th>SubDir</th>
|
|
||||||
<th>FastList</th>
|
<th>FastList</th>
|
||||||
<th>Failed</th>
|
<th>Failed</th>
|
||||||
<th>Logs</th>
|
<th>Logs</th>
|
||||||
|
@ -220,7 +219,6 @@ a:focus {
|
||||||
<td>{{ if ne $prevBackend .Backend }}{{ .Backend }}{{ end }}{{ $prevBackend = .Backend }}</td>
|
<td>{{ if ne $prevBackend .Backend }}{{ .Backend }}{{ end }}{{ $prevBackend = .Backend }}</td>
|
||||||
<td>{{ if ne $prevRemote .Remote }}{{ .Remote }}{{ end }}{{ $prevRemote = .Remote }}</td>
|
<td>{{ if ne $prevRemote .Remote }}{{ .Remote }}{{ end }}{{ $prevRemote = .Remote }}</td>
|
||||||
<td>{{ .Path }}</td>
|
<td>{{ .Path }}</td>
|
||||||
<td><span class="{{ .SubDir }}">{{ .SubDir }}</span></td>
|
|
||||||
<td><span class="{{ .FastList }}">{{ .FastList }}</span></td>
|
<td><span class="{{ .FastList }}">{{ .FastList }}</span></td>
|
||||||
<td>{{ .FailedTests }}</td>
|
<td>{{ .FailedTests }}</td>
|
||||||
<td>{{ range $i, $v := .Logs }}<a href="{{ $v }}">#{{ $i }}</a> {{ end }}</td>
|
<td>{{ range $i, $v := .Logs }}<a href="{{ $v }}">#{{ $i }}</a> {{ end }}</td>
|
||||||
|
|
|
@ -38,7 +38,6 @@ type Run struct {
|
||||||
Remote string // name of the test remote
|
Remote string // name of the test remote
|
||||||
Backend string // name of the backend
|
Backend string // name of the backend
|
||||||
Path string // path to the source directory
|
Path string // path to the source directory
|
||||||
SubDir bool // add -sub-dir to tests
|
|
||||||
FastList bool // add -fast-list to tests
|
FastList bool // add -fast-list to tests
|
||||||
NoRetries bool // don't retry if set
|
NoRetries bool // don't retry if set
|
||||||
OneOnly bool // only run test for this backend at once
|
OneOnly bool // only run test for this backend at once
|
||||||
|
@ -80,11 +79,6 @@ func (rs Runs) Less(i, j int) bool {
|
||||||
} else if a.Path > b.Path {
|
} else if a.Path > b.Path {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if !a.SubDir && b.SubDir {
|
|
||||||
return true
|
|
||||||
} else if a.SubDir && !b.SubDir {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if !a.FastList && b.FastList {
|
if !a.FastList && b.FastList {
|
||||||
return true
|
return true
|
||||||
} else if a.FastList && !b.FastList {
|
} else if a.FastList && !b.FastList {
|
||||||
|
@ -311,9 +305,6 @@ func (r *Run) Name() string {
|
||||||
strings.Replace(r.Path, "/", ".", -1),
|
strings.Replace(r.Path, "/", ".", -1),
|
||||||
r.Remote,
|
r.Remote,
|
||||||
}
|
}
|
||||||
if r.SubDir {
|
|
||||||
ns = append(ns, "subdir")
|
|
||||||
}
|
|
||||||
if r.FastList {
|
if r.FastList {
|
||||||
ns = append(ns, "fastlist")
|
ns = append(ns, "fastlist")
|
||||||
}
|
}
|
||||||
|
@ -341,9 +332,6 @@ func (r *Run) Init() {
|
||||||
if *runOnly != "" {
|
if *runOnly != "" {
|
||||||
r.cmdLine = append(r.cmdLine, prefix+"run", *runOnly)
|
r.cmdLine = append(r.cmdLine, prefix+"run", *runOnly)
|
||||||
}
|
}
|
||||||
if r.SubDir {
|
|
||||||
r.cmdLine = append(r.cmdLine, "-subdir")
|
|
||||||
}
|
|
||||||
if r.FastList {
|
if r.FastList {
|
||||||
r.cmdLine = append(r.cmdLine, "-fast-list")
|
r.cmdLine = append(r.cmdLine, "-fast-list")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue