def parse_args():
    """Parses command line arguments and options"""

    arg_parser = autoptsclient.CliParser("PTS automation client")

    # IUT specific arguments below
    arg_parser.add_argument("kernel_image",
                            help="Zephyr OS kernel image to be used for "
                            "testing. Normally a zephyr.elf file.")

    arg_parser.add_argument("-t", "--tty-file",
                            help="If TTY is specified, BTP communication "
                            "with Zephyr OS running on hardware will "
                            "be done over this TTY. Hence, QEMU will "
                            "not be used.")

    board_names = autoprojects.iutctl.Board.names
    arg_parser.add_argument("-b", "--board",
                            help="Used DUT board. This option is used to "
                            "select DUT reset command that is run before "
                            "each test case. If board is not specified DUT "
                            "will not be reset. Supported boards: %s. " %
                            (", ".join(board_names,),), choices=board_names)

    # Hidden option to save test cases data in TestCase.db
    arg_parser.add_argument("-s", "--store", action="store_true",
                            default=False, help=argparse.SUPPRESS)

    args = arg_parser.parse_args()

    check_args(args)

    return args
Ejemplo n.º 2
0
    def parse_args(self):
        arg_parser = autoptsclient.CliParser("PTS automation client")
        args = arg_parser.parse_args()

        self.check_args(args)

        return args
Ejemplo n.º 3
0
    def parse_args(self):
        arg_parser = autoptsclient.CliParser("PTS automation client",
                                             autoprojects.iutctl.Board.names)

        args = arg_parser.parse_args()
        self.check_args(args)

        return args
Ejemplo n.º 4
0
def parse_args():
    """Parses command line arguments and options"""

    arg_parser = autoptsclient.CliParser(description="PTS automation client")

    # IUT specific arguments below

    args = arg_parser.parse_args()

    return args
Ejemplo n.º 5
0
    def parse_args(self):
        arg_parser = autoptsclient.CliParser("PTS automation client",
                                             autoprojects.iutctl.Board.names)

        args = arg_parser.parse_args()

        if args.hci is None:
            args.qemu_bin = autoprojects.iutctl.QEMU_BIN

        self.check_args(args)

        return args
Ejemplo n.º 6
0
def parse_args():
    """Parses command line arguments and options"""

    arg_parser = autoptsclient.CliParser(description="PTS automation client")

    arg_parser.add_argument("btpclient_path",
                            help="Path to Bluez tool btpclient")

    # IUT specific arguments below

    args = arg_parser.parse_args()

    return args
def parse_args():
    """Parses command line arguments and options"""

    arg_parser = autoptsclient.CliParser("PTS automation client")

    # IUT specific arguments below
    arg_parser.add_argument("kernel_image",
                            help="Zephyr OS kernel image to be used for "
                            "testing. Normally a zephyr.elf file.")

    arg_parser.add_argument("-t", "--tty-file",
                            help="If TTY is specified, BTP communication "
                            "with Zephyr OS running on hardware will "
                            "be done over this TTY. Hence, QEMU will "
                            "not be used.")

    board_names = autoprojects.iutctl.Board.names
    arg_parser.add_argument("-b", "--board",
                            help="Used DUT board. This option is used to "
                            "select DUT reset command that is run before "
                            "each test case. If board is not specified DUT "
                            "will not be reset. Supported boards: %s. " %
                            (", ".join(board_names,),), choices=board_names)

    arg_parser.add_argument("--rtt2pty",
                            help="Use RTT2PTY to capture logs from device."
                            "Requires rtt2pty tool and rtt support on IUT.",
                            action='store_true', default=False)

    arg_parser.add_argument("--recovery", action='store_true', default=False,
                            help="Specify if autoptsserver should try to recover"
                            " itself after exception.")

    arg_parser.add_argument("--superguard", default=0, metavar='MINUTES', type=float,
                            help="Specify amount of time in minutes, after which"
                            " super guard will blindly trigger recovery steps.")

    arg_parser.add_argument("--ykush", metavar='YKUSH_PORT', help="Specify "
                            "ykush downstream port number, so on BTP TIMEOUT "
                            "the iut board could be powered off and on.")

    # Hidden option to save test cases data in TestCase.db
    arg_parser.add_argument("-s", "--store", action="store_true",
                            default=False, help=argparse.SUPPRESS)

    args = arg_parser.parse_args()

    check_args(args)

    return args
Ejemplo n.º 8
0
def parse_args():
    """Parses command line arguments and options"""

    arg_parser = autoptsclient.CliParser("PTS automation client")

    arg_parser.add_argument("-t",
                            "--tty-file",
                            help="If TTY is specified, BTP communication "
                            "with Mynewt OS running on hardware will "
                            "be done over this TTY. Hence, QEMU will "
                            "not be used.")

    board_names = autoprojects.iutctl.Board.names
    arg_parser.add_argument("-b",
                            "--board",
                            help="Used DUT board. This option is used to "
                            "select DUT reset command that is run before "
                            "each test case. If board is not specified DUT "
                            "will not be reset. Supported boards: %s. " %
                            (", ".join(board_names, ), ),
                            choices=board_names)

    arg_parser.add_argument("--rtt2pty",
                            help="Use RTT2PTY to capture logs from device."
                            "Requires rtt2pty tool and rtt support on IUT.",
                            action='store_true',
                            default=False)

    # Hidden option to save test cases data in TestCase.db
    arg_parser.add_argument("-s",
                            "--store",
                            action="store_true",
                            default=False,
                            help=argparse.SUPPRESS)

    args = arg_parser.parse_args()

    check_args(args)

    return args