diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-03-01 10:31:44 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-03-01 10:31:44 +0000 |
commit | 357a6932a7ac63bca382520ef41eda5e67a3e340 (patch) | |
tree | 7a78d60556910b0ceac8e32009002247220635a3 /test-many-generations | |
parent | 0ebf14422651e5d7460de5747516a280f647c6ea (diff) | |
download | obnam-357a6932a7ac63bca382520ef41eda5e67a3e340.tar.gz |
Generate different and random contents every time
Previously, the same data was being generated all the time,
for every generation in every client. This meant that fewer
bugs were caught.
Also, reduce the output volume so that errors are more easily
seen.
Diffstat (limited to 'test-many-generations')
-rwxr-xr-x | test-many-generations | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test-many-generations b/test-many-generations index 141f3995..d50f31d5 100755 --- a/test-many-generations +++ b/test-many-generations @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Obnam test: backup and verify many generations of data. # @@ -41,8 +41,8 @@ EOF seq "$N" | while read gen do - echo "$gen" - genbackupdata --quiet --create="$amount" "$root" + genbackupdata --quiet --create="$amount" "$root" --seed="$RANDOM" + find "$root" -exec touch --date="1970-01-01 00:00:$gen" '{}' ';' ./verification-test backup "$repo" "$root" "$conf" done ./verification-test verify "$repo" "$root" "$conf" |