1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
# execute all dodo.py files used in the tutorial.
# not really tested but if no exception is raised should be good enough.
test_files = [
# 'calc_dep.py',
'checker.py',
'check_timestamp_unchanged.py',
'compile.py',
'config_params.py',
'cproject.py',
'custom_reporter.py',
# 'doit_config.py', # task are not defined
# 'download.py', # need internet connection
'folder.py',
'getargs.py',
'getargs_dict.py',
'getargs_group.py',
'get_var.py',
'group.py',
'hello.py',
'longrunning.py',
# 'my_dodo.py',
'my_tasks.py',
'parameters.py',
'run_once.py',
'sample.py',
'selecttasks.py',
# 'settrace.py',
'subtasks.py',
'tar.py',
'task_name.py',
'task_reusable.py',
'taskorder.py',
'timeout.py',
'title.py',
'titlewithactions.py',
'tsetup.py',
# 'tutorial_01.py',
'tutorial_02.py',
'uptodate_callable.py',
'verbosity.py',
]
def task_sanity():
for dodo in test_files:
yield {
'name': dodo,
'actions': ['doit -f %(dependencies)s'],
'file_dep': [dodo],
'verbosity': 2,
}
|