Source

pypy / pypy / translator / jvm / conftest.py

Full commit
Benjamin Peterso… 6deaa5b 


holger krekel 7dcd918 


nikomatsakis 81e6e18 
Samuele Pedroni 3353f63 
holger krekel 9268676 
Samuele Pedroni 3353f63 


















import py, sys

def pytest_runtest_setup(item):
    if sys.maxint > 2147483647: # 64bit platform
        py.test.skip("jvm backend on 64bit unsupported")

def pytest_addoption(parser):
    group = parser.getgroup("pypy-jvm options")
    group.addoption('--java', action='store', dest='java', default='java',
            help='Define the java executable to use')
    group.addoption('--javac', action='store', dest='javac',
                    default='javac',
                    help='Define the javac executable to use')
    group.addoption('--jasmin', action='store', dest='java', default='java',
            help='Define the jasmin script to use')
    group.addoption('--noassemble', action='store_true', dest="noasm",
                    default=False,
                    help="don't assemble jasmin files")
    group.addoption('--package', action='store', dest='package',
                    default='pypy',
                    help='Package to output generated classes into')

    group.addoption('--byte-arrays', action='store_true',
                    dest='byte-arrays',
                    default=False,
                    help='Use byte arrays rather than native strings')