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

changeset 671
5256d7eb69e7
parent 627
81e066c9ff87
equal deleted inserted replaced
670:ef490647f5d1 671:5256d7eb69e7
152 check_tmpout "0 files pulled" "test4: wrong pull counter" 152 check_tmpout "0 files pulled" "test4: wrong pull counter"
153 check_tmpout "0 errors" "test4: wrong error counter" 153 check_tmpout "0 errors" "test4: wrong error counter"
154 check_tmpout "0 conflicts" "test4: wrong conflicts counter" 154 check_tmpout "0 conflicts" "test4: wrong conflicts counter"
155 155
156 OUT=`cat tmp-sync/out.txt | wc -l` 156 OUT=`cat tmp-sync/out.txt | wc -l`
157 if [ "$OUT" != "1" ]; then 157 if [ $OUT -ne 1 ]; then
158 echo "test4: wrong line count" 158 echo "test4: wrong line count"
159 exit 2 159 exit 2
160 fi 160 fi
161 161
162 # ---------------------------------------------------------------------------- 162 # ----------------------------------------------------------------------------
347 echo "test9: sub2 not deleted" 347 echo "test9: sub2 not deleted"
348 exit 2 348 exit 2
349 fi 349 fi
350 350
351 OUT=`ls tmp-sync/test1b/subdir/ | wc -l` 351 OUT=`ls tmp-sync/test1b/subdir/ | wc -l`
352 if [ "$OUT" != "0" ]; 352 if [ $OUT -ne 0 ];
353 then 353 then
354 echo "test9: test1b/subdir not empty" 354 echo "test9: test1b/subdir not empty"
355 exit 2 355 exit 2
356 fi 356 fi
357 357
400 dav_sync_pull test1b 400 dav_sync_pull test1b
401 check_tmpout "0 errors" "test10: wrong error counter" 401 check_tmpout "0 errors" "test10: wrong error counter"
402 check_tmpout "0 conflicts" "test10: wrong conflicts counter" 402 check_tmpout "0 conflicts" "test10: wrong conflicts counter"
403 403
404 OUT=`ls tmp-sync/test1b/ | wc -l` 404 OUT=`ls tmp-sync/test1b/ | wc -l`
405 if [ $OUT != "0" ]; then 405 if [ $OUT -ne 0 ]; then
406 echo "test1b not empty" 406 echo "test1b not empty"
407 exit 2 407 exit 2
408 fi 408 fi
409 409
410 410

mercurial