Skip to content

Commit 83b3655

Browse files
authored
spec-test-script: Skip a few tests for xtensa qemu (#3664)
Because these test cases require more memory than what nuttx on esp32s3 qemu can afford.
1 parent 2f147fa commit 83b3655

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

tests/wamr-test-suites/spec-test-script/all.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ def ignore_the_case(
9494
if "i386" == target and case_name in ["float_exprs", "conversions"]:
9595
return True
9696

97+
# esp32s3 qemu doesn't have PSRAM emulation
98+
if qemu_flag and target == 'xtensa' and case_name in ["memory_size"]:
99+
return True
100+
97101
if gc_flag:
98102
if case_name in ["array_init_elem", "array_init_data"]:
99103
return True

tests/wamr-test-suites/spec-test-script/runtest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,12 @@ def test_assert_return(r, opts, form):
833833
if ' ' in func:
834834
func = func.replace(' ', '\\')
835835

836+
# Note: 'as-memory.grow-first' doesn't actually grow memory.
837+
# (thus not in this list)
838+
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'}:
839+
log("ignoring memory.grow test")
840+
return
841+
836842
if m.group(2) == '':
837843
args = []
838844
else:

0 commit comments

Comments
 (0)