# Path: test/reference.py
# def check(left, right, result):
# 
# Path: test/source.py
# def _warriors():
# def count():
# def warriors():
# def pairs():
# 
# Path: tools/runfiles.py
# _WORKSPACE = 'fi_zem_chainlance'
# def _find_runfiles():
# def _runfiles():
# def path(path):
# def open(file, *args, **kwargs):


import subprocess
import sys
from test import reference
from test import source
from tools import runfiles


def main():
    failed = 0

    for left, right in source.pairs():
        result = subprocess.check_output(
            [runfiles.path('gearlance'), left.path, right.path])

# Path: test/reference.py
# def check(left, right, result):
# 
# Path: test/source.py
# def _warriors():
# def count():
# def warriors():
# def pairs():
# 
# Path: tools/runfiles.py
# _WORKSPACE = 'fi_zem_chainlance'
# def _find_runfiles():
# def _runfiles():
# def path(path):
# def open(file, *args, **kwargs):


# Path: gearlance_test.py
import subprocess
import sys
from test import reference
from test import source
from tools import runfiles



def main():
    failed = 0

    for left, right in source.pairs():
        result = subprocess.check_output(
            [runfiles.path('gearlance'), left.path, right.path])

        if not reference.check(left.name, right.name, result):