2021-04-01 18:21:23 +08:00
|
|
|
test check-filename
|
|
|
|
# Test for --check-filename=.chk_file
|
|
|
|
# The test check-access is a more complete test of the check-access logic.
|
|
|
|
#
|
|
|
|
# 1. See that --check-access passes with the initial setup.
|
|
|
|
# 2. Delete the remote subdir .chk_file, run sync. Should fail critical.
|
|
|
|
# 3. Put the remote subdir .chk_file back, run resync.
|
|
|
|
# 4. Run sync with check-access. Should pass.
|
|
|
|
|
|
|
|
test initial bisync
|
|
|
|
bisync resync
|
|
|
|
|
|
|
|
test 1. see that check-access passes with the initial setup
|
|
|
|
bisync check-access check-filename=.chk_file
|
|
|
|
copy-listings initial-pass
|
|
|
|
|
|
|
|
test 2. delete the remote subdir .chk_file, run sync. should fail critical.
|
|
|
|
delete-file {path2/}subdir/.chk_file
|
|
|
|
bisync check-access check-filename=.chk_file
|
|
|
|
move-listings path2-missing
|
|
|
|
|
|
|
|
test 3. put the remote subdir .chk_file back, run resync.
|
2023-07-11 16:56:12 +08:00
|
|
|
copy-file {path1/}subdir/.chk_file {path2/}subdir/
|
2021-04-01 18:21:23 +08:00
|
|
|
bisync check-access resync check-filename=.chk_file
|
|
|
|
|
|
|
|
test 4. run sync with check-access. should pass.
|
|
|
|
bisync check-access check-filename=.chk_file
|