github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/cmd/bisync/testdata/test_equal/scenario.txt (about)

     1  test equal
     2  # Check that changed files on both sides are renamed ONLY if not-identical
     3  # See: https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=1.%20Identical%20files%20should%20be%20left%20alone%2C%20even%20if%20new/newer/changed%20on%20both%20sides
     4  # - Changed on Path2 and on Path1, and NOT identical       file1 (file1r, file1l)
     5  # - Changed on Path2 and on Path1, and identical           file2
     6  
     7  test initial bisync
     8  bisync resync
     9  
    10  test changed on both paths and NOT identical - file1 (file1R, file1L)
    11  touch-glob 2001-01-02 {datadir/} file1R.txt
    12  copy-as {datadir/}file1R.txt {path2/} file1.txt
    13  touch-glob 2001-03-04 {datadir/} file1L.txt
    14  copy-as {datadir/}file1L.txt {path1/} file1.txt
    15  
    16  test changed on both paths and identical - file2
    17  touch-glob 2001-01-02 {datadir/} file2.txt
    18  copy-as {datadir/}file2.txt {path1/} file2.txt
    19  copy-as {datadir/}file2.txt {path2/} file2.txt
    20  
    21  test bisync run
    22  bisync