1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09: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:
Andrew Kaster 2025-05-19 10:29:21 -06:00 committed by Tim Flynn
parent 1878ed10d2
commit 432bc0f638
Notes: github-actions[bot] 2025-05-19 22:39:01 +00:00
3 changed files with 2 additions and 7 deletions

View file

@ -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)

View file

@ -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

View file

@ -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()