summaryrefslogtreecommitdiff
path: root/yarns/0040-generations.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-12-06 14:26:21 +0000
committerLars Wirzenius <liw@liw.fi>2013-12-06 14:26:21 +0000
commit7b7a18450491eb063b1e7eb489468257db42ff26 (patch)
tree09f0cbcc970efc65c48967f98556ee6e2e12194c /yarns/0040-generations.yarn
parent66f76936ebb423c1c165755352f90f9df64433bd (diff)
downloadobnam-7b7a18450491eb063b1e7eb489468257db42ff26.tar.gz
Add scenario test for forget --keep
Diffstat (limited to 'yarns/0040-generations.yarn')
-rw-r--r--yarns/0040-generations.yarn13
1 files changed, 12 insertions, 1 deletions
diff --git a/yarns/0040-generations.yarn b/yarns/0040-generations.yarn
index ccf9994f..4c9bf896 100644
--- a/yarns/0040-generations.yarn
+++ b/yarns/0040-generations.yarn
@@ -125,5 +125,16 @@ checking that the remaining one is the one we want.
Forgetting generations according to a schedule (`obnam forget --keep`)
-------------------------------------------------------------
-FIXME.
+The normal way of forgetting generations is with the `obnam forget
+--keep` option.
+ SCENARIO remove generations according to schedule
+ GIVEN 1kB of new data in directory L
+ WHEN user backs up directory L
+ GIVEN 1kB of new data in directory L
+ AND a manifest of directory L in M
+ WHEN user backs up directory L
+ AND user forgets according to schedule 1y
+ THEN user sees 1 generation
+ WHEN user restores their latest generation into X
+ THEN L, restored to X, matches manifest M