diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-01-07 18:37:38 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-01-07 18:37:38 +0000 |
commit | 26fe42ce716705c897c080497db75b8c6617b9c1 (patch) | |
tree | 08284bb35e4170a35947e0ad86b2511b7c28e37b /yarns/0200-repo-formats.yarn | |
parent | c3322c5c3fd72eea276f91619e6b8101a9ea8545 (diff) | |
download | obnam-26fe42ce716705c897c080497db75b8c6617b9c1.tar.gz |
Add test case for restoring in-tree data
This test does not currently pass.
Diffstat (limited to 'yarns/0200-repo-formats.yarn')
-rw-r--r-- | yarns/0200-repo-formats.yarn | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/yarns/0200-repo-formats.yarn b/yarns/0200-repo-formats.yarn index 56848b38..4e00393a 100644 --- a/yarns/0200-repo-formats.yarn +++ b/yarns/0200-repo-formats.yarn @@ -22,16 +22,32 @@ Each tar archive will contain a directory `repo`, which is the backup repository, and `manifest-1` and `manifest-2`, which are the manifests for the first and second generation. -Repository format 6 (Obnam verison 1.0) +Repository format 6 (Obnam version 1.0) --------------------------------------- +The repository format 6 is the one used for the 1.0 release of Obnam. +We have two variants of reference repositories: a normal one, and one +using the miserable `--small-files-in-btree` option. It's miserable, +because it complicates the code but doesn't actually make anything +better. + +First, the normal one reference repository. + SCENARIO use repository format 6 GIVEN unpacked test data from test-data/repo-format-6-encrypted-deflated.tar.xz in T WHEN user restores generation 1 in T/repo to R1 THEN restored data in R1 matches T/manifest-1 + WHEN user restores generation 2 in T/repo to R2 + THEN restored data in R2 matches T/manifest-2 + +Then, the in-tree repository. -X WHEN user restores generation 2 in T/repo to R2 -X THEN restored data in R2 matches T/manifest-2 + SCENARIO use repository format 6 with in-tree data + GIVEN unpacked test data from test-data/repo-format-6-in-tree-data.tar.xz in T + WHEN user restores generation 1 in T/repo to R1 + THEN restored data in R1 matches T/manifest-1 + WHEN user restores generation 2 in T/repo to R2 + THEN restored data in R2 matches T/manifest-2 Implementations --------------- |