diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-03-05 22:24:51 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-03-05 22:24:51 +0000 |
commit | f1ce9640f043f5b91d1965cdbb698862da38de78 (patch) | |
tree | b66da96b2de54616837ef79e852b88b4de759ce1 /test-many-generations | |
parent | 5bdf1ee2512e1334d2489360a65cbab48979b64b (diff) | |
download | obnam-f1ce9640f043f5b91d1965cdbb698862da38de78.tar.gz |
Allow access to backup repository via sftp
Separate the URL for obnam's access to the repository,
and the directory pathname for the test scripts' access.
Diffstat (limited to 'test-many-generations')
-rwxr-xr-x | test-many-generations | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test-many-generations b/test-many-generations index ed07e047..e680587b 100755 --- a/test-many-generations +++ b/test-many-generations @@ -25,11 +25,12 @@ die() exit 1 } -[ "$#" = 3 ] || die "Bad usage, read source!" +[ "$#" = 4 ] || die "Bad usage, read source!" N="$1" -repo="$2" -client="$3" +repourl="$2" +repopath="$3" +client="$4" root="$(mktemp -d)" amount="1k" @@ -40,6 +41,8 @@ client-name = $client quiet = yes log = $client.log trace = obnamlib +repository = $repourl +root = $root EOF seq "$N" | @@ -47,12 +50,12 @@ while read gen do genbackupdata --quiet --create="$amount" "$root" --seed="$RANDOM" find "$root" -exec touch --date="1970-01-01 00:00:$gen" '{}' ';' - ./verification-test backup "$repo" "$root" "$conf" + ./verification-test backup "$repopath" "$root" "$conf" done while true do - ./verification-test verify "$repo" "$root" "$conf" + ./verification-test verify "$repopath" "$root" "$conf" ret="$?" if [ "$ret" = 0 ] then |