mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Change the cpp test to be optional
Remove unnecessary defines from the test. Test by defining TEST_CPP using makefiles or cmake.
This commit is contained in:
parent
40741f8ce5
commit
0211c32c9a
4 changed files with 14 additions and 13 deletions
|
|
@ -16,9 +16,11 @@ target_link_libraries(selftest ${libs})
|
|||
add_executable(benchmark benchmark.c)
|
||||
target_link_libraries(benchmark ${libs})
|
||||
|
||||
add_executable(header_test header_test.cpp)
|
||||
target_link_libraries(header_test ${libs})
|
||||
|
||||
if(TEST_CPP)
|
||||
add_executable(header_test header_test.cpp)
|
||||
target_link_libraries(header_test ${libs})
|
||||
endif()
|
||||
|
||||
add_executable(ssl_cert_test ssl_cert_test.c)
|
||||
target_link_libraries(ssl_cert_test ${libs})
|
||||
|
||||
|
|
|
|||
|
|
@ -102,14 +102,6 @@
|
|||
|
||||
#if defined(MBEDTLS_PLATFORM_C)
|
||||
#include "mbedtls/platform.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#define mbedtls_printf printf
|
||||
#define mbedtls_snprintf snprintf
|
||||
#define mbedtls_exit exit
|
||||
#define MBEDTLS_EXIT_SUCCESS EXIT_SUCCESS
|
||||
#define MBEDTLS_EXIT_FAILURE EXIT_FAILURE
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue