예제 #1
0
    layer.close()
    layer.close()  # discard resultset.

    return 'success'


###############################################################################
# Cleanup.


def ogr_query_cleanup():
    pmstestlib.layer = None
    pmstestlib.map = None
    return 'success'


test_list = [
    ogr_query_1, ogr_query_2, ogr_query_3, ogr_query_4, ogr_query_5,
    ogr_query_6, ogr_query_7, ogr_query_cleanup
]

if __name__ == '__main__':

    pmstestlib.setup_run('ogr_query')

    pmstestlib.run_tests(test_list)

    pmstestlib.summarize()

    mapscript.msCleanup()
예제 #2
0
#
#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
#  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
#  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
#  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
#  DEALINGS IN THE SOFTWARE.
###############################################################################
#
# $Log$
# Revision 1.1  2004/05/13 03:01:33  frank
# New
#
#

import sys

sys.path.append('../pymod')

import pmstestlib

###############################################################################
# main()

if __name__ == '__main__':
    pmstestlib.setup_run('all')
    pmstestlib.run_all('.', sys.argv[1:])
    errors = pmstestlib.summarize()
    sys.exit(errors)
예제 #3
0
파일: wkt.py 프로젝트: homme/msautotest
        if new_wkt != orig_wkt:
            pmstestlib.post_reason( 'WKT "%s" converted to "%s".' \
                                    % (orig_wkt, new_wkt) )
            return 'fail'
    
    return 'success'


###############################################################################
# Cleanup.

def wkt_test_cleanup():
    return 'success'

test_list = [
    wkt_test_1,
    wkt_test_2,
    wkt_test_3,
    wkt_test_cleanup ]

if __name__ == '__main__':

    pmstestlib.setup_run( 'wkt' )

    pmstestlib.run_tests( test_list )

    pmstestlib.summarize()

    mapscript.msCleanup()

예제 #4
0
#  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
#  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
#  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
#  DEALINGS IN THE SOFTWARE.
###############################################################################
# 
# $Log$
# Revision 1.1  2004/05/13 03:01:33  frank
# New
#
#

import sys

sys.path.append( '../pymod' )

import pmstestlib


###############################################################################
# main()

if __name__ == '__main__':
    pmstestlib.setup_run( 'all' )
    pmstestlib.run_all( '.', sys.argv[1:] )
    errors = pmstestlib.summarize()
    sys.exit(errors)