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

changeset 675
a8117c4feaad
parent 672
4bfe452a2665
child 677
5a4002f8d258
--- a/test/bin-test/test-dav-sync-metadata3.sh	Sat Oct 26 12:40:35 2019 +0200
+++ b/test/bin-test/test-dav-sync-metadata3.sh	Sat Oct 26 14:55:53 2019 +0200
@@ -207,3 +207,35 @@
 	exit 2
 fi
 
+
+# ----------------------------------------------------------------------------
+# test 3: push again
+# expected result: 0 files pushed/updated
+
+dav_sync_push test4a "test 3: push failed"
+check_tmpout "0 files pushed" "test 3: wrong push counter"
+check_tmpout "0 conflicts" "test 3: wrong conflict counter (push)"
+check_tmpout "0 errors" "test 3: wrong error counter (push)"
+
+LN=`cat tmp-sync/out.txt | wc -l 2> /dev/null`
+if [ $LN -ne 1 ]; then
+	echo "test 3: wrong line count"
+	exit 2
+fi
+
+
+# ----------------------------------------------------------------------------
+# test 4: pull test4b again
+# expected result: 0 files pushed/updated
+
+dav_sync_pull test4b "test 4: pull failed"
+check_tmpout "0 files pulled" "test 4: wrong pull counter"
+check_tmpout "0 conflicts" "test 4: wrong conflict counter (pull)"
+check_tmpout "0 errors" "test 4: wrong error counter (pull)"
+
+LN=`cat tmp-sync/out.txt | wc -l 2> /dev/null`
+if [ $LN -ne 1 ]; then
+	echo "test 4: wrong line count"
+	exit 2
+fi
+

mercurial