def __init__(self):
        RemoteXPCShellOptions.__init__(self)
        defaults = {}

        self.add_option('--b2gpath', action='store',
                        type='string', dest='b2g_path',
                        help="Path to B2G repo or qemu dir")
        defaults['b2g_path'] = None

        self.add_option('--marionette', action='store',
                        type='string', dest='marionette',
                        help="host:port to use when connecting to Marionette")
        defaults['marionette'] = None

        self.add_option('--emulator', action='store',
                        type='string', dest='emulator',
                        help="Architecture of emulator to use: x86 or arm")
        defaults['emulator'] = None

        self.add_option('--no-window', action='store_true',
                        dest='no_window',
                        help="Pass --no-window to the emulator")
        defaults['no_window'] = False

        self.add_option('--adbpath', action='store',
                        type='string', dest='adb_path',
                        help="Path to adb")
        defaults['adb_path'] = 'adb'

        defaults['dm_trans'] = 'adb'
        defaults['debugger'] = None
        defaults['debuggerArgs'] = None

        self.set_defaults(**defaults)
示例#2
0
    def __init__(self):
        RemoteXPCShellOptions.__init__(self)
        defaults = {}

        self.add_option('--b2gpath',
                        action='store',
                        type='string',
                        dest='b2g_path',
                        help="Path to B2G repo or qemu dir")
        defaults['b2g_path'] = None

        self.add_option('--emupath',
                        action='store',
                        type='string',
                        dest='emu_path',
                        help="Path to emulator folder (if different "
                        "from b2gpath")
        defaults['emu_path'] = None

        self.add_option('--emulator',
                        action='store',
                        type='string',
                        dest='emulator',
                        help="Architecture of emulator to use: x86 or arm")
        defaults['emulator'] = None

        self.add_option('--no-window',
                        action='store_true',
                        dest='no_window',
                        help="Pass --no-window to the emulator")
        defaults['no_window'] = False

        self.add_option('--adbpath',
                        action='store',
                        type='string',
                        dest='adb_path',
                        help="Path to adb")
        defaults['adb_path'] = 'adb'

        self.add_option(
            '--address',
            action='store',
            type='string',
            dest='address',
            help="host:port of running Gecko instance to connect to")
        defaults['address'] = None

        self.add_option('--use-device-libs',
                        action='store_true',
                        dest='use_device_libs',
                        help="Don't push .so's")
        defaults['use_device_libs'] = False

        defaults['dm_trans'] = 'adb'
        defaults['debugger'] = None
        defaults['debuggerArgs'] = None

        self.set_defaults(**defaults)
示例#3
0
    def __init__(self):
        RemoteXPCShellOptions.__init__(self)
        defaults = {}

        self.add_option('--b2gpath', action='store',
                        type='string', dest='b2g_path',
                        help="Path to B2G repo or qemu dir")
        defaults['b2g_path'] = None

        self.add_option('--emupath', action='store',
                        type='string', dest='emu_path',
                        help="Path to emulator folder (if different "
                                                      "from b2gpath")

        self.add_option('--no-clean', action='store_false',
                        dest='clean',
                        help="Do not clean TESTROOT. Saves [lots of] time")
        defaults['clean'] = True

        defaults['emu_path'] = None

        self.add_option('--emulator', action='store',
                        type='string', dest='emulator',
                        help="Architecture of emulator to use: x86 or arm")
        defaults['emulator'] = None

        self.add_option('--no-window', action='store_true',
                        dest='no_window',
                        help="Pass --no-window to the emulator")
        defaults['no_window'] = False

        self.add_option('--adbpath', action='store',
                        type='string', dest='adb_path',
                        help="Path to adb")
        defaults['adb_path'] = 'adb'

        self.add_option('--address', action='store',
                        type='string', dest='address',
                        help="host:port of running Gecko instance to connect to")
        defaults['address'] = None

        self.add_option('--use-device-libs', action='store_true',
                        dest='use_device_libs',
                        help="Don't push .so's")
        defaults['use_device_libs'] = False

        defaults['dm_trans'] = 'adb'
        defaults['debugger'] = None
        defaults['debuggerArgs'] = None

        self.set_defaults(**defaults)
