Changeset 291
- Timestamp:
- 06/03/10 11:50:20 (20 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
Makefile.in (modified) (1 diff)
-
test/unit_test (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.in
r290 r291 72 72 @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 3 73 73 74 test- exception:74 test-http: 75 75 @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 4 76 76 77 test- stderr:77 test-exception: 78 78 @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 5 79 79 80 test- http:80 test-stderr: 81 81 @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 6 82 82 -
trunk/test/unit_test
r290 r291 71 71 ./tinyows 72 72 73 # http mode 74 elif [ $mode -eq 4 ]; then 75 echo $unit_id 76 if [ ! $TINYOWS_CONFIG_FILE ]; then 77 TINYOWS_CONFIG_FILE=/usr/local/tinyows/config.xml 78 fi 79 IP=`grep online_resource $TINYOWS_CONFIG_FILE | sed -e 's/.*online_resource="//' -e 's/".*//'` 80 curl -i -H "Content-Type: text/xml" --data @$unit_id $IP 81 73 82 # Exception mode 74 elif [ $mode -eq 4]; then83 elif [ $mode -eq 5 ]; then 75 84 ows_ret=`./tinyows 2> /dev/null | grep ExceptionText` 76 85 if [ "$ows_ret" ]; then … … 80 89 81 90 # stderr mode 82 elif [ $mode -eq 5]; then91 elif [ $mode -eq 6 ]; then 83 92 ./tinyows > /dev/null 2> $file_tmp 84 93 ows_ret=`cat $file_tmp` … … 88 97 rm -f $file_tmp 89 98 90 # curl mode91 elif [ $mode -eq 6 ]; then92 echo $unit_id93 if [ ! $TINYOWS_CONFIG_FILE ]; then94 TINYOWS_CONFIG_FILE=/usr/local/tinyows/config.xml95 fi96 IP=`grep online_resource $TINYOWS_CONFIG_FILE | sed -e 's/.*online_resource="//' -e 's/".*//'`97 curl -i -H "Content-Type: text/xml" --data @$unit_id $IP98 99 fi 99 100