Lines Matching refs:command
69 def exec_command_check(command, expect_result, exp_status):
70 status, exec_result = subprocess.getstatusoutput(command)
73 print_failure(f"[{caller_class}:{caller_function}:{caller_lineno}][{command}][{status}:{exp_status}]"
79 f"[{caller_class}:{caller_function}:{caller_lineno}][{command}]{expect_result}")
81 f"[{caller_class}:{caller_function}:{caller_lineno}][{command}]{exec_result}")
113 expect_result += " -h, --help Display command line options\n"
154 command = f"{self.cmd} -h"
155 ret = exec_command_check(command, expect_result, RetStatus.OK)
156 command = f"{self.cmd} --help"
157 ret &= exec_command_check(command, expect_result, RetStatus.OK)
167 command = f"{self.cmd} -v"
168 ret = exec_command_check(command, expect_result, RetStatus.OK)
169 command = f"{self.cmd} --version"
170 ret &= exec_command_check(command, expect_result, RetStatus.OK)
179 command = f"{self.cmd} -abc"
180 ret = exec_command_check(command, expect_result, RetStatus.ERR)
185 command = f"{self.cmd} --system full"
186 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
190 command = f"{self.cmd} --mode ipc"
191 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
192 command = f"{self.cmd} -m ipc"
193 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
197 command = f"{self.cmd} -p abc.test"
198 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
199 command = f"{self.cmd} --package abc.test"
200 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
204 command = f"{self.cmd} --hash"
205 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
209 command = f"{self.cmd} -r abc:./"
210 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
214 command = f"{self.cmd} -o test.file"
215 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
220 command = f"{self.cmd} --gen-c"
221 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
228 command = f"{self.cmd} --intf-type hdi --dump-metadata"
229 ret = exec_command_check(command, expect_result, RetStatus.ERR)
233 command = f"{self.cmd} --intf-type hdi -s"
234 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
239 command = f"{self.cmd} --intf-type hdi --gen-ts"
240 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
241 command = f"{self.cmd} --intf-type hdi --gen-rust"
242 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
256 command = f"{self.cmd} -abc"
257 ret = exec_command_check(command, expect_result, RetStatus.ERR)
263 command = f"{self.cmd} --intf-type hdi --mode low"
264 ret = exec_command_check(command, expect_result, RetStatus.OK)
266 command = f"{self.cmd} --intf-type hdi -m passthrough"
267 ret &= exec_command_check(command, expect_result, RetStatus.OK)
269 command = f"{self.cmd} --intf-type hdi --mode ipc"
270 ret &= exec_command_check(command, expect_result, RetStatus.OK)
272 command = f"{self.cmd} --intf-type hdi -m kernel"
273 ret &= exec_command_check(command, expect_result, RetStatus.OK)
276 command = f"{self.cmd} --intf-type hdi --mode abc"
277 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
284 command = f"{self.cmd} --intf-type hdi -p abc"
285 ret = exec_command_check(command, expect_result, RetStatus.OK)
293 command = f"{self.cmd} --intf-type hdi --dump-ast"
294 ret = exec_command_check(command, expect_result, RetStatus.ERR)
297 command = f"{self.cmd} --intf-type sa --dump-ast"
298 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
300 command = f"{self.cmd} --dump-ast"
301 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
310 command = f"{self.cmd} --intf-type hdi --dump-metadata"
311 ret = exec_command_check(command, expect_result, RetStatus.ERR)
314 command = f"{self.cmd} --intf-type sa --dump-metadata"
315 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
323 command = f"{self.cmd} --intf-type hdi --hash"
324 ret = exec_command_check(command, expect_result, RetStatus.ERR)
328 command = f"{self.cmd} --hash"
329 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
338 command = f"{self.cmd} --intf-type sa -r"
339 ret = exec_command_check(command, expect_result, RetStatus.ERR)
342 command = f"{self.cmd} --intf-type sa -r x:xx"
343 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
347 command = f"{self.cmd} --intf-type sa -r x:./"
348 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
352 command = f"{self.cmd} --intf-type hdi -r"
353 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
356 command = f"{self.cmd} --intf-type hdi -r x:xx"
357 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
360 command = f"{self.cmd} --intf-type hdi -r x:./"
361 ret &= exec_command_check(command, expect_result, RetStatus.OK)
370 command = f"{self.cmd} --intf-type sa -D"
371 ret = exec_command_check(command, expect_result, RetStatus.ERR)
375 command = f"{self.cmd} --intf-type sa -D ./"
376 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
381 command = f"{self.cmd} --intf-type sa -D ./x"
382 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
386 command = f"{self.cmd} --intf-type hdi -D"
387 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
390 command = f"{self.cmd} --intf-type hdi -D {os.path.dirname(os.path.abspath(__file__))}"
391 ret &= exec_command_check(command, expect_result, RetStatus.OK)
394 command = f"{self.cmd} --intf-type hdi -D {os.path.dirname(os.path.abspath(__file__))}/x"
395 ret &= exec_command_check(command, expect_result, RetStatus.OK)
404 command = f"{self.cmd} --intf-type sa -d"
405 ret = exec_command_check(command, expect_result, RetStatus.ERR)
408 command = f"{self.cmd} --intf-type sa -d ./"
409 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
412 command = f"{self.cmd} --intf-type sa -d x"
413 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
417 command = f"{self.cmd} --intf-type hdi -d"
418 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
421 command = f"{self.cmd} --intf-type hdi -d ./"
422 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
425 command = f"{self.cmd} --intf-type hdi -d x"
426 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
435 command = f"{self.cmd} --intf-type sa -o"
436 ret = exec_command_check(command, expect_result, RetStatus.ERR)
440 command = f"{self.cmd} --intf-type sa -o xx"
441 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
445 command = f"{self.cmd} --intf-type hdi -o"
446 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
449 command = f"{self.cmd} --intf-type hdi -o xx"
450 ret &= exec_command_check(command, expect_result, RetStatus.OK)
459 command = f"{self.cmd} --intf-type sa -s"
460 ret = exec_command_check(command, expect_result, RetStatus.ERR)
464 command = f"{self.cmd} --intf-type hdi -s aaa"
465 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
475 command = f"{self.cmd} --intf-type sa --gen-c"
476 ret = exec_command_check(command, expect_result, RetStatus.ERR)
479 command = f"{self.cmd} --intf-type hdi --gen-c"
480 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
488 command = f"{self.cmd} --intf-type sa --gen-cpp"
489 ret = exec_command_check(command, expect_result, RetStatus.ERR)
492 command = f"{self.cmd} --intf-type hdi --gen-cpp"
493 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
503 command = f"{self.cmd} --intf-type sa --gen-java"
504 ret = exec_command_check(command, expect_result, RetStatus.ERR)
507 command = f"{self.cmd} --intf-type hdi --gen-java"
508 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
515 command = f"{self.cmd} --intf-type sa --gen-rust"
516 ret = exec_command_check(command, expect_result, RetStatus.ERR)
521 command = f"{self.cmd} --intf-type hdi --gen-rust"
522 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
530 command = f"{self.cmd} --intf-type sa --gen-ts"
531 ret = exec_command_check(command, expect_result, RetStatus.ERR)
536 command = f"{self.cmd} --intf-type hdi --gen-ts"
537 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
545 command = f"{self.cmd} --intf-type sa --log-domainid xx"
546 ret = exec_command_check(command, expect_result, RetStatus.ERR)
550 command = f"{self.cmd} --intf-type hdi --log-domainid xx"
551 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
560 command = f"{self.cmd} --intf-type sa --log-tag"
561 ret = exec_command_check(command, expect_result, RetStatus.ERR)
564 command = f"{self.cmd} --intf-type sa --log-tag xx"
565 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
568 command = f"{self.cmd} --intf-type sa --log-domainid xx --log-tag xx"
569 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
573 command = f"{self.cmd} --intf-type hdi ---log-tag xx"
574 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
583 command = f"{self.cmd} --intf-type sa -t"
584 ret = exec_command_check(command, expect_result, RetStatus.ERR)
587 command = f"{self.cmd} --intf-type sa -t xx"
588 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
592 command = f"{self.cmd} --intf-type hdi -t"
593 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
597 command = f"{self.cmd} --intf-type hdi -t xx"
598 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
606 command = f"{self.cmd} --intf-type sa --system"
607 ret = exec_command_check(command, expect_result, RetStatus.ERR)
610 command = f"{self.cmd} --intf-type sa --system xx"
611 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
615 command = f"{self.cmd} --intf-type sa --system mini"
616 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
620 command = f"{self.cmd} --intf-type hdi --system"
621 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
624 command = f"{self.cmd} --intf-type hdi --system xx"
625 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
628 command = f"{self.cmd} --intf-type hdi --system mini"
629 ret &= exec_command_check(command, expect_result, RetStatus.OK)
631 command = f"{self.cmd} --intf-type hdi --system lite"
632 ret &= exec_command_check(command, expect_result, RetStatus.OK)
634 command = f"{self.cmd} --intf-type hdi --system full"
635 ret &= exec_command_check(command, expect_result, RetStatus.OK)
641 command = f"{self.cmd} --intf-type sa"
642 ret = exec_command_check(command, expect_result, RetStatus.ERR)
645 command = f"{self.cmd} --intf-type hdi"
646 ret &= exec_command_check(command, expect_result, RetStatus.OK)
649 command = f"{self.cmd} --intf-type xxx"
650 ret &= exec_command_check(command, expect_result, RetStatus.ERR)
654 command = f"{self.cmd} --intf-type"
655 ret &= exec_command_check(command, expect_result, RetStatus.ERR)