diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-12-05 19:30:15 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-12-05 19:30:15 +0000 |
commit | cfb79fc07a9c0ba3ec93a0f25b5e02369b281cc8 (patch) | |
tree | 5ed5f5b901aff9acea2e7b056d9b182045825158 /yarns/0040-generations.yarn | |
parent | f3c06b927f9ae95f9d921050bc50f52228a28761 (diff) | |
download | obnam-cfb79fc07a9c0ba3ec93a0f25b5e02369b281cc8.tar.gz |
Add scenario for obnam diff
Diffstat (limited to 'yarns/0040-generations.yarn')
-rw-r--r-- | yarns/0040-generations.yarn | 22 |
1 files changed, 21 insertions, 1 deletions
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`) -------------------------------- |