Skip to content

Commit 1c939b9

Browse files
committed
cmake: add custom-page-sizes tests
1 parent 2b5904f commit 1c939b9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CMakeLists.txt

+9
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ set_tests_properties(toywasm-cli-exception-handling-test-disable-jump-table PROP
184184
set_tests_properties(toywasm-cli-exception-handling-test-disable-jump-table PROPERTIES LABELS "exception-handling")
185185
endif()
186186

187+
if(TOYWASM_ENABLE_WASM_CUSTOM_PAGE_SIZES)
188+
add_test(NAME toywasm-cli-wasm3-spec-test-custom-page-sizes
189+
COMMAND ./test/run-wasm3-spec-test-custom-page-sizes.sh --exec "${TOYWASM_CLI} --repl --repl-prompt=wasm3" --timeout 60 --spectest ${CMAKE_BINARY_DIR}/spectest.wasm
190+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
191+
)
192+
set_tests_properties(toywasm-cli-wasm3-spec-test-custom-page-sizes PROPERTIES ENVIRONMENT "${TEST_ENV}")
193+
set_tests_properties(toywasm-cli-wasm3-spec-test-custom-page-sizes PROPERTIES LABELS "spec;custom-page-sizes")
194+
endif()
195+
187196
if(TOYWASM_ENABLE_WASI)
188197
add_test(NAME toywasm-cli-wasi-testsuite
189198
COMMAND ./test/run-wasi-testsuite.sh

0 commit comments

Comments
 (0)