test/bin-test/test-dav.sh

changeset 422
1429fb385513
parent 421
178dc32c8c9a
child 424
f851ba530957
equal deleted inserted replaced
421:178dc32c8c9a 422:1429fb385513
49 then 49 then
50 echo "A dav repository with the name 'dav-test-repo' is needed." 50 echo "A dav repository with the name 'dav-test-repo' is needed."
51 exit 1 51 exit 1
52 fi 52 fi
53 53
54 54 do_test()
55 {
56 printf "TEST: $1 ... "
57 ./$2
58 if [ $? -ne 0 ]; then
59 exit 2
60 fi
61 echo ok
62 }
55 63
56 # clean test repo 64 # clean test repo
57 $DAV_BIN rm dav-test-repo/tests/ 2> /dev/null 65 $DAV_BIN rm dav-test-repo/tests/ 2> /dev/null
58 66
59 # 67 #
60 # ok, begin the tests 68 # ok, begin the tests
61 # 69 #
62 70
63 # info 71 do_test "dav info" test-dav-info.sh
64 printf "TEST: dav info ... " 72 do_test "dav mkcol" test-dav-mkcol.sh
65 ./test-dav-info.sh 73 do_test "dav put" test-dav-put.sh
66 if [ $? -ne 0 ]; then
67 exit 2
68 fi
69 echo ok
70 74
71 # mkcol
72 printf "TEST: dav mkcol ... "
73 ./test-dav-mkcol.sh
74 if [ $? -ne 0 ]; then
75 exit 2
76 fi
77 echo ok
78
79 # put
80 printf "TEST: dav put ... "
81 ./test-dav-put.sh
82 if [ $? -ne 0 ]; then
83 exit 2
84 fi
85 echo ok

mercurial