Skip to content

Commit

Permalink
added build testing flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ecdeye committed Jun 27, 2024
1 parent 21528ef commit 43c30ec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
28 changes: 13 additions & 15 deletions tool-openssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,16 @@ if(MSVC AND CMAKE_BUILD_TYPE_LOWER MATCHES "relwithdebinfo" AND FIPS)
install (FILES $<TARGET_FILE_DIR:openssl>/openssl.pdb DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()


add_executable(
x509_test

x509_test.cc
../tool/args.cc
../tool/file.cc
x509.cc
)

target_link_libraries(x509_test boringssl_gtest_main ssl crypto)
enable_testing()
add_test(NAME X509Test COMMAND x509_test)


if(BUILD_TESTING)
add_executable(
x509_test

x509_test.cc
../tool/args.cc
../tool/file.cc
x509.cc
)

target_link_libraries(x509_test boringssl_gtest_main ssl crypto)
add_dependencies(all_tests x509_test)
endif()
5 changes: 5 additions & 0 deletions util/all_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,10 @@
"cmd": [
"crypto/rwlock_static_init"
]
},
{
"cmd": [
"tool-openssl/x509_test"
]
}
]

0 comments on commit 43c30ec

Please sign in to comment.