File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2162,7 +2162,9 @@ endif()
21622162# Tests and Examples
21632163####################################################
21642164
2165+ enable_testing ()
21652166if (WOLFSSL_EXAMPLES)
2167+
21662168 # Build wolfSSL client example
21672169 add_executable (client
21682170 ${CMAKE_CURRENT_SOURCE_DIR} /examples/client/client.c )
@@ -2231,6 +2233,9 @@ if(WOLFSSL_EXAMPLES)
22312233 set_property (TARGET unit_test
22322234 PROPERTY RUNTIME_OUTPUT_NAME
22332235 unit.test )
2236+ add_test (NAME unit_test
2237+ COMMAND $<TARGET_FILE :unit_test >
2238+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
22342239endif ()
22352240
22362241if (WOLFSSL_CRYPT_TESTS)
@@ -2270,6 +2275,9 @@ if(WOLFSSL_CRYPT_TESTS)
22702275 if (WOLFSSL_CRYPT_TESTS_HELP)
22712276 target_compile_options (wolfcrypttest PRIVATE "-DHAVE_WOLFCRYPT_TEST_OPTIONS" )
22722277 endif ()
2278+ add_test (NAME wolfcrypttest
2279+ COMMAND $<TARGET_FILE :wolfcrypttest >
2280+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
22732281
22742282 # Build wolfCrypt benchmark executable.
22752283 add_executable (wolfcryptbench
You can’t perform that action at this time.
0 commit comments