def run_geckoview_junit(context, args):
    args = set_android_args(context, args)

    from runjunit import run_test_harness

    logger.info("mach calling runjunit with args: " + str(args))
    return run_test_harness(parser, args)
Ejemplo n.º 2
0
def run_mochitest_desktop(context, args):
    args.app = args.app or context.firefox_bin
    args.utilityPath = context.bin_dir
    args.extraProfileFiles.append(os.path.join(context.bin_dir, 'plugins'))

    from runtests import run_test_harness
    return run_test_harness(parser, args)
Ejemplo n.º 3
0
def run_mochitest_android(context, args):
    args = set_android_args(context, args)
    args.extraProfileFiles.append(
        os.path.join(context.package_root, 'mochitest', 'fonts'))

    from runtestsremote import run_test_harness
    log.info("mach calling runtestsremote with args: " + str(args))
    return run_test_harness(parser, args)
Ejemplo n.º 4
0
def run_mochitest(context, **kwargs):
    args = Namespace(**kwargs)
    args.certPath = context.certs_dir
    args.utilityPath = context.bin_dir
    args.extraProfileFiles.append(os.path.join(context.bin_dir, 'plugins'))

    from runtests import run_test_harness
    return run_test_harness(args)
Ejemplo n.º 5
0
def run_mochitest_android(context, args):
    args.app = args.app or 'org.mozilla.fennec'
    args.extraProfileFiles.append(os.path.join(context.package_root, 'mochitest', 'fonts'))
    args.utilityPath = context.hostutils
    args.xrePath = context.hostutils

    config = context.mozharness_config
    if config:
        args.remoteWebServer = config['remote_webserver']
        args.httpPort = config['emulator']['http_port']
        args.sslPort = config['emulator']['ssl_port']
        args.adbPath = config['exes']['adb'] % {'abs_work_dir': context.mozharness_workdir}

    from runtestsremote import run_test_harness
    return run_test_harness(parser, args)
def run_mochitest(context, **kwargs):
    args = Namespace(**kwargs)
    args.certPath = context.certs_dir
    args.utilityPath = context.bin_dir
    args.extraProfileFiles.append(os.path.join(context.bin_dir, 'plugins'))

    if not args.app:
        args.app = context.find_firefox()

    if args.test_paths:
        test_root = os.path.join(context.package_root, 'mochitest', 'tests')
        normalize = partial(context.normalize_test_path, test_root)
        args.test_paths = map(normalize, args.test_paths)

    from runtests import run_test_harness
    return run_test_harness(parser, args)
Ejemplo n.º 7
0
def run_mochitest(context, **kwargs):
    args = Namespace(**kwargs)
    args.certPath = context.certs_dir
    args.utilityPath = context.bin_dir
    args.extraProfileFiles.append(os.path.join(context.bin_dir, 'plugins'))

    if not args.app:
        args.app = context.find_firefox()

    if args.test_paths:
        test_root = os.path.join(context.package_root, 'mochitest', 'tests')
        normalize = partial(context.normalize_test_path, test_root)
        args.test_paths = map(normalize, args.test_paths)

    from runtests import run_test_harness
    return run_test_harness(parser, args)
Ejemplo n.º 8
0
def run_mochitest_desktop(context, args):
    args.app = args.app or context.firefox_bin
    args.utilityPath = context.bin_dir
    args.extraProfileFiles.append(os.path.join(context.bin_dir, 'plugins'))
    args.extraPrefs.append("webgl.force-enabled=true")
    args.quiet = True
    args.useTestMediaDevices = True
    args.screenshotOnFail = True
    args.cleanupCrashes = True
    args.marionette_startup_timeout = '180'
    args.sandboxReadWhitelist.append(context.mozharness_workdir)
    if args.flavor == 'browser':
        args.chunkByRuntime = True
    else:
        args.chunkByDir = 4

    from runtests import run_test_harness
    logger.info("mach calling runtests with args: " + str(args))
    return run_test_harness(parser, args)