diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-19 19:01:59 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-19 19:01:59 +0000 |
commit | 8e50f17903c2c173c3b812022c8e3e5633a9ada9 (patch) | |
tree | cd8c23851710b747cc9898080eec746eaa6dea0a /yarns/9000-implements.yarn | |
parent | a08e9b1b2a892ebafdc627d099766d859c0b8ae2 (diff) | |
download | obnam-8e50f17903c2c173c3b812022c8e3e5633a9ada9.tar.gz |
Add scenario for testing --keep=4h style schedule
Diffstat (limited to 'yarns/9000-implements.yarn')
-rw-r--r-- | yarns/9000-implements.yarn | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn index f742bdf2..68c852c7 100644 --- a/yarns/9000-implements.yarn +++ b/yarns/9000-implements.yarn @@ -190,7 +190,7 @@ someone else. Add a setting to a client's configuration file. - IMPLEMENTS GIVEN user (\S+) sets configuration (\S+) to (\S+) + IMPLEMENTS GIVEN user (\S+) sets configuration (\S+) to (.*) add_to_config "$MATCH_1" "$MATCH_2" "$MATCH_3" Backing up @@ -332,6 +332,18 @@ Check that there are no checkpoint generations. exit 1 fi +Check timestamps of specific generations. + + IMPLEMENTS THEN user (\S+) has (\d+)(st|nd|rd|th) generation timestamp (.*) in repository (\S+) + run_obnam "$MATCH_1" generations -r "$DATADIR/$MATCH_5" | + sed -n "${MATCH_2}p" | + awk -v "T=$MATCH_4" ' + ($2 " " $3) != T { + print "Fail to match: " $0 + exit 1 + } + ' + Diffs between generations ------------------------- |