# Path: tests/main_test.py
# def comp_all(args=[], **kwargs):
#     """Compile Coconut tests."""
#     try:
#         os.mkdir(dest)
#     except Exception:
#         pass
#     comp_2(args, **kwargs)
#     comp_3(args, **kwargs)
#     comp_35(args, **kwargs)
#     comp_36(args, **kwargs)
#     comp_agnostic(args, **kwargs)
#     comp_sys(args, **kwargs)
#     comp_non_strict(args, **kwargs)
#     comp_runner(args, **kwargs)
#     comp_extras(args, **kwargs)


from coconut.root import *  # NOQA
from tests.main_test import comp_all
import sys
import os.path
# -----------------------------------------------------------------------------------------------------------------------
# INFO:
# -----------------------------------------------------------------------------------------------------------------------

"""
Author: Evan Hubinger
License: Apache 2.0
Description: Compile Coconut test source.
"""

# -----------------------------------------------------------------------------------------------------------------------
# IMPORTS:
# -----------------------------------------------------------------------------------------------------------------------

from __future__ import print_function, absolute_import, unicode_literals, division


sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))


# -----------------------------------------------------------------------------------------------------------------------
# MAIN:
# -----------------------------------------------------------------------------------------------------------------------


def main(args=None):
    """Compile everything with given arguments."""
    if args is None:
        args = sys.argv[1:]
    print("Compiling Coconut test suite with args %r." % args)

# Path: tests/main_test.py
# def comp_all(args=[], **kwargs):
#     """Compile Coconut tests."""
#     try:
#         os.mkdir(dest)
#     except Exception:
#         pass
#     comp_2(args, **kwargs)
#     comp_3(args, **kwargs)
#     comp_35(args, **kwargs)
#     comp_36(args, **kwargs)
#     comp_agnostic(args, **kwargs)
#     comp_sys(args, **kwargs)
#     comp_non_strict(args, **kwargs)
#     comp_runner(args, **kwargs)
#     comp_extras(args, **kwargs)


# Path: tests/__main__.py
from coconut.root import *  # NOQA
from tests.main_test import comp_all
import sys
import os.path

# -----------------------------------------------------------------------------------------------------------------------
# INFO:
# -----------------------------------------------------------------------------------------------------------------------

"""
Author: Evan Hubinger
License: Apache 2.0
Description: Compile Coconut test source.
"""

# -----------------------------------------------------------------------------------------------------------------------
# IMPORTS:
# -----------------------------------------------------------------------------------------------------------------------

from __future__ import print_function, absolute_import, unicode_literals, division


sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))


# -----------------------------------------------------------------------------------------------------------------------
# MAIN:
# -----------------------------------------------------------------------------------------------------------------------


def main(args=None):
    """Compile everything with given arguments."""
    if args is None:
        args = sys.argv[1:]
    print("Compiling Coconut test suite with args %r." % args)

    comp_all(args, expect_retcode=0 if "--mypy" not in args else None, check_errors="--verbose" not in args)