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:
parent
1878ed10d2
commit
432bc0f638
Notes:
github-actions[bot]
2025-05-19 22:39:01 +00:00
Author: https://github.com/ADKaster
Commit: 432bc0f638
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4821
Reviewed-by: https://github.com/trflynn89 ✅
3 changed files with 2 additions and 7 deletions
|
@ -7,7 +7,5 @@ set(SOURCES
|
||||||
serenity_lib(LibTLS tls)
|
serenity_lib(LibTLS tls)
|
||||||
target_link_libraries(LibTLS PRIVATE LibCore LibCrypto LibFileSystem)
|
target_link_libraries(LibTLS PRIVATE LibCore LibCrypto LibFileSystem)
|
||||||
|
|
||||||
include(ca_certificates_data)
|
|
||||||
|
|
||||||
find_package(OpenSSL REQUIRED)
|
find_package(OpenSSL REQUIRED)
|
||||||
target_link_libraries(LibTLS PUBLIC OpenSSL::SSL)
|
target_link_libraries(LibTLS PUBLIC OpenSSL::SSL)
|
||||||
|
|
|
@ -431,6 +431,7 @@ if (BUILD_TESTING)
|
||||||
LibTest
|
LibTest
|
||||||
LibTextCodec
|
LibTextCodec
|
||||||
LibThreading
|
LibThreading
|
||||||
|
LibTLS
|
||||||
LibUnicode
|
LibUnicode
|
||||||
LibURL
|
LibURL
|
||||||
LibXML
|
LibXML
|
||||||
|
@ -453,10 +454,6 @@ if (BUILD_TESTING)
|
||||||
add_serenity_subdirectory("Tests/${dir}")
|
add_serenity_subdirectory("Tests/${dir}")
|
||||||
endforeach()
|
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
|
# JavaScriptTestRunner + LibTest tests
|
||||||
# test-js
|
# test-js
|
||||||
add_executable(test-js
|
add_executable(test-js
|
||||||
|
|
|
@ -4,5 +4,5 @@ set(TEST_SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach(source IN LISTS 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()
|
endforeach()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue