From 49d2ab512d168aa5b17230c4fd0bf0991258b45d Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 1 May 2019 11:46:42 +0100 Subject: [PATCH] test_all: run restic integration tests against local backend --- fstest/test_all/config.go | 4 ++++ fstest/test_all/config.yaml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/fstest/test_all/config.go b/fstest/test_all/config.go index 06c9666b0..29c9130e7 100644 --- a/fstest/test_all/config.go +++ b/fstest/test_all/config.go @@ -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, diff --git a/fstest/test_all/config.yaml b/fstest/test_all/config.yaml index 70e08de6e..d5909e93a 100644 --- a/fstest/test_all/config.yaml +++ b/fstest/test_all/config.yaml @@ -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