Changeset 264
- Timestamp:
- 05/30/10 17:44:05 (21 months ago)
- Files:
-
- 1 modified
-
trunk/test/unit_test (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit_test
r122 r264 11 11 list_tmp=._list_tmp 12 12 13 #valgrind_opt="--leak-check=yes --run-libc-freeres=no --show-reachable=yes --gen-suppressions=yes" 13 14 valgrind_opt="--leak-check=yes --run-libc-freeres=no --show-reachable=yes" 14 15 … … 51 52 -e 's/from.\+$//' \ 52 53 -e 's/ errors //'` 53 valgrind_leak=` grep LEAK $file_tmp| wc -l`54 valgrind_leak=`(grep "definitely lost: 0 bytes in 0 blocks" $file_tmp && grep "indirectly lost: 0 bytes in 0 blocks" $file_tmp && grep "possibly lost: 0 bytes in 0 blocks" $file_tmp && grep "still reachable: 0 bytes in 0 blocks" $file_tmp) | wc -l` 54 55 55 56 echo -n "$unit_id -> $valgrind_error errors " 56 57 57 if [ $valgrind_leak -eq 0] ; then58 if [ $valgrind_leak -eq 4 ] ; then 58 59 echo " | No leak detected" 59 60 else … … 91 92 echo -n "$unit_id -> " 92 93 `which time` -p ./tinyows 2>&1 | grep user | sed -e 's/user //' 94 95 # curl mode 96 elif [ $mode -eq 8 ]; then 97 if [ ! $TINYOWS_CONFIG_FILE ]; then 98 TINYOWS_CONFIG_FILE=/usr/local/tinyows/config.xml 99 fi 100 IP=`grep online_resource $TINYOWS_CONFIG_FILE | sed -e 's/.*online_resource="//' -e 's/".*//'` 101 curl -i -H "Content-Type: text/xml" --data @$unit_id $IP 93 102 fi 103 94 104 95 105 done