test/bin-test/test-dav-sync-pull1.sh

changeset 627
81e066c9ff87
parent 625
e1a85fbf68f9
child 671
5256d7eb69e7
equal deleted inserted replaced
626:2f735b0e87fa 627:81e066c9ff87
377 # expected result: 0 errors, everything deleted 377 # expected result: 0 errors, everything deleted
378 378
379 rm -Rf tmp-sync/test1a/dir_a 379 rm -Rf tmp-sync/test1a/dir_a
380 380
381 dav_sync_push test1a 381 dav_sync_push test1a
382 bash 382
383 dav_sync_pull test1b 383 dav_sync_pull test1b
384 check_tmpout "0 errors" "test10: wrong error counter" 384 check_tmpout "0 errors" "test10: wrong error counter"
385 check_tmpout "0 conflicts" "test10: wrong conflicts counter" 385 check_tmpout "0 conflicts" "test10: wrong conflicts counter"
386 386
387 TEST=`ls tmp-sync/test1b/ | grep dir_a` 387 TEST=`ls tmp-sync/test1b/ | grep dir_a`
388 if [ $? -eq 0 ]; then 388 if [ $? -eq 0 ]; then
389 echo "test10: dir_a not deleted" 389 echo "test10: dir_a not deleted"
390 fi 390 fi
391 391
392 392 # ----------------------------------------------------------------------------
393 # 11. test: delete all
394 # expected result: empty dir (except .trash)
395
396 rm -Rf tmp-sync/test1a/*
397
398 dav_sync_push test1a
399
400 dav_sync_pull test1b
401 check_tmpout "0 errors" "test10: wrong error counter"
402 check_tmpout "0 conflicts" "test10: wrong conflicts counter"
403
404 OUT=`ls tmp-sync/test1b/ | wc -l`
405 if [ $OUT != "0" ]; then
406 echo "test1b not empty"
407 exit 2
408 fi
409
410
411

mercurial