Changeset 3257
- Timestamp:
- May 5, 2009, 11:23:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/test/test_webservice.sh
r3256 r3257 54 54 55 55 case $1 in 56 8) 57 test="Creating 10 files as quickly as possible" 58 for i in {1..10} 59 do 60 generate_name 61 echo -e "Name\tDescription" > $A 62 echo -e "${i}_$name\tThis is the ${i}:th file" >> $A 63 curlit "-T $A" "$resource/files?username=demo&password=demo" 64 curlit "-s -o $B" "$resource/files?username=demo&password=demo&select=Id&whereName==${i}_$name" 65 lastid=`tail -n 1 $B | perl -ane '/(\d+)/; print \$1;'` 66 text="Hello" 67 echo $text > $C 68 curlit "-T $C" "$resource/files/$lastid?username=demo&password=demo" 69 curlit "-s -o $D" "$resource/files/$lastid?username=demo&password=demo" 70 diff=`diff $C $D` 71 if [ "$diff" != "" ]; then 72 fail "$test" "Content of files is not the same after download. Compare $C and $D" 73 fi 74 done 75 ;; 56 76 7) 57 77 test="External file URI http://... with basic authentication" … … 164 184 ;; 165 185 all) 166 for ttt in {1.. 7}186 for ttt in {1..8} 167 187 do 168 188 $0 clean
Note: See TracChangeset
for help on using the changeset viewer.