Add regress keypairtest

This commit is contained in:
kinichiro 2018-03-12 23:25:27 +09:00
parent 0ed618095d
commit b7397ab184
3 changed files with 23 additions and 0 deletions

View File

@ -5,6 +5,7 @@ include_directories(
../crypto/modes
../crypto/asn1
../ssl
../tls
../apps/openssl
../apps/openssl/compat
)
@ -213,6 +214,14 @@ add_executable(igetest igetest.c)
target_link_libraries(igetest ${TESTS_LIBS})
add_test(igetest igetest)
# keypairtest
add_executable(keypairtest keypairtest.c)
target_link_libraries(keypairtest ${TESTS_LIBS})
add_test(keypairtest keypairtest
${CMAKE_CURRENT_SOURCE_DIR}/ca.pem
${CMAKE_CURRENT_SOURCE_DIR}/server.pem
${CMAKE_CURRENT_SOURCE_DIR}/server.pem)
# md4test
add_executable(md4test md4test.c)
target_link_libraries(md4test ${TESTS_LIBS})

View File

@ -3,6 +3,7 @@ include $(top_srcdir)/Makefile.am.common
AM_CPPFLAGS += -I $(top_srcdir)/crypto/modes
AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1
AM_CPPFLAGS += -I $(top_srcdir)/ssl
AM_CPPFLAGS += -I $(top_srcdir)/tls
AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl
AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat
AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/apps/openssl/cert.pem\"
@ -219,6 +220,12 @@ TESTS += igetest
check_PROGRAMS += igetest
igetest_SOURCES = igetest.c
# keypairtest
TESTS += keypairtest.sh
check_PROGRAMS += keypairtest
keypairtest_SOURCES = keypairtest.c
EXTRA_DIST += keypairtest.sh
# md4test
TESTS += md4test
check_PROGRAMS += md4test

7
tests/keypairtest.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
set -e
TEST=./keypairtest
if [ -e ./keypairtest.exe ]; then
TEST=./keypairtest.exe
fi
$TEST $srcdir/ca.pem $srcdir/server.pem $srcdir/server.pem