github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/cmd/bisync/testdata/test_check_sync/scenario.txt (about) 1 test check-sync 2 # Exercise listing integrity checks 3 # 4 # 1. Run check-sync-only on a clean sync 5 # 2. Copy modified listings into the workdir 6 # 3. Run check-sync-only on modified listings 7 # 4. Run normal sync to check that it critical aborts 8 # 5. Prune failure listings after critical abort 9 # 6. Run resync 10 # 7. Run normal sync with check-sync enabled (default) 11 # 8. Run normal sync with no-check-sync 12 13 test initial bisync 14 bisync resync 15 16 test 1. run check-sync-only on a clean sync 17 bisync check-sync-only 18 19 test 2. inject modified listings into the workdir 20 copy-as {datadir/}_testdir_path1.._testdir_path2.path1.lst {workdir/} {session}.path1.lst 21 copy-as {datadir/}_testdir_path1.._testdir_path2.path2.lst {workdir/} {session}.path2.lst 22 23 test 3. run check-sync-only on modified listings 24 bisync check-sync-only 25 copy-listings check-sync-only 26 27 test 4. run normal sync to check that it aborts 28 bisync 29 30 test 5. prune failure listings after critical abort 31 delete-glob {workdir/} *.lst 32 delete-glob {workdir/} *.lst-err 33 delete-glob {workdir/} *.lst-new 34 35 test 6. run resync 36 bisync resync 37 38 test 7. run normal sync with check-sync enabled (default) 39 bisync 40 41 test 8. run normal sync with no-check-sync 42 bisync no-check-sync