mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 13:32:23 +00:00
Tests: Move test-wasm build rules to Tests/LibWasm
This commit is contained in:
parent
da106177b4
commit
26c76a8347
Notes:
github-actions[bot]
2025-05-19 22:38:32 +00:00
Author: https://github.com/ADKaster
Commit: 26c76a8347
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4821
Reviewed-by: https://github.com/trflynn89 ✅
2 changed files with 11 additions and 15 deletions
|
@ -432,6 +432,7 @@ if (BUILD_TESTING)
|
||||||
LibTLS
|
LibTLS
|
||||||
LibUnicode
|
LibUnicode
|
||||||
LibURL
|
LibURL
|
||||||
|
LibWasm
|
||||||
LibXML
|
LibXML
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -451,20 +452,6 @@ if (BUILD_TESTING)
|
||||||
foreach (dir IN LISTS TEST_DIRECTORIES)
|
foreach (dir IN LISTS TEST_DIRECTORIES)
|
||||||
add_serenity_subdirectory("Tests/${dir}")
|
add_serenity_subdirectory("Tests/${dir}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# test-wasm
|
|
||||||
add_executable(test-wasm
|
|
||||||
../../Tests/LibWasm/test-wasm.cpp
|
|
||||||
../../Libraries/LibTest/JavaScriptTestRunnerMain.cpp)
|
|
||||||
target_link_libraries(test-wasm AK LibCore LibFileSystem LibTest LibWasm LibJS LibCrypto LibGC)
|
|
||||||
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 "${wasm_test_root}/Libraries/LibWasm/Tests"
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS js COMPONENT js)
|
install(TARGETS js COMPONENT js)
|
||||||
|
|
|
@ -1 +1,10 @@
|
||||||
serenity_testjs_test(test-wasm.cpp test-wasm LIBS LibWasm LibJS LibCrypto)
|
add_executable(test-wasm test-wasm.cpp)
|
||||||
|
target_link_libraries(test-wasm AK LibCore LibFileSystem JavaScriptTestRunnerMain LibTest LibWasm LibJS LibCrypto LibGC)
|
||||||
|
set(wasm_test_root "${SERENITY_PROJECT_ROOT}")
|
||||||
|
if (INCLUDE_WASM_SPEC_TESTS)
|
||||||
|
set(wasm_test_root "${Lagom_BINARY_DIR}")
|
||||||
|
endif()
|
||||||
|
add_test(
|
||||||
|
NAME Wasm
|
||||||
|
COMMAND test-wasm --show-progress=false "${wasm_test_root}/Libraries/LibWasm/Tests"
|
||||||
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue