def main(args): list_before = os.listdir('exdata') if os.path.isdir('exdata') else [] print('Running doctests...'), sys.stdout.flush() run_doctests() print('doctests done.\nRunning example_experiment:'), sys.stdout.flush() example_experiment.main() for arg in args if args else default_testcases: process_testfile(arg) if args or os.path.isfile(arg) else None _clean_up('exdata', ['random_search_on_bbob', 'doctest', 'default'], list_before)
def main(args): list_before = os.listdir('.') print('Running doctests...'), sys.stdout.flush() run_doctests() print('doctests done.\nRunning example_experiment:'), sys.stdout.flush() example_experiment.main() for arg in args if args else default_testcases: process_testfile(arg) if args or os.path.isfile(arg) else None _clean_up(["random_search_on_bbob-biobj", "results"], list_before)
def main(args): list_before = os.listdir("exdata") if os.path.isdir("exdata") else [] print("Running doctests..."), sys.stdout.flush() run_doctests() print("doctests done.\nRunning example_experiment:"), sys.stdout.flush() example_experiment.main() for arg in args if args else default_testcases: process_testfile(arg) if args or os.path.isfile(arg) else None _clean_up("exdata", ["random_search_on_bbob", "doctest", "default"], list_before)
def main(args): list_before = os.listdir('exdata') if os.path.isdir('exdata') else [] print('Running doctests...'), sys.stdout.flush() run_doctests() print('doctests done.\nRunning example_experiment:'), sys.stdout.flush() example_experiment.main() if "bbob-constrained" in known_suite_names: run_constrained_suite_test() for arg in args if args else default_testcases: if arg is None or arg == 'None': break process_testfile(arg) if args or os.path.isfile(arg) else None _clean_up('exdata', ['random_search_on_bbob', 'doctest', 'default'], list_before)