2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-25 14:17:42 +00:00

Add 'fsck' to tests

This commit is contained in:
Alexander Neumann 2014-11-30 22:43:34 +01:00
parent 172b7bf123
commit 87c36b2cfb
2 changed files with 3 additions and 0 deletions

View File

@ -5,4 +5,5 @@ run khepri init
run khepri backup "${BASE}/fake-data" run khepri backup "${BASE}/fake-data"
run khepri restore "$(basename "$KHEPRI_REPOSITORY"/snapshots/*)" "${BASE}/fake-data-restore" run khepri restore "$(basename "$KHEPRI_REPOSITORY"/snapshots/*)" "${BASE}/fake-data-restore"
dirdiff "${BASE}/fake-data" "${BASE}/fake-data-restore/fake-data" dirdiff "${BASE}/fake-data" "${BASE}/fake-data-restore/fake-data"
run khepri fsck all
cleanup cleanup

View File

@ -35,6 +35,8 @@ for i in {1..3}; do
OLD_PWD=bar$i OLD_PWD=bar$i
done done
KHEPRI_PASSWORD=$OLD_PWD run khepri fsck all
cleanup cleanup
FAILED=0 FAILED=0