Skip to content

Commit

Permalink
s2n: enable more ptests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-roos committed Mar 4, 2024
1 parent 9f04b5d commit eb35172
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 120 deletions.
217 changes: 103 additions & 114 deletions recipes-sdk/s2n/s2n/run-ptest
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ TESTS="\
./s2n_server_signature_algorithms_extension_test \
./s2n_server_supported_versions_extension_test \
./s2n_set_test \
./s2n_shutdown_test \
./s2n_ssl_prf_test \
./s2n_stream_cipher_null_test \
./s2n_stuffer_base64_test \
Expand Down Expand Up @@ -123,6 +124,108 @@ TESTS="\
./s2n_tls_record_stuffer_test \
./s2n_utils_test \
./s2n_wildcard_hostname_test \
./s2n_ecc_evp_test \
./s2n_tls13_server_cert_test \
./s2n_tls13_hybrid_shared_secret_test \
./s2n_tls13_handshake_early_data_test \
./s2n_stuffer_test \
./s2n_resume_test \
./s2n_quic_support_io_test \
./s2n_quic_support_test \
./s2n_psk_test \
./s2n_psk_offered_test \
./s2n_pq_kem_test \
./s2n_kem_test \
./s2n_extensions_server_key_share_select_test \
./s2n_early_data_test \
./s2n_client_session_ticket_extension_test \
./s2n_client_key_share_extension_pq_test \
./s2n_blob_test \
./s2n_aead_aes_test \
./s2n_aead_chacha20_poly1305_test \
./s2n_3des_test \
./s2n_async_pkey_test \
./s2n_auth_selection_test \
./s2n_cert_chain_and_key_test \
./s2n_certificate_extensions_test \
./s2n_certificate_test \
./s2n_cipher_suite_match_test \
./s2n_client_auth_handshake_test \
./s2n_client_cert_verify_test \
./s2n_client_extensions_test \
./s2n_client_hello_recv_test \
./s2n_client_hello_request_test \
./s2n_client_hello_retry_test \
./s2n_client_hello_test \
./s2n_client_psk_extension_test \
./s2n_client_renegotiation_info_extension_test \
./s2n_client_signature_algorithms_extension_test \
./s2n_client_supported_versions_extension_test \
./s2n_config_test \
./s2n_connection_test \
./s2n_cookie_test \
./s2n_crl_test \
./s2n_drain_alert_test \
./s2n_early_data_io_test \
./s2n_ecdsa_test \
./s2n_encrypted_extensions_test \
./s2n_extended_master_secret_test \
./s2n_extension_type_test \
./s2n_handshake_partial_test \
./s2n_handshake_test \
./s2n_mem_allocator_test \
./s2n_mem_test \
./s2n_mem_usage_test \
./s2n_mutual_auth_test \
./s2n_optional_client_auth_test \
./s2n_override_openssl_random_test \
./s2n_pem_rsa_dhe_test \
./s2n_pem_test \
./s2n_pkey_test \
./s2n_post_handshake_recv_test \
./s2n_recv_test \
./s2n_release_non_empty_buffers_test \
./s2n_renegotiate_io_test \
./s2n_renegotiate_test \
./s2n_rsa_pss_rsae_test \
./s2n_rsa_pss_test \
./s2n_security_policies_test \
./s2n_self_talk_alerts_test \
./s2n_self_talk_alpn_test \
./s2n_self_talk_broken_pipe_test \
./s2n_self_talk_client_hello_cb_test \
./s2n_self_talk_custom_io_test \
./s2n_self_talk_io_mem_test \
./s2n_self_talk_key_log_test \
./s2n_self_talk_min_protocol_version_test \
./s2n_self_talk_nonblocking_test \
./s2n_self_talk_npn_test \
./s2n_self_talk_offload_signing_test \
./s2n_self_talk_psk_test \
./s2n_self_talk_quic_support_test \
./s2n_self_talk_session_id_test \
./s2n_self_talk_session_resumption_test \
./s2n_self_talk_shutdown_test \
./s2n_self_talk_tls12_test \
./s2n_self_talk_tls13_test \
./s2n_send_key_update_test \
./s2n_server_extensions_test \
./s2n_server_hello_retry_test \
./s2n_server_hello_test \
./s2n_server_key_share_extension_test \
./s2n_server_new_session_ticket_test \
./s2n_server_renegotiation_info_test \
./s2n_server_sct_list_extension_test \
./s2n_signature_algorithms_test \
./s2n_tls13_cert_verify_test \
./s2n_tls13_compute_shared_secret_test \
./s2n_tls13_handshake_test \
./s2n_tls13_new_session_ticket_test \
./s2n_tls13_pq_handshake_test \
./s2n_tls_prf_test \
./s2n_x509_validator_certificate_signatures_test \
./s2n_x509_validator_test \
./s2n_stacktrace_test \
"

for TEST in $TESTS
Expand All @@ -135,117 +238,3 @@ do
echo -e "\nFAIL: s2n unittest: $TEST\n"
fi
done

# disabled tests

