add and enable policy tests
This commit is contained in:
parent
5e68ae38e4
commit
0d3f252c94
@ -485,6 +485,13 @@ add_executable(poly1305test poly1305test.c)
|
|||||||
target_link_libraries(poly1305test ${OPENSSL_TEST_LIBS})
|
target_link_libraries(poly1305test ${OPENSSL_TEST_LIBS})
|
||||||
add_test(poly1305test poly1305test)
|
add_test(poly1305test poly1305test)
|
||||||
|
|
||||||
|
# policy
|
||||||
|
add_executable(policy policy.c)
|
||||||
|
set_source_files_properties(policy.c PROPERTIES COMPILE_FLAGS
|
||||||
|
-DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\")
|
||||||
|
target_link_libraries(policy ${OPENSSL_TEST_LIBS})
|
||||||
|
add_test(policy policy)
|
||||||
|
|
||||||
# pq_test
|
# pq_test
|
||||||
add_executable(pq_test pq_test.c)
|
add_executable(pq_test pq_test.c)
|
||||||
target_link_libraries(pq_test ${OPENSSL_TEST_LIBS})
|
target_link_libraries(pq_test ${OPENSSL_TEST_LIBS})
|
||||||
|
@ -501,6 +501,39 @@ TESTS += poly1305test
|
|||||||
check_PROGRAMS += poly1305test
|
check_PROGRAMS += poly1305test
|
||||||
poly1305test_SOURCES = poly1305test.c
|
poly1305test_SOURCES = poly1305test.c
|
||||||
|
|
||||||
|
# policy
|
||||||
|
TESTS += policy
|
||||||
|
check_program += policy
|
||||||
|
policy_CPPFLAGS = $(AM_CPPFLAGS) -DCERTSDIR=\"$(srcdir)\"
|
||||||
|
policy_SOURCES = policy.c
|
||||||
|
EXTRA_DIST += policy_intermediate.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_any.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_duplicate.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_invalid.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_mapped.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_mapped_any.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_mapped_oid3.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_require.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_require1.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_require2.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_require_duplicate.pem
|
||||||
|
EXTRA_DIST += policy_intermediate_require_no_policies.pem
|
||||||
|
EXTRA_DIST += policy_leaf.pem
|
||||||
|
EXTRA_DIST += policy_leaf_any.pem
|
||||||
|
EXTRA_DIST += policy_leaf_duplicate.pem
|
||||||
|
EXTRA_DIST += policy_leaf_invalid.pem
|
||||||
|
EXTRA_DIST += policy_leaf_none.pem
|
||||||
|
EXTRA_DIST += policy_leaf_oid1.pem
|
||||||
|
EXTRA_DIST += policy_leaf_oid2.pem
|
||||||
|
EXTRA_DIST += policy_leaf_oid3.pem
|
||||||
|
EXTRA_DIST += policy_leaf_oid4.pem
|
||||||
|
EXTRA_DIST += policy_leaf_oid5.pem
|
||||||
|
EXTRA_DIST += policy_leaf_require.pem
|
||||||
|
EXTRA_DIST += policy_leaf_require1.pem
|
||||||
|
EXTRA_DIST += policy_root.pem
|
||||||
|
EXTRA_DIST += policy_root2.pem
|
||||||
|
EXTRA_DIST += policy_root_cross_inhibit_mapping.pem
|
||||||
|
|
||||||
# pq_test
|
# pq_test
|
||||||
TESTS += pq_test.sh
|
TESTS += pq_test.sh
|
||||||
check_PROGRAMS += pq_test
|
check_PROGRAMS += pq_test
|
||||||
|
@ -353,6 +353,7 @@ $CP $libcrypto_regress/evp/evptests.txt tests
|
|||||||
$CP $libcrypto_regress/aead/*.txt tests
|
$CP $libcrypto_regress/aead/*.txt tests
|
||||||
$CP $libcrypto_regress/ct/ctlog.conf tests
|
$CP $libcrypto_regress/ct/ctlog.conf tests
|
||||||
$CP $libcrypto_regress/ct/*.crt tests
|
$CP $libcrypto_regress/ct/*.crt tests
|
||||||
|
$CP $libcrypto_regress/x509/policy/*.pem tests
|
||||||
|
|
||||||
# generate libcrypto freenull.c
|
# generate libcrypto freenull.c
|
||||||
awk -f $libcrypto_regress/free/freenull.awk \
|
awk -f $libcrypto_regress/free/freenull.awk \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user