Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
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)
Пример #4
0
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)
Пример #5
0
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)