github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/cmd/bisync/testdata/test_check_filename/scenario.txt (about) 1 test check-filename 2 # Test for --check-filename=.chk_file 3 # The test check-access is a more complete test of the check-access logic. 4 # 5 # 1. See that --check-access passes with the initial setup. 6 # 2. Delete the remote subdir .chk_file, run sync. Should fail critical. 7 # 3. Put the remote subdir .chk_file back, run resync. 8 # 4. Run sync with check-access. Should pass. 9 10 test initial bisync 11 bisync resync 12 13 test 1. see that check-access passes with the initial setup 14 bisync check-access check-filename=.chk_file 15 copy-listings initial-pass 16 17 test 2. delete the remote subdir .chk_file, run sync. should fail critical. 18 delete-file {path2/}subdir/.chk_file 19 bisync check-access check-filename=.chk_file 20 move-listings path2-missing 21 22 test 3. put the remote subdir .chk_file back, run resync. 23 copy-file {path1/}subdir/.chk_file {path2/}subdir/ 24 bisync check-access resync check-filename=.chk_file 25 26 test 4. run sync with check-access. should pass. 27 bisync check-access check-filename=.chk_file