Tests: Move test-wasm build rules to Tests/LibWasm
This commit is contained in:
parent
da106177b4
commit
26c76a8347
2 changed files with 11 additions and 15 deletions
|
|
@ -432,6 +432,7 @@ if (BUILD_TESTING)
|
|||
LibTLS
|
||||
LibUnicode
|
||||
LibURL
|
||||
LibWasm
|
||||
LibXML
|
||||
)
|
||||
|
||||
|
|
@ -451,20 +452,6 @@ if (BUILD_TESTING)
|
|||
foreach (dir IN LISTS TEST_DIRECTORIES)
|
||||
add_serenity_subdirectory("Tests/${dir}")
|
||||
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()
|
||||
|
||||
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…
Reference in a new issue