Ejemplo n.º 1
0
def run():
    setup(name='autotest',
          description='Autotest test framework',
          maintainer='Lucas Meneghel Rodrigues',
          maintainer_email='[email protected]',
          version=version.get_version(),
          url='http://autotest.github.com',
          package_dir=get_package_dir(),
          package_data=get_package_data(),
          packages= get_packages(),
          scripts=get_scripts(),
          data_files=get_data_files())
Ejemplo n.º 2
0
def run():
    setup(
        name="autotest",
        description="Autotest test framework",
        maintainer="Lucas Meneghel Rodrigues",
        maintainer_email="[email protected]",
        version=version.get_version(),
        url="http://autotest.github.com",
        package_dir=get_package_dir(),
        package_data=get_package_data(),
        packages=get_packages(),
        scripts=get_scripts(),
        data_files=get_data_files(),
    )
Ejemplo n.º 3
0
def run():
    setup(name='autotest',
          description='Autotest test framework',
          maintainer='Lucas Meneghel Rodrigues',
          maintainer_email='[email protected]',
          version=version.get_version(),
          url='http://autotest.github.com',
          package_dir=get_package_dir(),
          package_data=get_package_data(),
          packages=get_packages(),
          scripts=get_scripts(),
          data_files=get_data_files(),
          cmdclass=cmdclass,
          command_options={'build_doc': {'source_dir':
                                         ('setup.py', 'documentation/source')}}
          )
Ejemplo n.º 4
0
def run():
    setup(
        name="autotest",
        description="Autotest test framework",
        maintainer="Lucas Meneghel Rodrigues",
        maintainer_email="[email protected]",
        version=version.get_version(),
        url="http://autotest.github.com",
        package_dir=get_package_dir(),
        package_data=get_package_data(),
        packages=get_packages(),
        scripts=get_scripts(),
        data_files=get_data_files(),
        cmdclass=cmdclass,
        command_options={"build_doc": {"source_dir": ("setup.py", "documentation/source")}},
    )
Ejemplo n.º 5
0
def main(args):
    from sys import exit
    from optparse import OptionParser
    import logging
    import time
    import client
    
    js_logger = logging.getLogger("")
    filename = "robot-output.{0}".format(time.strftime("%H%M%S"))
    rec_file = "recs/" + filename + ".rec"
    log_file = "logs/" + filename + ".log"
    logging.basicConfig(filename=log_file, filemode="w",level=logging.DEBUG,format="%(module)s:%(levelname)s: %(message)s")
    js_logger.addHandler(client.logconsole)
    
    
    parser = OptionParser()
    parser.add_option("-a", "--addr", default = "localhost:8880")
    parser.add_option("-s", "--seat", type="int", default = 1)
    parser.add_option("-g", "--game", default = None)
    parser.add_option("-n", "--nick", default = None)
    parser.add_option("-w", "--wait", action="store_true", default = False)
    parser.add_option("-r", "--recordfile", default = rec_file)
    parser.add_option("-p", "--play", action="store_true", default = False)
    
    (options, args) = parser.parse_args()
    
    print options
    
    if ":" not in options.addr:
        print "try using host:port"
        sys.exit(-1)
    host, port = options.addr.split(":")
    
    client = VCRClient(options.recordfile, not options.play)
    if not client.connect((host, int(port))):
        print("Could not connect to: {0}".format(options.addr))
        exit(-1)
    
    client.setup(options.game, not options.wait, options.seat, options.nick)
    client.run()
Ejemplo n.º 6
0
def start_client():
    client.setup()
    client.start()