-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds testing of the platform layers, and fixes an issue in the OpenSSL hash calculation discovered by these tests. Fixes #93 Co-authored-by: Nick Banks <nibanks@microsoft.com>
- Loading branch information
Showing
16 changed files
with
1,083 additions
and
3,980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
include_directories(${CMAKE_SOURCE_DIR}/src/platform) | ||
include_directories(${CMAKE_SOURCE_DIR}/submodules/googletest/googletest/include) | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${QUIC_CXX_FLAGS}") | ||
|
||
set( | ||
SOURCES | ||
main.cpp | ||
CryptTest.cpp | ||
DataPathTest.cpp | ||
# StorageTest.cpp | ||
TlsTest.cpp | ||
) | ||
|
||
add_executable(msquicplatformtest ${SOURCES}) | ||
|
||
if(WIN32) | ||
target_link_libraries(msquicplatformtest ntdll ws2_32 bcrypt) | ||
endif() | ||
|
||
if(QUIC_TLS STREQUAL "schannel") | ||
target_link_libraries(msquicplatformtest schannel ncrypt crypt32) | ||
elseif(QUIC_TLS STREQUAL "openssl") | ||
add_dependencies(msquicplatformtest OpenSSL) | ||
target_link_libraries(msquicplatformtest | ||
${QUIC_BUILD_DIR}/openssl/lib/libcrypto.so | ||
${QUIC_BUILD_DIR}/openssl/lib/libssl.so) | ||
elseif(QUIC_TLS STREQUAL "mitls") | ||
target_link_libraries(msquicplatformtest kremlib evercrypt mitls quiccrypto ncrypt crypt32) | ||
endif() | ||
|
||
target_link_libraries(msquicplatformtest platform gtest) | ||
|
||
add_test(msquicplatformtest msquicplatformtest) |
Oops, something went wrong.