mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 07:21:54 +00:00
Auto increase port number in lldb validation script (#2492)
This commit is contained in:
parent
2b30bb0fda
commit
377c3d7a38
|
@ -32,7 +32,6 @@ parser.add_argument(
|
|||
|
||||
options = parser.parse_args()
|
||||
|
||||
lldb_command_prologue = f'{options.lldb} -o "process connect -p wasm connect://127.0.0.1:{options.port}"'
|
||||
lldb_command_epilogue = '-o q'
|
||||
|
||||
test_cases = {
|
||||
|
@ -64,8 +63,13 @@ def print_process_output(p):
|
|||
print("Failed to get process output")
|
||||
|
||||
# Step2: Launch WAMR in debug mode and validate lldb commands
|
||||
wamr_cmd = f'{options.wamr} -g=127.0.0.1:{options.port} {WASM_OUT_FILE}'
|
||||
|
||||
iteration = 0
|
||||
for case, cmd in test_cases.items():
|
||||
lldb_command_prologue = f'{options.lldb} -o "process connect -p wasm connect://127.0.0.1:{int(options.port) + iteration}"'
|
||||
wamr_cmd = f'{options.wamr} -g=127.0.0.1:{int(options.port) + iteration} {WASM_OUT_FILE}'
|
||||
iteration += 1
|
||||
|
||||
has_error = False
|
||||
print(f'validating case [{case}] ...', end='', flush=True)
|
||||
lldb_cmd = f'{lldb_command_prologue} {cmd} {lldb_command_epilogue}'
|
||||
|
|
Loading…
Reference in New Issue
Block a user