423:84e6c407b431 | 424:f851ba530957 |
---|---|
43 DAV_BIN=$1 | 43 DAV_BIN=$1 |
44 export DAV_BIN | 44 export DAV_BIN |
45 | 45 |
46 # check for test repository | 46 # check for test repository |
47 TEST_REPO=`$DAV_BIN list-repos | grep dav-test-repo` | 47 TEST_REPO=`$DAV_BIN list-repos | grep dav-test-repo` |
48 if [ $TEST_REPO != "dav-test-repo" ]; | 48 if [ -z $TEST_REPO ]; |
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 |
60 fi | 60 fi |
61 echo ok | 61 echo ok |
62 } | 62 } |
63 | 63 |
64 # clean test repo | 64 # clean test repo |
65 $DAV_BIN rm dav-test-repo/tests/ 2> /dev/null | 65 $DAV_BIN rm -N dav-test-repo/tests/ 2> /dev/null |
66 | 66 |
67 # | 67 # |
68 # ok, begin the tests | 68 # ok, begin the tests |
69 # | 69 # |
70 | 70 |