Changeset 291

Show
Ignore:
Timestamp:
06/03/10 11:50:20 (20 months ago)
Author:
ol
Message:

Rationalize unit test numbers

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r290 r291  
    7272        @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 3 
    7373 
    74 test-exception: 
     74test-http: 
    7575        @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 4 
    7676 
    77 test-stderr: 
     77test-exception: 
    7878        @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 5 
    7979 
    80 test-http: 
     80test-stderr: 
    8181        @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 6 
    8282 
  • trunk/test/unit_test

    r290 r291  
    7171    ./tinyows 
    7272 
     73# http mode 
     74elif [ $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 
    7382# Exception mode 
    74 elif [ $mode -eq 4 ]; then 
     83elif [ $mode -eq 5 ]; then 
    7584    ows_ret=`./tinyows 2> /dev/null | grep ExceptionText` 
    7685    if [ "$ows_ret" ]; then 
     
    8089 
    8190# stderr mode 
    82 elif [ $mode -eq 5 ]; then 
     91elif [ $mode -eq 6 ]; then 
    8392    ./tinyows > /dev/null 2> $file_tmp 
    8493    ows_ret=`cat $file_tmp` 
     
    8897    rm -f $file_tmp 
    8998 
    90 # curl mode 
    91 elif [ $mode -eq 6 ]; then 
    92     echo $unit_id 
    93     if [ ! $TINYOWS_CONFIG_FILE ]; then 
    94         TINYOWS_CONFIG_FILE=/usr/local/tinyows/config.xml 
    95     fi 
    96     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 $IP 
    9899fi 
    99100