From 7b7a18450491eb063b1e7eb489468257db42ff26 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 6 Dec 2013 14:26:21 +0000 Subject: Add scenario test for forget --keep --- yarns/0040-generations.yarn | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'yarns/0040-generations.yarn') 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 -- cgit v1.2.1