Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 119) sorted by relevance

12345

/test/testfwk/developer_test/src/core/build/
Dbuild_lite_manager.py47 command = []
49 command.append("hb")
50 command.append("build")
51 command.append("-p")
52 command.append("%s@hisilicon" % param.productform)
53 command.append("-b")
54 command.append("debug")
56 command.append("target=%s" % param.testsuit)
62 command.append(build_script)
63 command.append("product=%s" % param.productform)
[all …]
Dbuild_testcases.py66 command = ["xcopy", "/f", "/s", "/e", "/y",
69 command = ["cp", "-rf", source_dir, target_dir]
71 LOG.info("command: %s" % str(command))
72 return subprocess.call(command) == 0
184 def _execute_build_command(self, productform, command): argument
190 command.append("--product-name")
191 command.append(productform)
198 build_command.extend(command)
210 def _execute_build_deps_files_command(self, productform, command): argument
216 command.append("--product-name")
[all …]
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
Ddmlib_lite.py118 def execute_remote_cmd_with_timeout(telnet, command="", timeout=TIMEOUT, argument
139 telnet.write(command.encode('ascii') + b"\n")
141 data = telnet.read_until(bytes(command, encoding="utf8"),
146 if command in result:
162 if check_read_test_end(result, command):
165 error_message = "execute %s timed out %s " % (command, timeout)
171 if not status and command.startswith("uname"):
172 raise LiteDeviceTimeout("Execute command time out:%s" % command)
177 def read_local_output_test(com=None, command=None, timeout=TIMEOUT, argument
179 input_command = command
[all …]
Ddevice_lite.py315 def execute_command_with_timeout(self, command="", case_type="", argument
335 (convert_serial(self.__get_serial__()), command,
339 command=command,
345 command=command,
352 command=command,
371 execute_command_with_timeout(command="reset", timeout=30)
379 enter_result, _, _ = self.execute_command_with_timeout(command='\r',
383 self.execute_command_with_timeout(command=self.ifconfig,
389 command="ifconfig",
440 def execute_command_with_timeout(self, command="", timeout=TIMEOUT, argument
[all …]
/test/testfwk/developer_test/aw/python/distributed/common/
Ddevices.py130 command = "%s %s %s" % (HDC_TOOLS, self.device_params, remount)
131 self.execute_command(command)
152 command = "%s %s %s %s %s" % (
158 return self.execute_command(command)
165 command = "%s %s %s %s %s" % (
171 return self.execute_command(command)
180 def shell(self, command=""): argument
185 command,
189 def execute_command(cls, command, print_flag=True, timeout=900): argument
192 print("command: " + command)
[all …]
Ddrivers.py51 def make_long_command_file(command, longcommand_path, filename): argument
56 file_desc.write(command)
63 command = "ls -l %s | grep %s" % (path, target)
65 stdout_info = device.shell_with_output(command)
130 command = "cd %s; rm -rf %s.xml; chmod +x *; ./%s" % (
137 command = "cd %s; rm -rf %s.xml; chmod +x *; GCOV_PREFIX=. " \
145 print("command: %s" % command)
146 sh_file_name, file_path = make_long_command_file(command,
/test/testfwk/developer_test/src/core/command/
Dconsole.py29 from core.command.run import Run
30 from core.command.gen import Gen
31 from core.command.display import display_help_info
32 from core.command.display import display_show_info
33 from core.command.display import display_version_info
34 from core.command.display import show_wizard_mode
336 command = options.action
337 if command == "":
347 if command.startswith(ToolCommandType.TOOLCMD_KEY_HELP):
349 elif command.startswith(ToolCommandType.TOOLCMD_KEY_SHOW):
[all …]
Ddisplay.py378 def display_help_command_info(command): argument
379 if command == ToolCommandType.TOOLCMD_KEY_SHOW:
381 elif command == ToolCommandType.TOOLCMD_KEY_RUN:
383 elif command == ToolCommandType.TOOLCMD_KEY_LIST:
385 elif command == ToolCommandType.TOOLCMD_KEY_QUIT:
388 print("'%s' command no help information." % command)
391 def display_show_command_info(command, product_form="phone"): argument
392 if command == CMD_KEY_PRODUCTLIST:
394 elif command == CMD_KEY_TYPELIST:
396 elif command == CMD_KEY_SUBSYSTEMLIST:
[all …]
/test/xts/acts/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/
DAVSessionJSTest.js39 command: "This is my command" property
72 function commonCommandCallback1(command, args) { argument
73 console.log(TAG + "Callback1 received event: " + JSON.stringify(command));
75 if (command != COMMON_COMMAND_STRING) {
80 receivedString = command;
84 function commonCommandCallback2(command, args) { argument
85 console.log(TAG + "Callback2 received event: " + JSON.stringify(command));
87 if (command != COMMON_COMMAND_STRING) {
92 receivedString2 = command;
193 expect(receivedParam.command == COMMON_COMMAND_PARAMS.command).assertTrue();
[all …]
/test/testfwk/xdevice/src/xdevice/_core/command/
Dconsole.py431 command = options.action
432 if command == "":
436 self._process_command(command, options, para_list, argument.parser)
449 def _process_command(self, command, options, para_list, parser): argument
450 if command.startswith(ToolCommandType.toolcmd_key_help):
452 elif command.startswith(ToolCommandType.toolcmd_key_show):
454 elif command.startswith(ToolCommandType.toolcmd_key_run):
455 self._process_command_run(command, options)
456 elif command.startswith(ToolCommandType.toolcmd_key_quit):
457 self._process_command_quit(command)
[all …]
/test/testfwk/developer_test/localCoverage/resident_service/
Dpublic_method.py48 def get_sn_list(command): argument
51 proc = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE,
91 def get_server_dict(command): argument
97 if " -ts " in command:
98 _, testsuite = command.split(" -ts ")
114 elif " -tp " in command:
115 component_name = command.split(" -tp ")[-1].split(" ")[0]
130 elif " -ss " in command:
131 system_name = command.split(" -ss ")[-1].split(" ")[0]
/test/testfwk/xdevice/docs/
DDevice_Auto_Upgrade_Guide.md158 def _execute_command_with_time(self, com, command, timeout):
162 @param command:
166 if isinstance(command, str):
167 command = command.encode("gbk")
168 if command[-2:] != b"\r\n":
169 command = command.rstrip() + b'\r\n'
170 com.write(command)
172 com.write(command)
173 return self._read_local_output(com=com, command=command,
176 def _read_local_output(self, com=None, command=None, timeout=None):
[all …]
/test/ostest/wukong/test_flow/src/
Dtest_flow_factory.cpp24 …estFlow> TestFlowFactory::GetTestFlow(WuKongShellCommand& shellCommand, const std::string& command) in GetTestFlow() argument
27 if (command == "exec") { in GetTestFlow()
29 } else if (command == "special") { in GetTestFlow()
31 } else if (command == "focus") { in GetTestFlow()
/test/testfwk/xdevice/plugins/ohos/src/ohos/testkit/
Dkit_lite.py84 command='AT+RST={}'.format(self.timeout))
209 command="uname", timeout=1, retry=2)
232 for command in commands:
233 command = command.replace("nfs_ip", linux_host). \
236 timeout = 15 if command.startswith("mount") else 1
237 if command.startswith("mount"):
241 execute_command_with_timeout(command=command,
257 command=command, case_type=case_type, timeout=timeout)
376 device.execute_command_with_timeout(command="cd /storage",
379 device.execute_command_with_timeout(command="umount -f "
[all …]
/test/xts/acts/ability/ability_runtime/actsshellcommandfunctionalitytest/ActsExecuteShellCommandTest/entry/src/main/ets/test/
DAbility.test.ets24 * @tc.name: Execute a shell command without arguments (AsyncCallback).
25 * @tc.desc: Verify that the interface executes the Shell command successfully.
30 var escresult = 'usage: aa <command> <options>'
46 * @tc.name: Execute shell command with timeout parameter (AsyncCallback)
47 * @tc.desc: Verify that the interface executes the Shell command successfully.
71 * @tc.name: Execute non-existing shell command (AsyncCallback).
72 * @tc.desc: Failed to execute shell command on authentication interface.
92 * @tc.name: Execute shell command timeout (AsyncCallback)
93 * @tc.desc: The authentication interface executes the shell command timed out.
98 var escresult = 'usage: aa <command> <options>'
[all …]
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/
Ddrivers_lite.py162 command = self._get_execute_command(bin_file)
164 self.set_file_name(request, command)
173 self.dry_run(command, request.listeners)
175 self.run_cpp_test(command, request)
200 command="cd {}".format(execute_dir), timeout=1)
204 command = ".%s" % self.execute_bin
206 command = "./%s" % self.execute_bin
213 return command
245 command="cd /storage", timeout=1)
248 command="cd /", timeout=1)
[all …]
/test/testfwk/xdevice/src/xdevice/
D__main__.py31 def main_process(command=None): argument
35 if command:
36 args = str(command).split(" ")
/test/xts/acts/ability/ability_runtime/aacommand/AACommandPrintOneTest/entry/src/main/ets/test/
DAbility.test.ets44 …* @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid, and the print i…
47 * the test command.
58 …* @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid, and the print i…
61 * the test command.
82 …* @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid, and the print i…
85 * the test command.
108 …* @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid, and the print i…
111 * the test command.
122 …* @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid, and the print i…
125 * the test command.
[all …]
/test/xts/acts/ability/ability_runtime/aacommand/AACommandRelyHap/entry/src/main/ets/test/
DAACommandPrintOne.test.ets23 …* @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid, and the print i…
26 * the test command.
46 …* @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid, and the print i…
49 * the test command.
75 …* @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid, and the print i…
78 * the test command.
104 …* @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid, and the print i…
107 * the test command.
122 …* @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid, and the print i…
125 * the test command.
[all …]
/test/testfwk/developer_test/src/core/config/
Dresource_manager.py158 command = item["value"].strip()
159 device.execute_shell_command(command)
161 command = item["name"] + " " + item["value"]
162 command = command.strip()
163 device.connector_command(command)
186 command = item["name"] + " " + item["value"]
187 command = command.strip()
188 … self.lite_device.execute_command_with_timeout(command, case_type=DeviceTestType.lite_cpp_test)
/test/testfwk/developer_test/libs/benchmark/report/
Dbenchmark_reporter.py49 command = [sys.executable, report_generate_tool, result_path,
51 LOG.info(command)
52 subprocess.call(command, shell=False)
/test/testfwk/arkxtest/uitest/server/
Dserver_main.cpp296 string command(argv[1]); in main() local
297 if (command == "dumpLayout") { in main()
299 } else if (command == "start-daemon") { in main()
302 } else if (command == "screenCap") { in main()
304 } else if (command == "uiRecord") { in main()
306 } else if (command == "uiInput") { in main()
308 } else if (command == "--version") { in main()
311 } else if (command == "help") { in main()
315 PrintToConsole("Illegal argument: " + command); in main()
/test/xts/acts/ability/ability_runtime/aacommand/AACommandPrintSyncTest/entry/src/main/ets/test/
DAbility.test.ets42 * @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid
45 * the test command.
56 * @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid,
59 * the test command.
80 * @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid,
83 * the test command.
105 * @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid,
108 * the test command.
/test/xts/acts/ability/ability_runtime/aacommand/AACommandPrintSync/entry/src/main/ets/test/
DAACommandPrint.test.ets22 * @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid,
25 * the test command.
43 * @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid,
46 * the test command.
71 * @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid
74 * the test command.
100 * @tc.name: The -b, -p, -s, -w and other parameters of the test command are valid,
103 * the test command.
/test/xts/acts/ability/ability_runtime/actsabilitytooltest/abilitytoolrelyhap/entry/src/main/ets/test/
DAbilityToolRely.test.ets26 …* @tc.name : The parameters of the test command are valid, and the finishTest API is called i…
28 …* @tc.desc : The parameters of the test command are valid, and the finishTest interface is ca…
51 …* @tc.name : Each parameter of the test command is valid, call the finishTest interface in As…
53 …* @tc.desc : The parameters of the test command are valid, and the finishTest interface is ca…
77 …* @tc.name : Each parameter of the test command is valid, call the finishTest API in AsyncCal…
79 …* @tc.desc : The parameters of the test command are valid, and the finishTest interface is ca…
102 …* @tc.name : Each parameter of the test command is valid, call the finishTest interface in As…
104 …* @tc.desc : The parameters of the test command are valid, and the finishTest interface is ca…
127 …* @tc.name : The parameters of the test command are valid, and the finishTest API is called i…
129 …* @tc.desc : The parameters of the test command are valid, and the finishTest interface is ca…
[all …]

12345