ring/sources.cmake
David Benjamin 847a395a50 Use sources.cmake for the test_support library
As part of this, align the generated and standalone builds in how
crypto/test/gtest_main.cc is added. Since not all test targets
(urandom_test) include gtest_main.cc, and the generated one just
manually adds it to the file lists, just put it into the file lists
ahead of time. That way we don't need to synchronize the dependency
information with the generated build.

This also aligns the generated build with
https://boringssl-review.googlesource.com/c/boringssl/+/56567 to put
files like crypto/test/abi_test.cc and crypto/test/file_test_gtest.cc in
the test_support library.

Update-Note: If something odd happens with the test_support library in
downstream builds, this CL is probably to blame.

Bug: 542
Change-Id: I235e0ccd0432f4b380a92b265ede35eb8a6a6e36
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/61288
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
2023-07-05 20:59:04 +00:00

427 lines
17 KiB
CMake

# This file contains source lists that are also consumed by
# generate_build_files.py.
#
# TODO(davidben): Move the other source lists into this file.
set(
CRYPTO_TEST_SOURCES
crypto/abi_self_test.cc
crypto/asn1/asn1_test.cc
crypto/base64/base64_test.cc
crypto/bio/bio_test.cc
crypto/blake2/blake2_test.cc
crypto/buf/buf_test.cc
crypto/bytestring/bytestring_test.cc
crypto/chacha/chacha_test.cc
crypto/cipher_extra/aead_test.cc
crypto/cipher_extra/cipher_test.cc
crypto/compiler_test.cc
crypto/conf/conf_test.cc
crypto/constant_time_test.cc
crypto/cpu_arm_linux_test.cc
crypto/crypto_test.cc
crypto/curve25519/ed25519_test.cc
crypto/curve25519/spake25519_test.cc
crypto/curve25519/x25519_test.cc
crypto/ecdh_extra/ecdh_test.cc
crypto/dh_extra/dh_test.cc
crypto/digest_extra/digest_test.cc
crypto/dsa/dsa_test.cc
crypto/err/err_test.cc
crypto/evp/evp_extra_test.cc
crypto/evp/evp_test.cc
crypto/evp/pbkdf_test.cc
crypto/evp/scrypt_test.cc
crypto/fipsmodule/aes/aes_test.cc
crypto/fipsmodule/bn/bn_test.cc
crypto/fipsmodule/cmac/cmac_test.cc
crypto/fipsmodule/ec/ec_test.cc
crypto/fipsmodule/ec/p256-nistz_test.cc
crypto/fipsmodule/ecdsa/ecdsa_test.cc
crypto/fipsmodule/hkdf/hkdf_test.cc
crypto/fipsmodule/md5/md5_test.cc
crypto/fipsmodule/modes/gcm_test.cc
crypto/fipsmodule/rand/ctrdrbg_test.cc
crypto/fipsmodule/rand/fork_detect_test.cc
crypto/fipsmodule/service_indicator/service_indicator_test.cc
crypto/fipsmodule/sha/sha_test.cc
crypto/hpke/hpke_test.cc
crypto/hmac_extra/hmac_test.cc
crypto/hrss/hrss_test.cc
crypto/impl_dispatch_test.cc
crypto/kyber/kyber_test.cc
crypto/lhash/lhash_test.cc
crypto/obj/obj_test.cc
crypto/pem/pem_test.cc
crypto/pkcs7/pkcs7_test.cc
crypto/pkcs8/pkcs8_test.cc
crypto/pkcs8/pkcs12_test.cc
crypto/poly1305/poly1305_test.cc
crypto/pool/pool_test.cc
crypto/rand_extra/rand_test.cc
crypto/refcount_test.cc
crypto/rsa_extra/rsa_test.cc
crypto/self_test.cc
crypto/stack/stack_test.cc
crypto/siphash/siphash_test.cc
crypto/thread_test.cc
crypto/test/gtest_main.cc
crypto/trust_token/trust_token_test.cc
crypto/x509/x509_test.cc
crypto/x509/x509_time_test.cc
crypto/x509v3/tab_test.cc
)
set(
CRYPTO_TEST_DATA
crypto/blake2/blake2b256_tests.txt
crypto/cipher_extra/test/aes_128_cbc_sha1_tls_implicit_iv_tests.txt
crypto/cipher_extra/test/aes_128_cbc_sha1_tls_tests.txt
crypto/cipher_extra/test/aes_128_ccm_bluetooth_tests.txt
crypto/cipher_extra/test/aes_128_ccm_bluetooth_8_tests.txt
crypto/cipher_extra/test/aes_128_ccm_matter_tests.txt
crypto/cipher_extra/test/aes_128_ctr_hmac_sha256.txt
crypto/cipher_extra/test/aes_128_gcm_randnonce_tests.txt
crypto/cipher_extra/test/aes_128_gcm_siv_tests.txt
crypto/cipher_extra/test/aes_128_gcm_tests.txt
crypto/cipher_extra/test/aes_192_gcm_tests.txt
crypto/cipher_extra/test/aes_256_cbc_sha1_tls_implicit_iv_tests.txt
crypto/cipher_extra/test/aes_256_cbc_sha1_tls_tests.txt
crypto/cipher_extra/test/aes_256_ctr_hmac_sha256.txt
crypto/cipher_extra/test/aes_256_gcm_randnonce_tests.txt
crypto/cipher_extra/test/aes_256_gcm_siv_tests.txt
crypto/cipher_extra/test/aes_256_gcm_tests.txt
crypto/cipher_extra/test/chacha20_poly1305_tests.txt
crypto/cipher_extra/test/xchacha20_poly1305_tests.txt
crypto/cipher_extra/test/cipher_tests.txt
crypto/cipher_extra/test/des_ede3_cbc_sha1_tls_implicit_iv_tests.txt
crypto/cipher_extra/test/des_ede3_cbc_sha1_tls_tests.txt
crypto/cipher_extra/test/nist_cavp/aes_128_cbc.txt
crypto/cipher_extra/test/nist_cavp/aes_128_ctr.txt
crypto/cipher_extra/test/nist_cavp/aes_128_gcm.txt
crypto/cipher_extra/test/nist_cavp/aes_192_cbc.txt
crypto/cipher_extra/test/nist_cavp/aes_192_ctr.txt
crypto/cipher_extra/test/nist_cavp/aes_256_cbc.txt
crypto/cipher_extra/test/nist_cavp/aes_256_ctr.txt
crypto/cipher_extra/test/nist_cavp/aes_256_gcm.txt
crypto/cipher_extra/test/nist_cavp/tdes_cbc.txt
crypto/cipher_extra/test/nist_cavp/tdes_ecb.txt
crypto/curve25519/ed25519_tests.txt
crypto/ecdh_extra/ecdh_tests.txt
crypto/evp/evp_tests.txt
crypto/evp/scrypt_tests.txt
crypto/fipsmodule/aes/aes_tests.txt
crypto/fipsmodule/bn/test/exp_tests.txt
crypto/fipsmodule/bn/test/gcd_tests.txt
crypto/fipsmodule/bn/test/miller_rabin_tests.txt
crypto/fipsmodule/bn/test/mod_exp_tests.txt
crypto/fipsmodule/bn/test/mod_inv_tests.txt
crypto/fipsmodule/bn/test/mod_mul_tests.txt
crypto/fipsmodule/bn/test/mod_sqrt_tests.txt
crypto/fipsmodule/bn/test/product_tests.txt
crypto/fipsmodule/bn/test/quotient_tests.txt
crypto/fipsmodule/bn/test/shift_tests.txt
crypto/fipsmodule/bn/test/sum_tests.txt
crypto/fipsmodule/cmac/cavp_3des_cmac_tests.txt
crypto/fipsmodule/cmac/cavp_aes128_cmac_tests.txt
crypto/fipsmodule/cmac/cavp_aes192_cmac_tests.txt
crypto/fipsmodule/cmac/cavp_aes256_cmac_tests.txt
crypto/fipsmodule/ec/ec_scalar_base_mult_tests.txt
crypto/fipsmodule/ec/p256-nistz_tests.txt
crypto/fipsmodule/ecdsa/ecdsa_sign_tests.txt
crypto/fipsmodule/ecdsa/ecdsa_verify_tests.txt
crypto/fipsmodule/modes/gcm_tests.txt
crypto/fipsmodule/rand/ctrdrbg_vectors.txt
crypto/hmac_extra/hmac_tests.txt
crypto/hpke/hpke_test_vectors.txt
crypto/kyber/keccak_tests.txt
crypto/kyber/kyber_tests.txt
crypto/pkcs8/test/empty_password.p12
crypto/pkcs8/test/no_encryption.p12
crypto/pkcs8/test/nss.p12
crypto/pkcs8/test/null_password.p12
crypto/pkcs8/test/openssl.p12
crypto/pkcs8/test/pbes2_sha1.p12
crypto/pkcs8/test/pbes2_sha256.p12
crypto/pkcs8/test/unicode_password.p12
crypto/pkcs8/test/windows.p12
crypto/poly1305/poly1305_tests.txt
crypto/siphash/siphash_tests.txt
crypto/x509/test/basic_constraints_ca.pem
crypto/x509/test/basic_constraints_ca_pathlen_0.pem
crypto/x509/test/basic_constraints_ca_pathlen_1.pem
crypto/x509/test/basic_constraints_ca_pathlen_10.pem
crypto/x509/test/basic_constraints_leaf.pem
crypto/x509/test/basic_constraints_none.pem
crypto/x509/test/invalid_extension_intermediate.pem
crypto/x509/test/invalid_extension_intermediate_authority_key_identifier.pem
crypto/x509/test/invalid_extension_intermediate_basic_constraints.pem
crypto/x509/test/invalid_extension_intermediate_ext_key_usage.pem
crypto/x509/test/invalid_extension_intermediate_key_usage.pem
crypto/x509/test/invalid_extension_intermediate_name_constraints.pem
crypto/x509/test/invalid_extension_intermediate_subject_alt_name.pem
crypto/x509/test/invalid_extension_intermediate_subject_key_identifier.pem
crypto/x509/test/invalid_extension_leaf.pem
crypto/x509/test/invalid_extension_leaf_authority_key_identifier.pem
crypto/x509/test/invalid_extension_leaf_basic_constraints.pem
crypto/x509/test/invalid_extension_leaf_ext_key_usage.pem
crypto/x509/test/invalid_extension_leaf_key_usage.pem
crypto/x509/test/invalid_extension_leaf_name_constraints.pem
crypto/x509/test/invalid_extension_leaf_subject_alt_name.pem
crypto/x509/test/invalid_extension_leaf_subject_key_identifier.pem
crypto/x509/test/invalid_extension_root.pem
crypto/x509/test/invalid_extension_root_authority_key_identifier.pem
crypto/x509/test/invalid_extension_root_basic_constraints.pem
crypto/x509/test/invalid_extension_root_ext_key_usage.pem
crypto/x509/test/invalid_extension_root_key_usage.pem
crypto/x509/test/invalid_extension_root_name_constraints.pem
crypto/x509/test/invalid_extension_root_subject_alt_name.pem
crypto/x509/test/invalid_extension_root_subject_key_identifier.pem
crypto/x509/test/many_constraints.pem
crypto/x509/test/many_names1.pem
crypto/x509/test/many_names2.pem
crypto/x509/test/many_names3.pem
crypto/x509/test/policy_intermediate_any.pem
crypto/x509/test/policy_intermediate_duplicate.pem
crypto/x509/test/policy_intermediate_invalid.pem
crypto/x509/test/policy_intermediate_mapped_any.pem
crypto/x509/test/policy_intermediate_mapped_oid3.pem
crypto/x509/test/policy_intermediate_mapped.pem
crypto/x509/test/policy_intermediate_require_duplicate.pem
crypto/x509/test/policy_intermediate_require_no_policies.pem
crypto/x509/test/policy_intermediate_require.pem
crypto/x509/test/policy_intermediate_require1.pem
crypto/x509/test/policy_intermediate_require2.pem
crypto/x509/test/policy_intermediate.pem
crypto/x509/test/policy_leaf_any.pem
crypto/x509/test/policy_leaf_duplicate.pem
crypto/x509/test/policy_leaf_invalid.pem
crypto/x509/test/policy_leaf_none.pem
crypto/x509/test/policy_leaf_oid1.pem
crypto/x509/test/policy_leaf_oid2.pem
crypto/x509/test/policy_leaf_oid3.pem
crypto/x509/test/policy_leaf_oid4.pem
crypto/x509/test/policy_leaf_oid5.pem
crypto/x509/test/policy_leaf_require.pem
crypto/x509/test/policy_leaf_require1.pem
crypto/x509/test/policy_leaf.pem
crypto/x509/test/policy_root_cross_inhibit_mapping.pem
crypto/x509/test/policy_root.pem
crypto/x509/test/policy_root2.pem
crypto/x509/test/pss_sha1_explicit.pem
crypto/x509/test/pss_sha1_mgf1_syntax_error.pem
crypto/x509/test/pss_sha1.pem
crypto/x509/test/pss_sha224.pem
crypto/x509/test/pss_sha256_explicit_trailer.pem
crypto/x509/test/pss_sha256_mgf1_sha384.pem
crypto/x509/test/pss_sha256_mgf1_syntax_error.pem
crypto/x509/test/pss_sha256_omit_nulls.pem
crypto/x509/test/pss_sha256_salt_overflow.pem
crypto/x509/test/pss_sha256_salt31.pem
crypto/x509/test/pss_sha256_unknown_mgf.pem
crypto/x509/test/pss_sha256_wrong_trailer.pem
crypto/x509/test/pss_sha256.pem
crypto/x509/test/pss_sha384.pem
crypto/x509/test/pss_sha512.pem
crypto/x509/test/some_names1.pem
crypto/x509/test/some_names2.pem
crypto/x509/test/some_names3.pem
crypto/x509/test/trailing_data_leaf_authority_key_identifier.pem
crypto/x509/test/trailing_data_leaf_basic_constraints.pem
crypto/x509/test/trailing_data_leaf_ext_key_usage.pem
crypto/x509/test/trailing_data_leaf_key_usage.pem
crypto/x509/test/trailing_data_leaf_name_constraints.pem
crypto/x509/test/trailing_data_leaf_subject_alt_name.pem
crypto/x509/test/trailing_data_leaf_subject_key_identifier.pem
third_party/wycheproof_testvectors/aes_cbc_pkcs5_test.txt
third_party/wycheproof_testvectors/aes_cmac_test.txt
third_party/wycheproof_testvectors/aes_gcm_siv_test.txt
third_party/wycheproof_testvectors/aes_gcm_test.txt
third_party/wycheproof_testvectors/chacha20_poly1305_test.txt
third_party/wycheproof_testvectors/dsa_test.txt
third_party/wycheproof_testvectors/ecdh_secp224r1_test.txt
third_party/wycheproof_testvectors/ecdh_secp256r1_test.txt
third_party/wycheproof_testvectors/ecdh_secp384r1_test.txt
third_party/wycheproof_testvectors/ecdh_secp521r1_test.txt
third_party/wycheproof_testvectors/ecdsa_secp224r1_sha224_test.txt
third_party/wycheproof_testvectors/ecdsa_secp224r1_sha256_test.txt
third_party/wycheproof_testvectors/ecdsa_secp224r1_sha512_test.txt
third_party/wycheproof_testvectors/ecdsa_secp256r1_sha256_test.txt
third_party/wycheproof_testvectors/ecdsa_secp256r1_sha512_test.txt
third_party/wycheproof_testvectors/ecdsa_secp384r1_sha384_test.txt
third_party/wycheproof_testvectors/ecdsa_secp384r1_sha512_test.txt
third_party/wycheproof_testvectors/ecdsa_secp521r1_sha512_test.txt
third_party/wycheproof_testvectors/eddsa_test.txt
third_party/wycheproof_testvectors/hkdf_sha1_test.txt
third_party/wycheproof_testvectors/hkdf_sha256_test.txt
third_party/wycheproof_testvectors/hkdf_sha384_test.txt
third_party/wycheproof_testvectors/hkdf_sha512_test.txt
third_party/wycheproof_testvectors/hmac_sha1_test.txt
third_party/wycheproof_testvectors/hmac_sha224_test.txt
third_party/wycheproof_testvectors/hmac_sha256_test.txt
third_party/wycheproof_testvectors/hmac_sha384_test.txt
third_party/wycheproof_testvectors/hmac_sha512_test.txt
third_party/wycheproof_testvectors/kwp_test.txt
third_party/wycheproof_testvectors/kw_test.txt
third_party/wycheproof_testvectors/primality_test.txt
third_party/wycheproof_testvectors/rsa_oaep_2048_sha1_mgf1sha1_test.txt
third_party/wycheproof_testvectors/rsa_oaep_2048_sha224_mgf1sha1_test.txt
third_party/wycheproof_testvectors/rsa_oaep_2048_sha224_mgf1sha224_test.txt
third_party/wycheproof_testvectors/rsa_oaep_2048_sha256_mgf1sha1_test.txt
third_party/wycheproof_testvectors/rsa_oaep_2048_sha256_mgf1sha256_test.txt
third_party/wycheproof_testvectors/rsa_oaep_2048_sha384_mgf1sha1_test.txt
third_party/wycheproof_testvectors/rsa_oaep_2048_sha384_mgf1sha384_test.txt
third_party/wycheproof_testvectors/rsa_oaep_2048_sha512_mgf1sha1_test.txt
third_party/wycheproof_testvectors/rsa_oaep_2048_sha512_mgf1sha512_test.txt
third_party/wycheproof_testvectors/rsa_oaep_3072_sha256_mgf1sha1_test.txt
third_party/wycheproof_testvectors/rsa_oaep_3072_sha256_mgf1sha256_test.txt
third_party/wycheproof_testvectors/rsa_oaep_3072_sha512_mgf1sha1_test.txt
third_party/wycheproof_testvectors/rsa_oaep_3072_sha512_mgf1sha512_test.txt
third_party/wycheproof_testvectors/rsa_oaep_4096_sha256_mgf1sha1_test.txt
third_party/wycheproof_testvectors/rsa_oaep_4096_sha256_mgf1sha256_test.txt
third_party/wycheproof_testvectors/rsa_oaep_4096_sha512_mgf1sha1_test.txt
third_party/wycheproof_testvectors/rsa_oaep_4096_sha512_mgf1sha512_test.txt
third_party/wycheproof_testvectors/rsa_oaep_misc_test.txt
third_party/wycheproof_testvectors/rsa_pkcs1_2048_test.txt
third_party/wycheproof_testvectors/rsa_pkcs1_3072_test.txt
third_party/wycheproof_testvectors/rsa_pkcs1_4096_test.txt
third_party/wycheproof_testvectors/rsa_pss_2048_sha1_mgf1_20_test.txt
third_party/wycheproof_testvectors/rsa_pss_2048_sha256_mgf1_0_test.txt
third_party/wycheproof_testvectors/rsa_pss_2048_sha256_mgf1_32_test.txt
third_party/wycheproof_testvectors/rsa_pss_3072_sha256_mgf1_32_test.txt
third_party/wycheproof_testvectors/rsa_pss_4096_sha256_mgf1_32_test.txt
third_party/wycheproof_testvectors/rsa_pss_4096_sha512_mgf1_32_test.txt
third_party/wycheproof_testvectors/rsa_pss_misc_test.txt
third_party/wycheproof_testvectors/rsa_sig_gen_misc_test.txt
third_party/wycheproof_testvectors/rsa_signature_2048_sha224_test.txt
third_party/wycheproof_testvectors/rsa_signature_2048_sha256_test.txt
third_party/wycheproof_testvectors/rsa_signature_2048_sha384_test.txt
third_party/wycheproof_testvectors/rsa_signature_2048_sha512_test.txt
third_party/wycheproof_testvectors/rsa_signature_3072_sha256_test.txt
third_party/wycheproof_testvectors/rsa_signature_3072_sha384_test.txt
third_party/wycheproof_testvectors/rsa_signature_3072_sha512_test.txt
third_party/wycheproof_testvectors/rsa_signature_4096_sha384_test.txt
third_party/wycheproof_testvectors/rsa_signature_4096_sha512_test.txt
third_party/wycheproof_testvectors/rsa_signature_test.txt
third_party/wycheproof_testvectors/x25519_test.txt
third_party/wycheproof_testvectors/xchacha20_poly1305_test.txt
)
set(
URANDOM_TEST_SOURCES
crypto/fipsmodule/rand/urandom_test.cc
)
set(
SSL_TEST_SOURCES
crypto/test/gtest_main.cc
ssl/span_test.cc
ssl/ssl_c_test.c
ssl/ssl_test.cc
)
set(
DECREPIT_TEST_SOURCES
crypto/test/gtest_main.cc
decrepit/blowfish/blowfish_test.cc
decrepit/cast/cast_test.cc
decrepit/cfb/cfb_test.cc
decrepit/evp/evp_test.cc
decrepit/ripemd/ripemd_test.cc
decrepit/xts/xts_test.cc
)
set(
PKI_SOURCES
pki/cert_error_id.cc
pki/cert_error_params.cc
pki/cert_errors.cc
pki/cert_errors.cc
pki/cert_issuer_source_static.cc
pki/certificate_policies.cc
pki/common_cert_errors.cc
pki/crl.cc
pki/encode_values.cc
pki/extended_key_usage.cc
pki/fillins/base64.cc
pki/fillins/ip_address.cc
pki/fillins/openssl_util.cc
pki/fillins/string_util.cc
pki/fillins/utf_string_conversions.cc
pki/general_names.cc
pki/input.cc
pki/name_constraints.cc
pki/parse_certificate.cc
pki/parse_certificate.cc
pki/parse_name.cc
pki/parse_values.cc
pki/parsed_certificate.cc
pki/parsed_certificate.cc
pki/parsed_certificate.cc
pki/parser.cc
pki/path_builder.cc
pki/pem.cc
pki/revocation_util.cc
pki/signature_algorithm.cc
pki/simple_path_builder_delegate.cc
pki/string_util.cc
pki/tag.cc
pki/trust_store_collection.cc
pki/trust_store_collection.cc
pki/trust_store_in_memory.cc
pki/trust_store.cc
pki/trust_store.cc
pki/verify_certificate_chain.cc
pki/verify_name_match.cc
pki/verify_signed_data.cc
)
set(
PKI_TEST_SOURCES
crypto/test/gtest_main.cc
pki/cert_issuer_source_static_unittest.cc
pki/certificate_policies_unittest.cc
pki/encode_values_unittest.cc
pki/extended_key_usage_unittest.cc
pki/fillins/file_util.cc
pki/fillins/path_service.cc
pki/input_unittest.cc
pki/mock_signature_verify_cache.cc
pki/name_constraints_unittest.cc
pki/nist_pkits_unittest.cc
# pki/ocsp_unittest.cc # Not sure we will keep this here..
pki/parse_certificate_unittest.cc
pki/parse_name_unittest.cc
pki/parse_values_unittest.cc
pki/parsed_certificate_unittest.cc
pki/parser_unittest.cc
pki/path_builder_pkits_unittest.cc
pki/path_builder_unittest.cc
pki/path_builder_verify_certificate_chain_unittest.cc
pki/signature_algorithm_unittest.cc
pki/simple_path_builder_delegate_unittest.cc
pki/string_util_unittest.cc
pki/test_helpers.cc
pki/trust_store_collection_unittest.cc
pki/verify_certificate_chain_pkits_unittest.cc
pki/verify_certificate_chain_unittest.cc
pki/verify_name_match_unittest.cc
pki/verify_signed_data_unittest.cc
)
set(
TEST_SUPPORT_SOURCES
crypto/test/abi_test.cc
crypto/test/file_test.cc
crypto/test/file_test_gtest.cc
crypto/test/test_util.cc
crypto/test/wycheproof_util.cc
)