mirror of
https://github.com/rclone/rclone
synced 2024-11-23 00:06:55 +01:00
test_all: run restic integration tests against local backend
This commit is contained in:
parent
9df322e889
commit
49d2ab512d
@ -22,6 +22,7 @@ type Test struct {
|
||||
AddBackend bool // set if Path needs the current backend appending
|
||||
NoRetries bool // set if no retries should be performed
|
||||
NoBinary bool // set to not build a binary in advance
|
||||
LocalOnly bool // if set only run with the local backend
|
||||
}
|
||||
|
||||
// Backend describes a backend test
|
||||
@ -55,6 +56,9 @@ func (b *Backend) MakeRuns(t *Test) (runs []*Run) {
|
||||
}
|
||||
for _, subdir := range subdirs {
|
||||
for _, fastlist := range fastlists {
|
||||
if t.LocalOnly && b.Backend != "local" {
|
||||
continue
|
||||
}
|
||||
run := &Run{
|
||||
Remote: b.Remote,
|
||||
Backend: b.Backend,
|
||||
|
@ -9,11 +9,17 @@ tests:
|
||||
subdir: true
|
||||
fastlist: true
|
||||
- path: vfs
|
||||
- path: cmd/serve/restic
|
||||
localonly: true
|
||||
backends:
|
||||
# - backend: "amazonclouddrive"
|
||||
# remote: "TestAmazonCloudDrive:"
|
||||
# subdir: false
|
||||
# fastlist: false
|
||||
- backend: "local"
|
||||
remote: ""
|
||||
subdir: false
|
||||
fastlist: false
|
||||
- backend: "b2"
|
||||
remote: "TestB2:"
|
||||
subdir: true
|
||||
|
Loading…
Reference in New Issue
Block a user