109 $DAV_SYNC_BIN add-tag -s test4a tmp-sync/test4a/file2 mytag |
109 $DAV_SYNC_BIN add-tag -s test4a tmp-sync/test4a/file2 mytag |
110 $DAV_SYNC_BIN add-tag -s test4a tmp-sync/test4a/file2 test1 |
110 $DAV_SYNC_BIN add-tag -s test4a tmp-sync/test4a/file2 test1 |
111 |
111 |
112 $DAV_SYNC_BIN add-tag -s test4a tmp-sync/test4a/dir1/file3 sub |
112 $DAV_SYNC_BIN add-tag -s test4a tmp-sync/test4a/dir1/file3 sub |
113 |
113 |
|
114 |
114 $DAV_SYNC_BIN push test4a -t test1 > tmp-sync/out.txt |
115 $DAV_SYNC_BIN push test4a -t test1 > tmp-sync/out.txt |
115 if [ $? -ne 0 ]; |
116 if [ $? -ne 0 ]; |
116 then |
117 then |
117 echo "test 1: push failed" |
118 echo "test 1: push failed" |
118 exit 2 |
119 exit 2 |
123 |
124 |
124 dav_sync_pull test4b "test 1: pull failed" |
125 dav_sync_pull test4b "test 1: pull failed" |
125 check_tmpout "2 files pulled" "test 1: wrong pull counter" |
126 check_tmpout "2 files pulled" "test 1: wrong pull counter" |
126 check_tmpout "0 conflicts" "test 1: wrong conflict counter (pull)" |
127 check_tmpout "0 conflicts" "test 1: wrong conflict counter (pull)" |
127 check_tmpout "0 errors" "test 1: wrong error counter (pull)" |
128 check_tmpout "0 errors" "test 1: wrong error counter (pull)" |
|
129 |
128 |
130 |
129 cat tmp-sync/test4b/dir1/file3 > /dev/null 2>&1 |
131 cat tmp-sync/test4b/dir1/file3 > /dev/null 2>&1 |
130 if [ $? -eq 0 ]; then |
132 if [ $? -eq 0 ]; then |
131 echo "test 1: file 3 must not be synced" |
133 echo "test 1: file 3 must not be synced" |
132 exit 2 |
134 exit 2 |
153 dav_sync_push test4a "test 3: push failed" |
155 dav_sync_push test4a "test 3: push failed" |
154 check_tmpout "0 conflicts" "test 3: wrong conflict counter (push)" |
156 check_tmpout "0 conflicts" "test 3: wrong conflict counter (push)" |
155 check_tmpout "0 errors" "test 2: wrong error counter (push)" |
157 check_tmpout "0 errors" "test 2: wrong error counter (push)" |
156 check_tmpout "update: /file1" "test 3: file1 not updated (push)" |
158 check_tmpout "update: /file1" "test 3: file1 not updated (push)" |
157 check_tmpout "update: /dir1/file3" "test 3: file3 not updated (push)" |
159 check_tmpout "update: /dir1/file3" "test 3: file3 not updated (push)" |
|
160 |
158 |
161 |
159 $DAV_SYNC_BIN pull test4b -t test3 > tmp-sync/out.txt |
162 $DAV_SYNC_BIN pull test4b -t test3 > tmp-sync/out.txt |
160 if [ $? -ne 0 ]; |
163 if [ $? -ne 0 ]; |
161 then |
164 then |
162 echo "test 3: pull failed" |
165 echo "test 3: pull failed" |