mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
LibTLS+Tests: Build LibTLS tests from their test directory
Instead of building them from Lagom, build them here and use lagom_test. Also remove second download of cacert.pem.
This commit is contained in:
parent
1878ed10d2
commit
432bc0f638
|
|
@ -7,7 +7,5 @@ set(SOURCES
|
|||
serenity_lib(LibTLS tls)
|
||||
target_link_libraries(LibTLS PRIVATE LibCore LibCrypto LibFileSystem)
|
||||
|
||||
include(ca_certificates_data)
|
||||
|
||||
find_package(OpenSSL REQUIRED)
|
||||
target_link_libraries(LibTLS PUBLIC OpenSSL::SSL)
|
||||
|
|
|
|||
|
|
@ -431,6 +431,7 @@ if (BUILD_TESTING)
|
|||
LibTest
|
||||
LibTextCodec
|
||||
LibThreading
|
||||
LibTLS
|
||||
LibUnicode
|
||||
LibURL
|
||||
LibXML
|
||||
|
|
@ -453,10 +454,6 @@ if (BUILD_TESTING)
|
|||
add_serenity_subdirectory("Tests/${dir}")
|
||||
endforeach()
|
||||
|
||||
# LibTLS needs a special working directory to find cacert.pem
|
||||
lagom_test(../../Tests/LibTLS/TestTLSHandshake.cpp LibTLS LIBS LibTLS LibCrypto)
|
||||
lagom_test(../../Tests/LibTLS/TestTLSCertificateParser.cpp LibTLS LIBS LibTLS LibCrypto)
|
||||
|
||||
# JavaScriptTestRunner + LibTest tests
|
||||
# test-js
|
||||
add_executable(test-js
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ set(TEST_SOURCES
|
|||
)
|
||||
|
||||
foreach(source IN LISTS TEST_SOURCES)
|
||||
serenity_test("${source}" LibTLS LIBS LibTLS LibCrypto)
|
||||
lagom_test("${source}" LibTLS LIBS LibTLS LibCrypto WORKING_DIRECTORY ${Lagom_BINARY_DIR})
|
||||
endforeach()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user