# s2n_shutdown_test: https://github.com/aws/s2n-tls/issues/4442
# s2n_ecc_evp_test
# s2n_tls13_server_cert_test
# s2n_tls13_hybrid_shared_secret_test
# s2n_tls13_handshake_early_data_test
# s2n_stuffer_test
# s2n_resume_test
# s2n_quic_support_io_test
# s2n_quic_support_test
# s2n_psk_test
# s2n_psk_offered_test
# s2n_pq_kem_test
# s2n_kem_test
# s2n_extensions_server_key_share_select_test
# s2n_early_data_test
# s2n_client_session_ticket_extension_test
# s2n_client_key_share_extension_pq_test
# s2n_blob_test
# s2n_aead_aes_test
# s2n_aead_chacha20_poly1305_test
# s2n_3des_test
# s2nc
# s2nd
# s2n_async_pkey_test
# s2n_auth_selection_test
# s2n_cert_chain_and_key_test
# s2n_certificate_extensions_test
# s2n_certificate_test
# s2n_cipher_suite_match_test
# s2n_client_auth_handshake_test
# s2n_client_cert_verify_test
# s2n_client_extensions_test
# s2n_client_hello_recv_test
# s2n_client_hello_request_test
# s2n_client_hello_retry_test
# s2n_client_hello_test
# s2n_client_psk_extension_test
# s2n_client_renegotiation_info_extension_test
# s2n_client_signature_algorithms_extension_test
# s2n_client_status_request_extension_test
# s2n_client_supported_versions_extension_test
# s2n_config_test
# s2n_connection_test
# s2n_cookie_test
# s2n_crl_test
# s2n_drain_alert_test
# s2n_early_data_io_test
# s2n_ecdsa_test
# s2n_encrypted_extensions_test
# s2n_extended_master_secret_test
# s2n_extension_type_test
# s2n_handshake_partial_test
# s2n_handshake_test
# s2n_mem_allocator_test
# s2n_mem_test
# s2n_mem_usage_test
# s2n_mutual_auth_test
# s2n_optional_client_auth_test
# s2n_override_openssl_random_test
# s2n_pem_rsa_dhe_test
# s2n_pem_test
# s2n_pkey_test
# s2n_post_handshake_recv_test
# s2n_pq_kem_kat_kyber_r3_test
# s2n_recv_test
# s2n_release_non_empty_buffers_test
# s2n_renegotiate_io_test
# s2n_renegotiate_test
# s2n_rsa_pss_rsae_test
# s2n_rsa_pss_test
# s2n_security_policies_test
# s2n_self_talk_alerts_test
# s2n_self_talk_alpn_test
# s2n_self_talk_broken_pipe_test
# s2n_self_talk_client_hello_cb_test
# s2n_self_talk_custom_io_test
# s2n_self_talk_io_mem_test
# s2n_self_talk_key_log_test
# s2n_self_talk_min_protocol_version_test
# s2n_self_talk_nonblocking_test
# s2n_self_talk_npn_test
# s2n_self_talk_offload_signing_test
# s2n_self_talk_psk_test
# s2n_self_talk_quic_support_test
# s2n_self_talk_session_id_test
# s2n_self_talk_session_resumption_test
# s2n_self_talk_shutdown_test
# s2n_self_talk_tls12_test
# s2n_self_talk_tls13_test
# s2n_send_key_update_test
# s2n_server_certificate_status_test
# s2n_server_extensions_test
# s2n_server_hello_retry_test
# s2n_server_hello_test
# s2n_server_key_share_extension_test
# s2n_server_new_session_ticket_test
# s2n_server_renegotiation_info_test
# s2n_server_sct_list_extension_test
# s2n_server_status_request_extension_test
# s2n_session_ticket_test
# s2n_signature_algorithms_test
# s2n_tls13_cert_verify_test
# s2n_tls13_compute_shared_secret_test
# s2n_tls13_handshake_test
# s2n_tls13_new_session_ticket_test
# s2n_tls13_pq_handshake_test
# s2n_tls_hybrid_prf_test
# s2n_tls_prf_test
# s2n_x509_validator_certificate_signatures_test
# s2n_x509_validator_test
# s2n_stacktrace_test
16 changes: 10 additions & 6 deletions recipes-sdk/s2n/s2n_1.4.5.bb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# -
# -
# -
# -
# -============================================================================
# - S2N SUBCOMPONENTS:
# -
Expand All @@ -32,9 +32,9 @@
# - SIKE
# - -> s2n/pq-crypto/sike_r1/LICENSE.txt
# -
# -
# -
#
# -
# -
#
#

SUMMARY = "s2n"
Expand Down Expand Up @@ -83,11 +83,15 @@ EXTRA_OECMAKE += "-DUNSAFE_TREAT_WARNINGS_AS_ERRORS=OFF"

FILES:${PN}-dev += "${libdir}/*/cmake"

RDEPENDS:${PN}-ptest += "openssl"
RDEPENDS:${PN}-ptest += "\
bash \
openssl \
"

do_install_ptest () {
install -d ${D}${PTEST_PATH}/tests
cp -r ${B}/bin/* ${D}${PTEST_PATH}/tests/
cp -r ${S}/tests/pems ${D}${PTEST_PATH}/
}

BBCLASSEXTEND = "native nativesdk"

0 comments on commit eb35172

Please sign in to comment.