示例#1
0
    return ('fail', None)


def sample_dummy_blowup(args, options):
    (a, b) = 0
    return ('fail', None)


def sample_dummy_skip(args, options):
    # you can test the command line arguments like that:
    if not omtest.checkArguments(options, "algorithm", "bioclim"):
        return ('success', None)
    else:
        return ('skip', None)


###############################################################################

omtest_list = [
    sample_dummy_success, sample_dummy_failure, sample_dummy_blowup,
    sample_dummy_skip
]

if __name__ == '__main__':

    omtest.setup_run('dummy_test')

    omtest.run_tests(omtest_list, omtest.parseOptions())

    omtest.summarize()
示例#2
0
# Copyright (c) 2003, Frank Warmerdam <*****@*****.**>
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
# 
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
###############################################################################
# 

import sys
sys.path.append( 'pymod' )
import omtest

test_list = [ 'algs' ]

omtest.setup_run( 'om_user_test_all' )

omtest.run_all( test_list, omtest.parseOptions() )

omtest.summarize()