add OCSP test
This commit is contained in:
parent
ccf66c469f
commit
aab671088d
@ -194,6 +194,14 @@ add_executable(mont mont.c)
|
|||||||
target_link_libraries(mont ${OPENSSL_LIBS})
|
target_link_libraries(mont ${OPENSSL_LIBS})
|
||||||
add_test(mont mont)
|
add_test(mont mont)
|
||||||
|
|
||||||
|
# ocsp_test
|
||||||
|
if(ENABLE_EXTRATESTS)
|
||||||
|
add_executable(ocsp_test ocsp_test.c)
|
||||||
|
target_link_libraries(ocsp_test ${OPENSSL_LIBS})
|
||||||
|
add_test(ocsptest ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh)
|
||||||
|
set_tests_properties(ocsptest PROPERTIES ENVIRONMENT "srcdir=${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
# optionstest
|
# optionstest
|
||||||
add_executable(optionstest optionstest.c)
|
add_executable(optionstest optionstest.c)
|
||||||
target_link_libraries(optionstest ${OPENSSL_LIBS})
|
target_link_libraries(optionstest ${OPENSSL_LIBS})
|
||||||
|
@ -208,6 +208,14 @@ TESTS += mont
|
|||||||
check_PROGRAMS += mont
|
check_PROGRAMS += mont
|
||||||
mont_SOURCES = mont.c
|
mont_SOURCES = mont.c
|
||||||
|
|
||||||
|
# ocsp_test
|
||||||
|
if ENABLE_EXTRATESTS
|
||||||
|
TESTS += ocsptest.sh
|
||||||
|
check_PROGRAMS += ocsp_test
|
||||||
|
ocsp_test_SOURCES = ocsp_test.c
|
||||||
|
EXTRA_DIST += ocsptest.sh
|
||||||
|
endif
|
||||||
|
|
||||||
# optionstest
|
# optionstest
|
||||||
TESTS += optionstest
|
TESTS += optionstest
|
||||||
check_PROGRAMS += optionstest
|
check_PROGRAMS += optionstest
|
||||||
|
8
tests/ocsptest.sh
Executable file
8
tests/ocsptest.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
TEST=./ocsp_test
|
||||||
|
if [ -e ./ocsp_test.exe ]; then
|
||||||
|
TEST=./ocsp_test.exe
|
||||||
|
fi
|
||||||
|
$TEST www.amazon.com 443
|
||||||
|
$TEST cloudflare.com 443
|
Loading…
Reference in New Issue
Block a user