Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PKCS11: Tests: Add test for meta_object #317

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pkcs11/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ set (
common.c
)

set (
SOURCE_META_OBJECT
meta_object_test.c
common.c
)

set (
SOURCE_AES_ENCRYPT
aes_encrypt_test.c
Expand Down Expand Up @@ -279,16 +285,26 @@ add_test (

if (NOT ${LIBCRYPTO_VERSION} VERSION_LESS 1.1)
add_executable (rsa_enc_test ${SOURCE_RSA_ENC_TEST})
add_executable (meta_object_test ${SOURCE_META_OBJECT})

target_link_libraries (
rsa_enc_test
${LIBCRYPTO_LDFLAGS}
"-ldl")
target_link_libraries (
meta_object_test
${LIBCRYPTO_LDFLAGS}
yubihsm
"-ldl")

add_test (
NAME rsa_enc_test
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/rsa_enc_test ${CMAKE_CURRENT_BINARY_DIR}/../yubihsm_pkcs11.${LIBEXT}
)
add_test (
NAME meta_object_test
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/meta_object_test ${CMAKE_CURRENT_BINARY_DIR}/../yubihsm_pkcs11.${LIBEXT}
)
endif(NOT ${LIBCRYPTO_VERSION} VERSION_LESS 1.1)

endif(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows")
Loading
Loading