示例#4
0
    def verifyRemoteOptions(self, options):
        if options.b2g_path is None:
            self.error("Need to specify a --b2gpath")

        if options.geckoPath and not options.emulator:
            self.error("You must specify --emulator if you specify --gecko-path")

        if options.logcat_dir and not options.emulator:
            self.error("You must specify --emulator if you specify --logcat-dir")
        return RemoteXPCShellOptions.verifyRemoteOptions(self, options)
示例#5
0
    def verifyRemoteOptions(self, options):
        if options.b2g_path is None:
            self.error("Need to specify a --b2gpath")

        if options.geckoPath and not options.emulator:
            self.error("You must specify --emulator if you specify --gecko-path")

        if options.logcat_dir and not options.emulator:
            self.error("You must specify --emulator if you specify --logcat-dir")
        return RemoteXPCShellOptions.verifyRemoteOptions(self, options)
示例#6
0
    def __init__(self):
        RemoteXPCShellOptions.__init__(self)
        defaults = {}

        self.add_option(
            "--b2gpath", action="store", type="string", dest="b2g_path", help="Path to B2G repo or qemu dir"
        )
        defaults["b2g_path"] = None

        self.add_option(
            "--emupath",
            action="store",
            type="string",
            dest="emu_path",
            help="Path to emulator folder (if different " "from b2gpath",
        )

        self.add_option(
            "--no-clean", action="store_false", dest="clean", help="Do not clean TESTROOT. Saves [lots of] time"
        )
        defaults["clean"] = True

        defaults["emu_path"] = None

        self.add_option(
            "--emulator",
            action="store",
            type="string",
            dest="emulator",
            help="Architecture of emulator to use: x86 or arm",
        )
        defaults["emulator"] = None

        self.add_option("--no-window", action="store_true", dest="no_window", help="Pass --no-window to the emulator")
        defaults["no_window"] = False

        self.add_option("--adbpath", action="store", type="string", dest="adb_path", help="Path to adb")
        defaults["adb_path"] = "adb"

        self.add_option(
            "--address",
            action="store",
            type="string",
            dest="address",
            help="host:port of running Gecko instance to connect to",
        )
        defaults["address"] = None

        self.add_option("--use-device-libs", action="store_true", dest="use_device_libs", help="Don't push .so's")
        defaults["use_device_libs"] = False
        self.add_option(
            "--gecko-path",
            action="store",
            type="string",
            dest="geckoPath",
            help="the path to a gecko distribution that should " "be installed on the emulator prior to test",
        )
        defaults["geckoPath"] = None
        self.add_option(
            "--logcat-dir",
            action="store",
            type="string",
            dest="logcat_dir",
            help="directory to store logcat dump files",
        )
        defaults["logcat_dir"] = None
        self.add_option(
            "--busybox",
            action="store",
            type="string",
            dest="busybox",
            help="Path to busybox binary to install on device",
        )
        defaults["busybox"] = None

        defaults["dm_trans"] = "adb"
        defaults["debugger"] = None
        defaults["debuggerArgs"] = None

        self.set_defaults(**defaults)
