Skip to content

Commit

Permalink
spec-test-script: Skip a few tests for xtensa qemu (bytecodealliance#…
Browse files Browse the repository at this point in the history
…3664)

Because these test cases require more memory than what nuttx on esp32s3 qemu can afford.
  • Loading branch information
yamt authored Jul 25, 2024
1 parent 2f147fa commit 83b3655
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/wamr-test-suites/spec-test-script/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def ignore_the_case(
if "i386" == target and case_name in ["float_exprs", "conversions"]:
return True

# esp32s3 qemu doesn't have PSRAM emulation
if qemu_flag and target == 'xtensa' and case_name in ["memory_size"]:
return True

if gc_flag:
if case_name in ["array_init_elem", "array_init_data"]:
return True
Expand Down
6 changes: 6 additions & 0 deletions tests/wamr-test-suites/spec-test-script/runtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,12 @@ def test_assert_return(r, opts, form):
if ' ' in func:
func = func.replace(' ', '\\')

# Note: 'as-memory.grow-first' doesn't actually grow memory.
# (thus not in this list)
if opts.qemu and opts.target == 'xtensa' and func in {'as-memory.grow-value', 'as-memory.grow-size', 'as-memory.grow-last', 'as-memory.grow-everywhere'}:
log("ignoring memory.grow test")
return

if m.group(2) == '':
args = []
else:
Expand Down

0 comments on commit 83b3655

Please sign in to comment.