Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 44) sorted by relevance

12

/openthread-latest/tools/harness-thci/
DOpenThread.py282 def __sendCommand(self, cmd, expectEcho=True): argument
283 cmd = self._cmdPrefix + cmd
285 self._cliWriteLine(cmd)
287 self.__expect(cmd, endswith=True)
293 def __executeCommand(self, cmd, timeout=DEFAULT_COMMAND_TIMEOUT): argument
311 self.__sendCommand(cmd)
520 cmd = 'routereligible disable'
521 self.__executeCommand(cmd)
537 cmd = 'mode %s' % mode
538 return self.__executeCommand(cmd)[-1] == 'Done'
[all …]
DOpenThread_WpanCtl.py189 def __sendCommand(self, cmd): argument
200 logging.info('%s: sendCommand[%s]', self.port, cmd)
216 ssh_stdin, ssh_stdout, ssh_stderr = self.handle.exec_command(cmd)
218 self._sendline(cmd)
219 self._expect(cmd)
221 logging.exception('%s: failed to send command[%s]: %s', self.port, cmd, str(e))
250 logging.info('%s: send command[%s] done!', self.port, cmd)
272 logging.info('%s: send command[%s] done!', self.port, cmd)
323 cmd = self.wpan_cmd_prefix + 'setprop Thread:DeviceMode %d' % mode
324 return self.__sendCommand(cmd)[0] != 'Fail'
[all …]
DOpenThread_BR.py98 def bash(self, cmd, timeout): argument
103 stdin, stdout, stderr = self.__handle.exec_command(cmd, timeout=timeout)
180 def bash(self, cmd, timeout=10): argument
185 self.__bashWriteLine(cmd)
186 self.__bashExpect(cmd, timeout=timeout, endswith=True)
355 cmd = 'nohup ~/repo/openthread/tests/scripts/thread-cert/mcast6.py wpan0 %s' % sAddr
356 cmd = cmd + ' > /dev/null 2>&1 &'
357 self.bash(cmd)
382 def bash(self, cmd, timeout=DEFAULT_COMMAND_TIMEOUT, sudo=True): argument
383 return self.bash_unwatched(cmd, timeout=timeout, sudo=sudo)
[all …]
/openthread-latest/tests/scripts/thread-cert/
Dnode.py122 cmd = ['docker', 'run'] + CI_ENV + [
144 logging.info(' '.join(cmd))
145 self._docker_proc = subprocess.Popen(cmd,
186 cmd = f'docker exec -i {self._docker_name} ot-ctl'
187 self.pexpect = pexpect.popen_spawn.PopenSpawn(cmd, timeout=30)
261 def bash(self, cmd: str, encoding='ascii') -> List[str]:
262 logging.info("%s $ %s", self, cmd)
263 proc = subprocess.Popen(['docker', 'exec', '-i', self._docker_name, 'bash', '-c', cmd],
285 raise subprocess.CalledProcessError(proc.returncode, cmd, ''.join(lines))
614 cmd = './ot-cli-%s' % (mode)
[all …]
/openthread-latest/src/posix/platform/
Dradio.cpp574 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE] = {'\0'}; in otPlatDiagProcess() local
575 char *cur = cmd; in otPlatDiagProcess()
576 char *end = cmd + sizeof(cmd); in otPlatDiagProcess()
598 error = GetRadioSpinel().PlatDiagProcess(cmd); in otPlatDiagProcess()
617 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagTxPowerSet() local
619 snprintf(cmd, sizeof(cmd), "power %d", aTxPower); in otPlatDiagTxPowerSet()
620 SuccessOrExit(GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagTxPowerSet()
628 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagChannelSet() local
630 snprintf(cmd, sizeof(cmd), "channel %d", aChannel); in otPlatDiagChannelSet()
631 SuccessOrExit(GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagChannelSet()
[all …]
Dutils.cpp55 char cmd[kSystemCommandMaxLength]; in ExecuteCommand() local
63 vsnprintf(cmd, sizeof(cmd), aFormat, args); in ExecuteCommand()
66 file = popen(cmd, "r"); in ExecuteCommand()
78 otLogInfoPlat("Execute command `%s` = %d", cmd, exitCode); in ExecuteCommand()
83 otLogInfoPlat("Got an error when executing command `%s`: `%s`", cmd, strerror(errno)); in ExecuteCommand()
Drcp_caps_diag.cpp721 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE] = {0}; in ProcessSpinelSpeed() local
735 strncpy(cmd, kEchoCmd, sizeof(cmd) - 1); in ProcessSpinelSpeed()
736 echoPayloadLength = static_cast<uint16_t>(sizeof(cmd) - strlen(cmd) - 1); in ProcessSpinelSpeed()
738 memset(cmd + strlen(cmd), '1', echoPayloadLength); in ProcessSpinelSpeed()
747 SuccessOrExit(error = mRadioSpinel.PlatDiagProcess(cmd)); in ProcessSpinelSpeed()
751 …sumLength += kSpinelHeaderSize + strlen(cmd) + kZeroTerminatorSize + kSpinelHeaderSize + strlen(ou… in ProcessSpinelSpeed()
/openthread-latest/tools/otci/otci/
Dcommand_handlers.py46 def execute_command(self, cmd: str, timeout: float) -> List[str]:
55 def execute_platform_command(self, cmd: str, timeout: float) -> List[str]:
84 def shell(self, cmd: str, timeout: float) -> List[str]:
122 def execute_command(self, cmd, timeout=10) -> List[str]: argument
124 self.__otcli.writeline(cmd)
126 if cmd in ('reset', 'factoryreset'):
133 self.__expect_line(timeout, cmd)
137 … asynchronous=cmd.split()[0] in OtCliCommandRunner.__ASYNC_COMMANDS)
140 def execute_platform_command(self, cmd, timeout=10) -> List[str]: argument
259 def execute_command(self, cmd: str, timeout: float) -> List[str]:
[all …]
Dotci.py96 cmd: str,
102 return self.__execute_command(cmd, timeout, silent, already_is_ok=already_is_ok)
110 cmd: str,
122 self.log('info', '> %s', cmd)
124 output = self.__otcmd.execute_command(cmd, timeout)
130 if cmd in ('reset', 'factoryreset'):
137 raise CommandError(cmd, output)
139 …def execute_platform_command(self, cmd: str, timeout: float = 10, silent: bool = False) -> List[st…
148 self.log('info', '> %s', cmd)
150 output = self.__otcmd.execute_platform_command(cmd, timeout)
[all …]
Derrors.py47 def __init__(self, cmd: str, output: List[str]):
49 …super(CommandError, self).__init__("Command error while executing %r:\n%s\n" % (cmd, '\n'.join(out…
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dgenerate_tls13_compat_tests.py109 def cmd(self): member in TLSProgram
141 def cmd(self): member in OpenSSLBase
142 ret = super().cmd()
182 def cmd(self): member in OpenSSLServ
183 ret = super().cmd()
254 def cmd(self): member in GnuTLSBase
255 ret = super().cmd()
337 def cmd(self): member in MbedTLSBase
338 ret = super().cmd()
398 def cmd(self): member in MbedTLSServ
[all …]
Dgenerate_server9_bad_saltlen.py71 cmd = OPENSSL_RSA_PSS_CERT_COMMAND.format(**kwargs)
72 der_bytes = subprocess.check_output(cmd, shell=True)
75 cmd = OPENSSL_RSA_PSS_DGST_COMMAND.format(**kwargs)
77 der_bytes = subprocess.check_output(cmd,
/openthread-latest/src/core/utils/
Dparse_cmdline.cpp55 char *cmd; in ParseCmd() local
57 for (cmd = aCommandString; *cmd; cmd++) in ParseCmd()
59 if ((*cmd == '\\') && IsEscapable(*(cmd + 1))) in ParseCmd()
62 memmove(cmd, cmd + 1, strlen(cmd)); in ParseCmd()
64 else if (IsSeparator(*cmd)) in ParseCmd()
66 *cmd = '\0'; in ParseCmd()
69 if ((*cmd != '\0') && ((index == 0) || (*(cmd - 1) == '\0'))) in ParseCmd()
77 aArgs[index++].SetCString(cmd); in ParseCmd()
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dc_build_helper.py93 cmd = [cc]
95 proc = subprocess.Popen(cmd,
101 cmd += ['-I' + dir for dir in include_dirs]
106 cmd += ['-Fe' + exe_filename, '-Fo' + obj_filename]
108 cmd += ['-o' + exe_filename]
110 subprocess.check_call(cmd + [c_filename])
/openthread-latest/tools/harness-simulation/harness/Thread_Harness/THCI/
DOpenThread_BR_Sim.py87 def bash(self, cmd, timeout): argument
89 cmd = pipes.quote(cmd)
95 (self.docker_name, cmd),
/openthread-latest/tools/harness-simulation/posix/sniffer_sim/
Dsniffer.py96 cmd = ['tshark', '-i', fifo_name]
99 cmd += ['-i', 'docker0']
100 cmd += ['-w', '-', '-q', 'not ip and not tcp and not arp and not ether proto 0x8899']
102 self.logger.debug('Running command: %s', ' '.join(cmd))
103 self._tshark_proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
/openthread-latest/tools/harness-sniffer/
DOT_Sniffer.py86 cmd = [
100 ModuleHelper.WriteIntoDebugLogger('OT_Sniffer: [cmd] --> %s' % str(cmd))
101 self.subprocess = subprocess.Popen(cmd)
/openthread-latest/third_party/mbedtls/repo/scripts/
Dcode_style.py80 cmd = ["git", "log", since + "..HEAD", "--name-only", "--pretty=", "--"] + src_files
81 output = subprocess.check_output(cmd, universal_newlines=True)
84 cmd = ["git", "diff", "--name-only", "--"] + src_files
85 output = subprocess.check_output(cmd, universal_newlines=True)
/openthread-latest/tests/toranj/cli/
Dcli.py125 cmd = f'{self._OT_CLI_FTD}{radios} --time-speed={self._SPEED_UP_FACTOR} '
129 cmd = cmd + f'--log-file={log_file_name} '
131 cmd = cmd + f'{self._index}'
136 self._cli_process = pexpect.popen_spawn.PopenSpawn(cmd)
159 cmd = ' '.join([f'{arg}' for arg in args if arg is not None]).strip()
164 self._cli_process.send(cmd + '\n')
170 if not self._is_ot_logg_line(line) if not line.strip().endswith(cmd)
194 def _cli_no_output(self, cmd, *args): argument
195 outputs = self.cli(cmd, *args)
198 def _cli_single_output(self, cmd, *args, expected_outputs=None): argument
[all …]
/openthread-latest/tests/scripts/thread-cert/pktverify/
Dpacket_filter.py592 def filter_wpan_cmd(self, cmd, **kwargs): argument
593 assert isinstance(cmd, int), cmd
594 return self.filter(lambda p: p.wpan.cmd == cmd, **kwargs)
596 def filter_mle_cmd(self, cmd, **kwargs): argument
597 assert isinstance(cmd, int), cmd
598 return self.filter(lambda p: p.mle.cmd == cmd, **kwargs)
603 return self.filter(lambda p: p.mle.cmd == cmd1 or p.mle.cmd == cmd2, **kwargs)
/openthread-latest/third_party/jlink/SEGGER_RTT_V640/Syscalls/
DSEGGER_RTT_Syscalls_KEIL.c351 char * _sys_command_string(char * cmd, int len) { in _sys_command_string() argument
353 return cmd; // Not implemented in _sys_command_string()
/openthread-latest/tools/harness-simulation/posix/otbr_sim/
Dotbr_docker.py126 cmd = [
142 self.logger.info('Launching docker: %s', ' '.join(cmd))
143 launch_proc = subprocess.Popen(cmd,
/openthread-latest/tools/harness-automation/autothreadharness/
Dpdu_controller.py289 def _outlet_value_set(self, cmd, socket, value=1): argument
298 oid = self._outlet_oid_get(cmd, socket)
301 if cmd != 'set_reboot_delay':
306 def _outlet_value_get(self, cmd, socket): argument
317 oid = self._outlet_oid_get(cmd, socket)
/openthread-latest/src/lib/spinel/
Dspinel_driver.cpp329 uint32_t cmd = 0; in HandleInitialFrame() local
336 rval = spinel_datatype_unpack(aFrame, aLength, "CiiD", &header, &cmd, &key, &data, &len); in HandleInitialFrame()
337 …EXPECT(rval > 0 && cmd >= SPINEL_CMD_PROP_VALUE_IS && cmd <= SPINEL_CMD_PROP_VALUE_REMOVED, error … in HandleInitialFrame()
339 EXPECT(cmd == SPINEL_CMD_PROP_VALUE_IS, error = OT_ERROR_DROP); in HandleInitialFrame()
Dlogger.cpp129 uint32_t cmd; in LogSpinelFrame() local
140 unpacked = spinel_datatype_unpack(aFrame, aLength, "CiiD", &header, &cmd, &key, &data, &len); in LogSpinelFrame()
145 spinel_command_to_cstr(cmd)); in LogSpinelFrame()
146 EXPECT(cmd != SPINEL_CMD_RESET, NO_ACTION); in LogSpinelFrame()
149 EXPECT(cmd != SPINEL_CMD_PROP_VALUE_GET, NO_ACTION); in LogSpinelFrame()
443 if (cmd == SPINEL_CMD_PROP_VALUE_IS) in LogSpinelFrame()
476 else if (cmd == SPINEL_CMD_PROP_VALUE_SET) in LogSpinelFrame()
714 if (cmd == SPINEL_CMD_PROP_VALUE_INSERT) in LogSpinelFrame()

12