apps/cc/test/arcacc.py
def run_file(filename, params):
    """run a file in the virtual machine and return the output and the return code"""
    args = ["../../../emu"]
    if "gpu" not in params or not params["gpu"]:
        args.append("--no-gpu")
    if "screenshot" in params:
        args.append("--screenshot")
    args.append(filename)
    proc = popen(args)
    if proc.wait() < 0:
        return (None, "vm crashed", None)
    err = ""
    for line in proc.stderr:
        err += line
    out = ""
    for line in proc.stdout:
        out += line

    r1 = parse_vm_output(out)

    return (out, err, r1)
run a file in the virtual machine and return the output and the return code
run a file in the virtual machine and return the output and the return code
run a file in the virtual machine and return the output and the return code
def run_file(filename, params):
    args = ["../../../emu"]
    if "gpu" not in params or not params["gpu"]:
        args.append("--no-gpu")
    if "screenshot" in params:
        args.append("--screenshot")
    args.append(filename)
    proc = popen(args)
    if proc.wait() < 0:
        return (None, "vm crashed", None)
    err = ""
    for line in proc.stderr:
        err += line
    out = ""
    for line in proc.stdout:
        out += line
    r1 = parse_vm_output(out)
    return (out, err, r1)
def run_file ( filename , params ) : args = [ "../../../emu" ] if "gpu" not in params or not params [ "gpu" ] : args . append ( "--no-gpu" ) if "screenshot" in params : args . append ( "--screenshot" ) args . append ( filename ) proc = popen ( args ) if proc . wait ( ) < 0 : return ( None , "vm crashed" , None ) err = "" for line in proc . stderr : err += line out = "" for line in proc . stdout : out += line r1 = parse_vm_output ( out ) return ( out , err , r1 )
run a file in the virtual machine and return the output and the return code
run a file in the virtual machine and return the output and the return code
"""run a file in the virtual machine and return the output and the return code"""
filename
params