Meta: Let Wasm test pass without INCLUDE_WASM_SPEC_TESTS

This commit is contained in:
Andrew Kaster 2024-07-29 21:00:58 -06:00 committed by Andrew Kaster
parent 2fa6c445cb
commit 743c71faa7
Notes: github-actions[bot] 2024-07-31 00:38:51 +00:00

View file

@ -584,9 +584,13 @@ if (BUILD_TESTING)
../../Tests/LibWasm/test-wasm.cpp
../../Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp)
target_link_libraries(test-wasm AK LibCore LibFileSystem LibTest LibWasm LibJS LibCrypto)
set(wasm_test_root "${SERENITY_PROJECT_ROOT}")
if (INCLUDE_WASM_SPEC_TESTS)
set(wasm_test_root "${CMAKE_CURRENT_BINARY_DIR}")
endif()
add_test(
NAME Wasm
COMMAND test-wasm --show-progress=false ${CMAKE_CURRENT_BINARY_DIR}/Userland/Libraries/LibWasm/Tests
COMMAND test-wasm --show-progress=false "${wasm_test_root}/Userland/Libraries/LibWasm/Tests"
)
endif()