| /test/xts/acts/hiviewdfx/utils/native/ |
| H A D | file_utils.cpp | 36 int ExecCmdWithRet(std::string cmd, std::vector<std::string> &resvec) in ExecCmdWithRet() argument 38 if (cmd.size() == 0) { in ExecCmdWithRet() 42 std::cout<< "cmd is " + cmd <<std::endl; in ExecCmdWithRet() 43 if ((cmd.find("hilog") == std::string::npos) && (cmd.find("hidumper") == std::string::npos) in ExecCmdWithRet() 44 && (cmd.find("ps") == std::string::npos) && (cmd.find("rm") == std::string::npos) && in ExecCmdWithRet() 45 (cmd.find("hiperf") == std::string::npos) && (cmd in ExecCmdWithRet() 66 ExeCmd(std::string cmd) ExeCmd() argument 72 CmdRun(std::string cmd, std::string &result) CmdRun() argument 94 ExecuteCmd(std::string cmd) ExecuteCmd() argument 107 SaveCmdOutput(std::string cmd, std::string saveFile) SaveCmdOutput() argument 119 std::string cmd = "rm " + hilogredirect; RedirecthiLog() local [all...] |
| H A D | file_utils.h | 32 int ExecCmdWithRet(std::string cmd, std::vector<std::string> &resvec); 35 void ExeCmd(std::string cmd); 36 void CmdRun(std::string cmd, std::string &result); 37 std::string ExecuteCmd(std::string cmd); 43 void SaveCmdOutput(std::string cmd, std::string saveFile);
|
| /test/xts/hats/kernel/syscalls/process/processid/ |
| H A D | ProcessApiTest.cpp | 125 * @tc.desc : execve exec cmd touch success. 135 char cmd[] = "touch"; in HWTEST_F() local 137 char *argv[] = {cmd, file, nullptr}; in HWTEST_F() 151 * @tc.desc : execve exec cmd touch success. 159 char cmd[] = "touch"; in HWTEST_F() local 161 char *argv[] = {cmd, file, nullptr}; in HWTEST_F() 179 char cmd[] = "ls"; in HWTEST_F() local 180 char *argv[] = {cmd, nullptr}; in HWTEST_F() 187 ret = syscall(__NR_execveat, fd, cmd, argv, envp, 0); in HWTEST_F() 205 char cmd[] in HWTEST_F() local [all...] |
| /test/xts/acts/hiviewdfx/hiappeventtest/hiappeventapmtest/entry/src/ohosTest/js/TestRunner/ |
| H A D | OpenHarmonyTestRunner.js | 44 let cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName; 45 cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters); 50 cmd += ' -D'; 52 console.info('cmd : ' + cmd); 53 abilityDelegator.executeShellCommand(cmd, (err, data) => {
|
| /test/xts/acts/hiviewdfx/hidebugtest/hidebugtestjstest/entry/src/ohosTest/js/TestRunner/ |
| H A D | OpenHarmonyTestRunner.js | 44 let cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName; 45 cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters); 50 cmd += ' -D'; 52 console.info('cmd : ' + cmd); 53 abilityDelegator.executeShellCommand(cmd, (err, data) => {
|
| /test/xts/dcts/ability/dmsfwk/dmsfwk/src/main/js/TestRunner/ |
| H A D | OpenHarmonyTestRunner.js | 44 var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName 45 cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters) 50 cmd += ' -D' 52 console.info('cmd : '+cmd); 53 abilityDelegator.executeShellCommand(cmd, (err, data) => {
|
| /test/xts/dcts/distributeddatamgr/jstest/distributed_kv_store/client/hap/src/main/js/TestRunner/ |
| H A D | OpenHarmonyTestRunner.js | 44 var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName; variable 45 cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters); 50 cmd += ' -D'; 52 console.info('cmd : '+cmd); 53 abilityDelegator.executeShellCommand(cmd, (err, data) => {
|
| /test/testfwk/xdevice/plugins/ohos/src/ohos/environment/ |
| H A D | device.py | 313 cmd = f"cd {DEVICE_TEMP_PATH} && chmod +x {file_name} && ./{file_name}" 315 cmd, timeout=5 * 1000, output_flag=False, retry=RETRY_ATTEMPTS, abort_on_exception=False).strip() 396 cmd = [HdcHelper.CONNECTOR_NAME, "-s", "{}:{}".format(self.host, self.port), "-t", self.device_sn] 398 cmd = [HdcHelper.CONNECTOR_NAME, "-t", self.device_sn] 403 cmd.extend(command) 406 cmd.extend(command.split(" ")) 407 result = exec_cmd(cmd, timeout, error_print, join_result) 439 cmd = "target mount" 440 self.connector_command(cmd) 779 cmd [all...] |
| /test/testfwk/developer_test/ |
| H A D | ohtest | 26 cmd = "./start.sh" variable 28 cmd += " " + sys.argv[index] 29 print(cmd) 30 os.system(cmd)
|
| /test/testfwk/xdevice/plugins/devicetest/utils/ |
| H A D | util.py | 103 cmd = "fport ls" 104 out = get_decode(self.connector_command(cmd)).strip() 108 if "Reverse" in line_text and "fport" in cmd: 265 cmd = "ps -ef | grep '{}'".format(process_name) 266 ret = device.execute_shell_command(cmd) 282 cmd = "lsof -i:{}".format(port) 283 out = shell_command(cmd) 301 def shell_command(cmd: str, findstr: str = "") -> str: 302 command = cmd.split(" ")
|
| /test/testfwk/developer_test/local_coverage/code_coverage/ |
| H A D | multiprocess_code_coverage.py | 194 cmd = "lcov -c -b {} -d {} --gcov-tool {} --config-file {} -o {} --ignore-errors source,gcov".format( 196 print("single_test**##father_pid:%s##child_pid:%s cmd:%s config file:%s" % ( 197 os.getpid(), os.getppid(), cmd, lcovrc_path 199 execute_command(cmd) 218 cmd = "lcov --remove {} {} -o {}".format(trace_file, remove, output_name) 219 execute_command(cmd) 297 cmd = "lcov -a {} -o {}".format( 300 execute_command(cmd) 332 cmd = "lcov -a {} -o {}".format( 335 execute_command(cmd) [all...] |
| /test/xts/hats/hdf/bluetooth/hdiService/ |
| H A D | bluetooth_hci_services_test.cpp | 138 std::vector<uint8_t> cmd = COMMAND_HCI_RESET;
in HWTEST_F() local 140 int32_t ret = g_iBtHci->SendHciPacket(btType, cmd);
in HWTEST_F() 154 std::vector<uint8_t> cmd = COMMAND_HCI_READ_LOCAL_VERSION_INFORMATION;
in HWTEST_F() local 156 int32_t ret = g_iBtHci->SendHciPacket(btType, cmd);
in HWTEST_F() 170 std::vector<uint8_t> cmd = COMMAND_HCI_SHOULD_BE_UNKNOWN;
in HWTEST_F() local 172 int32_t ret = g_iBtHci->SendHciPacket(btType, cmd);
in HWTEST_F() 186 std::vector<uint8_t> cmd = COMMAND_HCI_READ_BUFFER_SIZE;
in HWTEST_F() local 188 int32_t ret = g_iBtHci->SendHciPacket(btType, cmd);
in HWTEST_F() 217 std::vector<uint8_t> cmd = writeName;
in HWTEST_F() local 219 int32_t ret = g_iBtHci->SendHciPacket(btType, cmd);
in HWTEST_F() [all...] |
| /test/xts/tools/build/ |
| H A D | utils.py | 190 def cmd_popen(cmd): 191 proc = subprocess.Popen(cmd) 195 raise Exception("{} failed, return code is {}".format(cmd, ret_code)) 244 cmd = [] 250 cmd.append("-P{}={}".format(param, kwargs.get(param))) 251 return cmd
|
| /test/ostest/wukong/test/unittest/ |
| H A D | wukong_test.cpp | 29 bool ExecCmd(const std::string &cmd, std::string &resvec) in ExecCmd() argument 32 FILE *pp = popen(cmd.c_str(), "r"); in ExecCmd() 63 std::string cmd = "wukong exec -T 1"; in HWTEST_F() local 66 auto ret = ExecCmd(cmd, result); in HWTEST_F()
|
| /test/testfwk/arkxtest/uitest/server/ |
| H A D | server_main.cpp | 160 auto cmd = OHOS::AAFwk::Want(); in DumpLayout() local 161 cmd.SetParam("savePath", string(savePath)); in DumpLayout() 162 cmd.SetParam("listWindows", listWindows); in DumpLayout() 163 ApiTransactor::SendBroadcastCommand(cmd, err); in DumpLayout() 220 ApiTransactor::SetBroadcastCommandHandler([] (const OHOS::AAFwk::Want &cmd, ApiCallErr &err) { in StartDaemon() 221 DumpLayoutImpl(cmd.GetStringParam("savePath"), cmd.GetBoolParam("listWindows", false), false, false, err); in StartDaemon()
|
| /test/testfwk/arkxtest/jsunit/src/module/kit/ |
| H A D | SysTestKit.js | 64 let cmd = 'hilog -x | grep -i \'' + keyword + '\' | wc -l'; 65 await executePromise(cmd, timeout).then((data) => { 93 function executePromise(cmd, timeout) { 95 SysTestKit.delegator.executeShellCommand(cmd, timeout,
|
| /test/xts/hats/kernel/mmap_v/ |
| H A D | MmapVApiTest.cpp | 119 char cmd[NUM]; in TstSmaps() local 124 int ret = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, in TstSmaps() 130 fp = popen(cmd, "r"); in TstSmaps()
|
| /test/xts/dcts/distributedhardware/distributedaudionewtest/ |
| H A D | distributedaudiotest.cpp | 679 std::string HandleAudioEvent(int32_t cmd) in HandleAudioEvent() argument 682 if (cmd == CMD_FIND) { in HandleAudioEvent() 685 if (cmd == CMD_OPEN_SPK) { in HandleAudioEvent() 688 if (cmd == CMD_START_SPK) { in HandleAudioEvent() 691 if (cmd == CMD_STOP_SPK) { in HandleAudioEvent() 694 if (cmd == CMD_CLOSE_SPK) { in HandleAudioEvent() 697 if (cmd == CMD_OPEN_MIC) { in HandleAudioEvent() 700 if (cmd == CMD_START_MIC) { in HandleAudioEvent() 703 if (cmd == CMD_STOP_MIC) { in HandleAudioEvent() 706 if (cmd in HandleAudioEvent() [all...] |
| /test/xts/dcts/distributedhardware/distributedaudiotest/ |
| H A D | distributedaudiotest.cpp | 675 std::string HandleAudioEvent(int32_t cmd) in HandleAudioEvent() argument 678 if (cmd == CMD_FIND) { in HandleAudioEvent() 681 if (cmd == CMD_OPEN_SPK) { in HandleAudioEvent() 684 if (cmd == CMD_START_SPK) { in HandleAudioEvent() 687 if (cmd == CMD_STOP_SPK) { in HandleAudioEvent() 690 if (cmd == CMD_CLOSE_SPK) { in HandleAudioEvent() 693 if (cmd == CMD_OPEN_MIC) { in HandleAudioEvent() 696 if (cmd == CMD_START_MIC) { in HandleAudioEvent() 699 if (cmd == CMD_STOP_MIC) { in HandleAudioEvent() 702 if (cmd in HandleAudioEvent() [all...] |
| /test/xts/tools/lite/reliability/ |
| H A D | utils.py | 41 def exec_cmd(cmd, timeout=10, error_print=True, join_result=False, waitOut=False): 45 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, 49 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
|
| /test/testfwk/xdevice/src/xdevice/_core/testkit/ |
| H A D | kit.py | 48 cmd = "target mount" \ 50 device.connector_command(cmd) 98 prefix_char: the prefix char of parsed cmd 261 cmd = [tool_file, "dump", "badging", app_path] 263 LOG.info("Execute command {} with {}".format(" ".join(cmd), timeout)) 265 sub_process = subprocess.Popen(cmd, stdout=subprocess.PIPE,
|
| /test/ostest/wukong/shell_command/src/ |
| H A D | wukong_main.cpp | 159 WuKongShellCommand cmd(argc, argv); in main() 161 std::cout << cmd.ExecCommand(); in main() 168 std::cout << cmd.ExecCommand(); in main()
|
| /test/ostest/wukong/common/include/ |
| H A D | common.h | 22 // cmd calls 23 std::string runProcess(const std::string &cmd) in runProcess() argument 25 if (FILE* fp = popen(cmd.c_str(), "r")) { in runProcess()
|
| /test/testfwk/xdevice/src/xdevice/_core/ |
| H A D | utils.py | 66 def start_standing_subprocess(cmd, pipe=subprocess.PIPE, return_result=False): 75 cmd: Command to start the subprocess with. 83 process = subprocess.Popen(cmd, stdout=pipe, shell=False, 165 def exec_cmd(cmd, timeout=5 * 60, error_print=True, join_result=False, redirect=False): 173 cmd: A sequence of commands and arguments. 174 timeout: timeout for exe cmd. 189 proc = subprocess.Popen(cmd, stdout=fileno, 193 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, 198 proc = subprocess.Popen(cmd, stdout=fileno, 201 proc = subprocess.Popen(cmd, stdou [all...] |
| /test/testfwk/developer_test/src/core/testkit/ |
| H A D | kit_lite.py | 68 Execute reset command on the device by cmd serial port and then upload 134 cmd = '{} -com:{} -bin:{} -signalbaud:{}' \ 137 LOG.info('The running cmd is {}'.format(cmd)) 139 return_code, out = subprocess.getstatusoutput(cmd)
|