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

changeset 637
20241338740c
parent 635
a6b1ec1b7ba0
child 640
65e40934b26c
equal deleted inserted replaced
636:cbd62e87b1c5 637:20241338740c
59 # tmp sync dir 59 # tmp sync dir
60 rm -Rf tmp-sync 60 rm -Rf tmp-sync
61 mkdir tmp-sync 61 mkdir tmp-sync
62 mkdir tmp-sync/test1a 62 mkdir tmp-sync/test1a
63 mkdir tmp-sync/test1b 63 mkdir tmp-sync/test1b
64 mkdir tmp-sync/test2a
65 mkdir tmp-sync/test2b
66
64 67
65 # check if config works 68 # check if config works
66 TEST1_DIR=`$DAV_SYNC_BIN list-dirs | grep test1a | tail -n 1` 69 TEST1_DIR=`$DAV_SYNC_BIN list-dirs | grep test1a | tail -n 1`
67 if [ -z $TEST1_DIR ]; 70 if [ -z $TEST1_DIR ];
68 then 71 then
92 # 95 #
93 do_test "dav-sync push (1)" test-dav-sync-push1.sh 96 do_test "dav-sync push (1)" test-dav-sync-push1.sh
94 do_test "dav-sync pull (1)" test-dav-sync-pull1.sh 97 do_test "dav-sync pull (1)" test-dav-sync-pull1.sh
95 do_test "dav-sync pull conflict (1)" test-dav-sync-pull-conflict.sh 98 do_test "dav-sync pull conflict (1)" test-dav-sync-pull-conflict.sh
96 do_test "dav-sync push conflict (1)" test-dav-sync-push-conflict.sh 99 do_test "dav-sync push conflict (1)" test-dav-sync-push-conflict.sh
100 do_test "dav-sync hashing" test-dav-sync-hashing.sh
97 101
98 # cleanup 102 # cleanup
99 $DAV_BIN rm dav-test-repo/sync/test1 > /dev/null 2>&1 103 $DAV_BIN rm dav-test-repo/sync/test1 > /dev/null 2>&1
100 if [ $? -ne 0 ]; then 104 if [ $? -ne 0 ]; then
101 echo "cleanup failed" 105 echo "cleanup failed"

mercurial