276 dav_sync_push test4a "test 5: push failed" |
276 dav_sync_push test4a "test 5: push failed" |
277 check_tmpout "0 files pushed" "test 5: wrong push counter" |
277 check_tmpout "0 files pushed" "test 5: wrong push counter" |
278 check_tmpout "0 conflicts" "test 5: wrong conflict counter (push)" |
278 check_tmpout "0 conflicts" "test 5: wrong conflict counter (push)" |
279 check_tmpout "0 errors" "test 5: wrong error counter (push)" |
279 check_tmpout "0 errors" "test 5: wrong error counter (push)" |
280 LN=`cat tmp-sync/out.txt | wc -l` |
280 LN=`cat tmp-sync/out.txt | wc -l` |
281 if [ "$LN" != "1" ]; then |
281 if [ $LN -ne 1 ]; then |
282 echo "test 5: wrong output (push)" |
282 echo "test 5: wrong output (push)" |
283 exit 2 |
283 exit 2 |
284 fi |
284 fi |
285 |
285 |
286 dav_sync_pull test4b "test 5: pull failed" |
286 dav_sync_pull test4b "test 5: pull failed" |
287 check_tmpout "0 files pulled" "test 5: wrong pull counter" |
287 check_tmpout "0 files pulled" "test 5: wrong pull counter" |
288 check_tmpout "0 conflicts" "test 5: wrong conflict counter (pull)" |
288 check_tmpout "0 conflicts" "test 5: wrong conflict counter (pull)" |
289 check_tmpout "0 errors" "test 5: wrong error counter (pull)" |
289 check_tmpout "0 errors" "test 5: wrong error counter (pull)" |
290 LN=`cat tmp-sync/out.txt | wc -l` |
290 LN=`cat tmp-sync/out.txt | wc -l` |
291 if [ "$LN" != "1" ]; then |
291 if [ $LN -ne 1 ]; then |
292 echo "test 5: wrong output (pull)" |
292 echo "test 5: wrong output (pull)" |
293 exit 2 |
293 exit 2 |
294 fi |
294 fi |
295 |
295 |
296 |
296 |
338 dav_sync_push test4a "test 7: push failed" |
338 dav_sync_push test4a "test 7: push failed" |
339 check_tmpout "0 files pushed" "test 7: wrong push counter" |
339 check_tmpout "0 files pushed" "test 7: wrong push counter" |
340 check_tmpout "0 conflicts" "test 7: wrong conflict counter (push)" |
340 check_tmpout "0 conflicts" "test 7: wrong conflict counter (push)" |
341 check_tmpout "0 errors" "test 7: wrong error counter (push)" |
341 check_tmpout "0 errors" "test 7: wrong error counter (push)" |
342 LN=`cat tmp-sync/out.txt | wc -l` |
342 LN=`cat tmp-sync/out.txt | wc -l` |
343 if [ "$LN" != "1" ]; then |
343 if [ $LN -ne 1 ]; then |
344 echo "test 7: wrong output (push)" |
344 echo "test 7: wrong output (push)" |
345 exit 2 |
345 exit 2 |
346 fi |
346 fi |
347 |
347 |
348 dav_sync_pull test4b "test 7: pull failed" |
348 dav_sync_pull test4b "test 7: pull failed" |
349 check_tmpout "0 files pulled" "test 7: wrong pull counter" |
349 check_tmpout "0 files pulled" "test 7: wrong pull counter" |
350 check_tmpout "0 conflicts" "test 7: wrong conflict counter (pull)" |
350 check_tmpout "0 conflicts" "test 7: wrong conflict counter (pull)" |
351 check_tmpout "0 errors" "test 7: wrong error counter (pull)" |
351 check_tmpout "0 errors" "test 7: wrong error counter (pull)" |
352 LN=`cat tmp-sync/out.txt | wc -l` |
352 LN=`cat tmp-sync/out.txt | wc -l` |
353 if [ "$LN" != "1" ]; then |
353 if [ $LN -ne 1 ]; then |
354 echo "test 7: wrong output (pull)" |
354 echo "test 7: wrong output (pull)" |
355 exit 2 |
355 exit 2 |
356 fi |
356 fi |
357 |
357 |
358 |
358 |
394 dav_sync_push test4a "test 9: push failed" |
394 dav_sync_push test4a "test 9: push failed" |
395 check_tmpout "0 files pushed" "test 9: wrong push counter" |
395 check_tmpout "0 files pushed" "test 9: wrong push counter" |
396 check_tmpout "0 conflicts" "test 9: wrong conflict counter (push)" |
396 check_tmpout "0 conflicts" "test 9: wrong conflict counter (push)" |
397 check_tmpout "0 errors" "test 9: wrong error counter (push)" |
397 check_tmpout "0 errors" "test 9: wrong error counter (push)" |
398 LN=`cat tmp-sync/out.txt | wc -l` |
398 LN=`cat tmp-sync/out.txt | wc -l` |
399 if [ "$LN" != "1" ]; then |
399 if [ $LN -ne 1 ]; then |
400 echo "test 9: wrong output (push)" |
400 echo "test 9: wrong output (push)" |
401 exit 2 |
401 exit 2 |
402 fi |
402 fi |
403 |
403 |
404 dav_sync_pull test4b "test 9: pull failed" |
404 dav_sync_pull test4b "test 9: pull failed" |
405 check_tmpout "0 files pulled" "test 9: wrong pull counter" |
405 check_tmpout "0 files pulled" "test 9: wrong pull counter" |
406 check_tmpout "0 conflicts" "test 9: wrong conflict counter (pull)" |
406 check_tmpout "0 conflicts" "test 9: wrong conflict counter (pull)" |
407 check_tmpout "0 errors" "test 9: wrong error counter (pull)" |
407 check_tmpout "0 errors" "test 9: wrong error counter (pull)" |
408 LN=`cat tmp-sync/out.txt | wc -l` |
408 LN=`cat tmp-sync/out.txt | wc -l` |
409 if [ "$LN" != "1" ]; then |
409 if [ $LN -ne 1 ]; then |
410 echo "test 9: wrong output (pull)" |
410 echo "test 9: wrong output (pull)" |
411 exit 2 |
411 exit 2 |
412 fi |
412 fi |
413 |
413 |
414 |
414 |
457 dav_sync_push test4a "test 11: push failed" |
457 dav_sync_push test4a "test 11: push failed" |
458 check_tmpout "0 files pushed" "test 11: wrong push counter" |
458 check_tmpout "0 files pushed" "test 11: wrong push counter" |
459 check_tmpout "0 conflicts" "test 11: wrong conflict counter (push)" |
459 check_tmpout "0 conflicts" "test 11: wrong conflict counter (push)" |
460 check_tmpout "0 errors" "test 11: wrong error counter (push)" |
460 check_tmpout "0 errors" "test 11: wrong error counter (push)" |
461 LN=`cat tmp-sync/out.txt | wc -l` |
461 LN=`cat tmp-sync/out.txt | wc -l` |
462 if [ "$LN" != "1" ]; then |
462 if [ $LN -ne 1 ]; then |
463 echo "test 11: wrong output (push)" |
463 echo "test 11: wrong output (push)" |
464 exit 2 |
464 exit 2 |
465 fi |
465 fi |
466 |
466 |
467 dav_sync_pull test4b "test 11: pull failed" |
467 dav_sync_pull test4b "test 11: pull failed" |
468 check_tmpout "0 files pulled" "test 11: wrong pull counter" |
468 check_tmpout "0 files pulled" "test 11: wrong pull counter" |
469 check_tmpout "0 conflicts" "test 11: wrong conflict counter (pull)" |
469 check_tmpout "0 conflicts" "test 11: wrong conflict counter (pull)" |
470 check_tmpout "0 errors" "test 11: wrong error counter (pull)" |
470 check_tmpout "0 errors" "test 11: wrong error counter (pull)" |
471 LN=`cat tmp-sync/out.txt | wc -l` |
471 LN=`cat tmp-sync/out.txt | wc -l` |
472 if [ "$LN" != "1" ]; then |
472 if [ $LN -ne 1 ]; then |
473 echo "test 11: wrong output (pull)" |
473 echo "test 11: wrong output (pull)" |
474 exit 2 |
474 exit 2 |
475 fi |
475 fi |
476 |
476 |
477 |
477 |
490 dav_sync_pull test4a "test 12: pull failed" |
490 dav_sync_pull test4a "test 12: pull failed" |
491 check_tmpout "0 files pulled" "test 12: wrong pull counter" |
491 check_tmpout "0 files pulled" "test 12: wrong pull counter" |
492 check_tmpout "0 conflicts" "test 12: wrong conflict counter (pull)" |
492 check_tmpout "0 conflicts" "test 12: wrong conflict counter (pull)" |
493 check_tmpout "0 errors" "test 12: wrong error counter (pull)" |
493 check_tmpout "0 errors" "test 12: wrong error counter (pull)" |
494 LN=`cat tmp-sync/out.txt | wc -l` |
494 LN=`cat tmp-sync/out.txt | wc -l` |
495 if [ "$LN" != "1" ]; then |
495 if [ $LN -ne 1 ]; then |
496 echo "test 12: wrong output (pull)" |
496 echo "test 12: wrong output (pull)" |
497 exit 2 |
497 exit 2 |
498 fi |
498 fi |
499 |
499 |
500 |
500 |
528 check_tmpout "0 conflicts" "test 14: wrong conflict counter (pull)" |
528 check_tmpout "0 conflicts" "test 14: wrong conflict counter (pull)" |
529 check_tmpout "0 errors" "test 14: wrong error counter (pull)" |
529 check_tmpout "0 errors" "test 14: wrong error counter (pull)" |
530 check_tmpout "update: /file4" "test 14: file 4 not pulled" |
530 check_tmpout "update: /file4" "test 14: file 4 not pulled" |
531 |
531 |
532 LN=`$DAV_SYNC_BIN list-tags -s test4b tmp-sync/test4b/file4 | wc -l` |
532 LN=`$DAV_SYNC_BIN list-tags -s test4b tmp-sync/test4b/file4 | wc -l` |
533 if [ "$LN" != "0" ]; then |
533 if [ $LN -ne 0 ]; then |
534 echo "test 14: wrong tag count" |
534 echo "test 14: wrong tag count" |
535 exit 2 |
535 exit 2 |
536 fi |
536 fi |
537 |
537 |