From cfb79fc07a9c0ba3ec93a0f25b5e02369b281cc8 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 5 Dec 2013 19:30:15 +0000 Subject: Add scenario for obnam diff --- yarns/0040-generations.yarn | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'yarns/0040-generations.yarn') diff --git a/yarns/0040-generations.yarn b/yarns/0040-generations.yarn index d592faca..a5ac5fa2 100644 --- a/yarns/0040-generations.yarn +++ b/yarns/0040-generations.yarn @@ -78,7 +78,27 @@ line for that. Comparing generations (`obnam diff`) ------------------------------------ -FIXME. +Once we've backed up two generations, we need to be able to see the +difference. First of all, the diff should be empty when the +generations are identical: + + SCENARIO diff identical generations + GIVEN 1K of new data in directory L + WHEN user backs up directory L + AND user backs up directory L + AND user diffs generations 1 and 2 into D + THEN file D is empty + +If we make a change to the data, that should be reflected in the diff. +We'll assume the diff works, we'll just check whether it's empty. + + SCENARIO diff modified generations + GIVEN 1K of new data in directory L + WHEN user backs up directory L + GIVEN 1K of new data in directory L + WHEN user backs up directory L + AND user diffs generations 1 and 2 into D + THEN file D is not empty Forgetting a specific generation (`obnam forget`) -------------------------------- -- cgit v1.2.1