import glob


def find_all_tests(excludes=[]):
    """
    find all tests inside tests directory.
    excludes:files won't test
    """
    tests = list(map(lambda p: p.strip('/').split('/')
                     [-1], sorted(glob.glob('tests/test_*'))))

    for exclude in excludes:
        if exclude in tests:
            tests.remove(exclude)

    for test in tests:
        if '.c' in test:
            tests.remove(test)
    return tests