本文整理汇总了Python中processing.algs.otb.OTBTester.MakefileParser类的典型用法代码示例。如果您正苦于以下问题:Python MakefileParser类的具体用法?Python MakefileParser怎么用?Python MakefileParser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MakefileParser类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_processing_mapping
def test_processing_mapping():
mkf = MakefileParser()
the_tests = mkf.test_algos()
clients = get_client_apps()
already_tested = set()
for t in the_tests:
test_name = 'test_%s' % t
if the_tests[t][0].split(" ")[0] in clients:
skip = False
if the_tests[t][1] is None:
skip = True
else:
if the_tests[t][1] == "":
skip = True
if not skip:
runnable = the_tests[t][0].split(" ")[0]
if runnable not in already_tested:
test = ut_generator(test_name, the_tests[t])
setattr(TestSequence, test_name, test)
already_tested.add(runnable)
suite = unittest.TestLoader().loadTestsFromTestCase(TestSequence)
unittest.TextTestRunner(verbosity=2).run(suite)
示例2: unfiltered_processing_mapping
def unfiltered_processing_mapping():
mkf = MakefileParser()
the_tests = mkf.test_algos()
for t in the_tests:
test_name = 'test_std_%s' % t
if the_tests[t][1] is None:
skip = True
else:
if the_tests[t][1] == "":
skip = True
if not skip:
test = ut_generator(test_name, the_tests[t])
setattr(TestSequence, test_name, test)
suite = unittest.TestLoader().loadTestsFromTestCase(TestSequence)
unittest.TextTestRunner(verbosity=2).run(suite)
示例3: ut_generator
if the_tests[t][0].split(" ")[0] in clients:
skip = False
if the_tests[t][1] is None:
skip = True
else:
if the_tests[t][1] == "":
skip = True
if not skip:
runnable = the_tests[t][0].split(" ")[0]
if runnable not in already_tested:
test = ut_generator(test_name, the_tests[t])
setattr(TestSequence, test_name, test)
already_tested.add(runnable)
suite = unittest.TestLoader().loadTestsFromTestCase(TestSequence)
unittest.TextTestRunner(verbosity=2).run(suite)
def test_xml_generation():
create_xml_descriptors()
if __name__ == '__main__':
mkf = MakefileParser()
the_tests = mkf.test_algos()
for t in the_tests:
test_name = 'test_%s' % t
test = ut_generator(test_name, the_tests[t])
setattr(TestSequence, test_name, test)
unittest.main()