2016-01-23 16:43:49 +00:00
|
|
|
// DO NOT EDIT, AUTOMATICALLY GENERATED
|
2016-01-23 16:08:03 +00:00
|
|
|
package local_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/restic/restic/backend/test"
|
|
|
|
)
|
|
|
|
|
2016-01-23 17:30:02 +00:00
|
|
|
var SkipMessage string
|
|
|
|
|
|
|
|
func TestLocalBackendCreate(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestCreate(t)
|
2016-01-23 17:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestLocalBackendOpen(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestOpen(t)
|
2016-01-23 17:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestLocalBackendCreateWithConfig(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestCreateWithConfig(t)
|
2016-01-23 17:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestLocalBackendLocation(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestLocation(t)
|
2016-01-23 17:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestLocalBackendConfig(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestConfig(t)
|
2016-01-23 17:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestLocalBackendLoad(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestLoad(t)
|
2016-01-23 17:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestLocalBackendWrite(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestWrite(t)
|
2016-01-23 17:30:02 +00:00
|
|
|
}
|
|
|
|
|
2016-01-23 18:12:02 +00:00
|
|
|
func TestLocalBackendBackend(t *testing.T) {
|
2016-01-23 17:30:02 +00:00
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestBackend(t)
|
2016-01-23 17:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestLocalBackendDelete(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestDelete(t)
|
2016-01-23 17:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestLocalBackendCleanup(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestCleanup(t)
|
2016-01-23 17:30:02 +00:00
|
|
|
}
|