232 # because there will be some optimizations maybe |
232 # because there will be some optimizations maybe |
233 check_tmpout "0 files pushed" "push8: wrong push counter" |
233 check_tmpout "0 files pushed" "push8: wrong push counter" |
234 check_tmpout "0 conflicts" "push8: wrong conflict counter" |
234 check_tmpout "0 conflicts" "push8: wrong conflict counter" |
235 check_tmpout "0 errors" "push8: wrong error counter" |
235 check_tmpout "0 errors" "push8: wrong error counter" |
236 |
236 |
237 OUT=`grep "delete: /dir_a/" tmp-sync/out.txt` |
237 check_tmpout "delete: /dir_a/" "missing: delete /dir_a/" |
238 if [ $? -ne 0 ]; |
238 check_tmpout "delete: /dir_b/i/t6f2-i" "missing: delete: /dir_b/i/t6f2-i" |
239 then |
239 check_tmpout "delete: /dir_b/1/2/3/4/5/6/7/8/t6f1-8" "missing: delete: /dir_b/1/2/3/4/5/6/7/8/t6f1-8" |
240 echo "missing: delete /dir_a/" |
240 |
241 exit 2 |
241 # 10. test |
242 fi |
242 # delete everything |
243 OUT=`grep "delete: /dir_b/i/t6f2-i" tmp-sync/out.txt` |
243 # collection is empty |
244 if [ $? -ne 0 ]; |
244 rm -Rf tmp-sync/test1a/* |
245 then |
245 dav_sync_push test1a "push 10 failed" |
246 echo "missing: delete: /dir_b/i/t6f2-i" |
246 |
247 exit 2 |
247 check_tmpout "0 conflicts" "push10: wrong conflict counter" |
248 fi |
248 check_tmpout "0 errors" "push10: wrong error counter" |
249 OUT=`grep "delete: /dir_b/1/2/3/4/5/6/7/8/t6f1-8" tmp-sync/out.txt` |
249 |
250 if [ $? -ne 0 ]; |
250 OUT=`dav list dav-test-repo/sync/test1/ | wc -l` |
251 then |
251 if [ $? -ne 0 ]; then |
252 echo "missing: delete: /dir_b/1/2/3/4/5/6/7/8/t6f1-8" |
252 echo "push 10: dav list failed" |
253 exit 2 |
253 exit 2 |
254 fi |
254 fi |
255 |
255 if [ "$OUT" != "0" ]; |
256 |
256 then |
257 |
257 echo "push 10: dav-test-repo/sync/test1/ not empty" |
|
258 exit 2 |
|
259 fi |