示例#7
0
    def __init__(self):
        RemoteXPCShellOptions.__init__(self)
        defaults = {}

        self.add_option('--b2gpath', action='store',
                        type='string', dest='b2g_path',
                        help="Path to B2G repo or qemu dir")
        defaults['b2g_path'] = None

        self.add_option('--emupath', action='store',
                        type='string', dest='emu_path',
                        help="Path to emulator folder (if different "
                                                      "from b2gpath")

        self.add_option('--no-clean', action='store_false',
                        dest='clean',
                        help="Do not clean TESTROOT. Saves [lots of] time")
        defaults['clean'] = True

        defaults['emu_path'] = None

        self.add_option('--emulator', action='store',
                        type='string', dest='emulator',
                        help="Architecture of emulator to use: x86 or arm")
        defaults['emulator'] = None

        self.add_option('--no-window', action='store_true',
                        dest='no_window',
                        help="Pass --no-window to the emulator")
        defaults['no_window'] = False

        self.add_option('--adbpath', action='store',
                        type='string', dest='adb_path',
                        help="Path to adb")
        defaults['adb_path'] = 'adb'

        self.add_option('--address', action='store',
                        type='string', dest='address',
                        help="host:port of running Goanna instance to connect to")
        defaults['address'] = None

        self.add_option('--use-device-libs', action='store_true',
                        dest='use_device_libs',
                        help="Don't push .so's")
        defaults['use_device_libs'] = False
        self.add_option("--goanna-path", action="store",
                        type="string", dest="goannaPath",
                        help="the path to a goanna distribution that should "
                        "be installed on the emulator prior to test")
        defaults["goannaPath"] = None
        self.add_option("--logdir", action="store",
                        type="string", dest="logdir",
                        help="directory to store log files")
        defaults["logdir"] = None
        self.add_option('--busybox', action='store',
                        type='string', dest='busybox',
                        help="Path to busybox binary to install on device")
        defaults['busybox'] = None

        defaults["remoteTestRoot"] = DEVICE_TEST_ROOT
        defaults['dm_trans'] = 'adb'
        defaults['debugger'] = None
        defaults['debuggerArgs'] = None

        self.set_defaults(**defaults)
示例#8
0
    def __init__(self):
        RemoteXPCShellOptions.__init__(self)
        defaults = {}

        self.add_option('--b2gpath',
                        action='store',
                        type='string',
                        dest='b2g_path',
                        help="Path to B2G repo or qemu dir")
        defaults['b2g_path'] = None

        self.add_option('--emupath',
                        action='store',
                        type='string',
                        dest='emu_path',
                        help="Path to emulator folder (if different "
                        "from b2gpath")

        self.add_option('--no-clean',
                        action='store_false',
                        dest='clean',
                        help="Do not clean TESTROOT. Saves [lots of] time")
        defaults['clean'] = True

        defaults['emu_path'] = None

        self.add_option('--emulator',
                        action='store',
                        type='string',
                        dest='emulator',
                        help="Architecture of emulator to use: x86 or arm")
        defaults['emulator'] = None

        self.add_option('--no-window',
                        action='store_true',
                        dest='no_window',
                        help="Pass --no-window to the emulator")
        defaults['no_window'] = False

        self.add_option('--adbpath',
                        action='store',
                        type='string',
                        dest='adb_path',
                        help="Path to adb")
        defaults['adb_path'] = 'adb'

        self.add_option(
            '--address',
            action='store',
            type='string',
            dest='address',
            help="host:port of running Gecko instance to connect to")
        defaults['address'] = None

        self.add_option('--use-device-libs',
                        action='store_true',
                        dest='use_device_libs',
                        help="Don't push .so's")
        defaults['use_device_libs'] = False
        self.add_option("--gecko-path",
                        action="store",
                        type="string",
                        dest="geckoPath",
                        help="the path to a gecko distribution that should "
                        "be installed on the emulator prior to test")
        defaults["geckoPath"] = None
        self.add_option("--logdir",
                        action="store",
                        type="string",
                        dest="logdir",
                        help="directory to store log files")
        defaults["logdir"] = None
        self.add_option('--busybox',
                        action='store',
                        type='string',
                        dest='busybox',
                        help="Path to busybox binary to install on device")
        defaults['busybox'] = None

        defaults["remoteTestRoot"] = DEVICE_TEST_ROOT
        defaults['dm_trans'] = 'adb'
        defaults['debugger'] = None
        defaults['debuggerArgs'] = None

        self.set_defaults(**defaults)