diff options
| author | Theo Buehler <tb@openbsd.org> | 2023-04-28 11:42:10 -0600 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2023-04-28 11:42:10 -0600 |
| commit | 0d3f252c94057ef5d32e659e941d7877de37d514 (patch) | |
| tree | b7a016de5b8fc13ce85a9ca42ae92f5c7f658499 | |
| parent | 5e68ae38e43a93aad5150c70bf1e467f8dcefee4 (diff) | |
| download | portable-0d3f252c94057ef5d32e659e941d7877de37d514.tar.gz portable-0d3f252c94057ef5d32e659e941d7877de37d514.tar.bz2 portable-0d3f252c94057ef5d32e659e941d7877de37d514.zip | |
add and enable policy tests
| -rw-r--r-- | tests/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | tests/Makefile.am | 33 | ||||
| -rwxr-xr-x | update.sh | 1 |
3 files changed, 41 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e29cee0..4c38a7d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
| @@ -485,6 +485,13 @@ add_executable(poly1305test poly1305test.c) | |||
| 485 | target_link_libraries(poly1305test ${OPENSSL_TEST_LIBS}) | 485 | target_link_libraries(poly1305test ${OPENSSL_TEST_LIBS}) |
| 486 | add_test(poly1305test poly1305test) | 486 | add_test(poly1305test poly1305test) |
| 487 | 487 | ||
| 488 | # policy | ||
| 489 | add_executable(policy policy.c) | ||
| 490 | set_source_files_properties(policy.c PROPERTIES COMPILE_FLAGS | ||
| 491 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | ||
| 492 | target_link_libraries(policy ${OPENSSL_TEST_LIBS}) | ||
| 493 | add_test(policy policy) | ||
| 494 | |||
| 488 | # pq_test | 495 | # pq_test |
| 489 | add_executable(pq_test pq_test.c) | 496 | add_executable(pq_test pq_test.c) |
| 490 | target_link_libraries(pq_test ${OPENSSL_TEST_LIBS}) | 497 | target_link_libraries(pq_test ${OPENSSL_TEST_LIBS}) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index 7b064c6..a608d31 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
| @@ -501,6 +501,39 @@ TESTS += poly1305test | |||
| 501 | check_PROGRAMS += poly1305test | 501 | check_PROGRAMS += poly1305test |
| 502 | poly1305test_SOURCES = poly1305test.c | 502 | poly1305test_SOURCES = poly1305test.c |
| 503 | 503 | ||
| 504 | # policy | ||
| 505 | TESTS += policy | ||
| 506 | check_program += policy | ||
| 507 | policy_CPPFLAGS = $(AM_CPPFLAGS) -DCERTSDIR=\"$(srcdir)\" | ||
| 508 | policy_SOURCES = policy.c | ||
| 509 | EXTRA_DIST += policy_intermediate.pem | ||
| 510 | EXTRA_DIST += policy_intermediate_any.pem | ||
| 511 | EXTRA_DIST += policy_intermediate_duplicate.pem | ||
| 512 | EXTRA_DIST += policy_intermediate_invalid.pem | ||
| 513 | EXTRA_DIST += policy_intermediate_mapped.pem | ||
| 514 | EXTRA_DIST += policy_intermediate_mapped_any.pem | ||
| 515 | EXTRA_DIST += policy_intermediate_mapped_oid3.pem | ||
| 516 | EXTRA_DIST += policy_intermediate_require.pem | ||
| 517 | EXTRA_DIST += policy_intermediate_require1.pem | ||
| 518 | EXTRA_DIST += policy_intermediate_require2.pem | ||
| 519 | EXTRA_DIST += policy_intermediate_require_duplicate.pem | ||
| 520 | EXTRA_DIST += policy_intermediate_require_no_policies.pem | ||
| 521 | EXTRA_DIST += policy_leaf.pem | ||
| 522 | EXTRA_DIST += policy_leaf_any.pem | ||
| 523 | EXTRA_DIST += policy_leaf_duplicate.pem | ||
| 524 | EXTRA_DIST += policy_leaf_invalid.pem | ||
| 525 | EXTRA_DIST += policy_leaf_none.pem | ||
| 526 | EXTRA_DIST += policy_leaf_oid1.pem | ||
| 527 | EXTRA_DIST += policy_leaf_oid2.pem | ||
| 528 | EXTRA_DIST += policy_leaf_oid3.pem | ||
| 529 | EXTRA_DIST += policy_leaf_oid4.pem | ||
| 530 | EXTRA_DIST += policy_leaf_oid5.pem | ||
| 531 | EXTRA_DIST += policy_leaf_require.pem | ||
| 532 | EXTRA_DIST += policy_leaf_require1.pem | ||
| 533 | EXTRA_DIST += policy_root.pem | ||
| 534 | EXTRA_DIST += policy_root2.pem | ||
| 535 | EXTRA_DIST += policy_root_cross_inhibit_mapping.pem | ||
| 536 | |||
| 504 | # pq_test | 537 | # pq_test |
| 505 | TESTS += pq_test.sh | 538 | TESTS += pq_test.sh |
| 506 | check_PROGRAMS += pq_test | 539 | check_PROGRAMS += pq_test |
| @@ -353,6 +353,7 @@ $CP $libcrypto_regress/evp/evptests.txt tests | |||
| 353 | $CP $libcrypto_regress/aead/*.txt tests | 353 | $CP $libcrypto_regress/aead/*.txt tests |
| 354 | $CP $libcrypto_regress/ct/ctlog.conf tests | 354 | $CP $libcrypto_regress/ct/ctlog.conf tests |
| 355 | $CP $libcrypto_regress/ct/*.crt tests | 355 | $CP $libcrypto_regress/ct/*.crt tests |
| 356 | $CP $libcrypto_regress/x509/policy/*.pem tests | ||
| 356 | 357 | ||
| 357 | # generate libcrypto freenull.c | 358 | # generate libcrypto freenull.c |
| 358 | awk -f $libcrypto_regress/free/freenull.awk \ | 359 | awk -f $libcrypto_regress/free/freenull.awk \ |
