Move test data lists to util/pregenerate

Since we can now handle glob patterns, make those shorter.

Bug: 542
Change-Id: I971d9785bce0db7b2e8c41c8c82468afde64540d
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/67292
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
This commit is contained in:
David Benjamin
2024-03-22 23:32:05 +00:00
committed by Boringssl LUCI CQ
parent 115deb3628
commit 6cbf2c09f2
5 changed files with 3347 additions and 1939 deletions
+56
View File
@@ -110,5 +110,61 @@
"perlasm_x86_64": [
{"src": "crypto/test/asm/trampoline-x86_64.pl"}
]
},
"crypto_test": {
"data": [
"crypto/blake2/blake2b256_tests.txt",
"crypto/cipher_extra/test/*.txt",
"crypto/cipher_extra/test/nist_cavp/*.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/*.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/keccak/keccak_tests.txt",
"crypto/kyber/kyber_tests.txt",
"crypto/pkcs8/test/*.p12",
"crypto/poly1305/poly1305_tests.txt",
"crypto/siphash/siphash_tests.txt",
"crypto/spx/spx_tests.txt",
"crypto/spx/spx_tests_deterministic.txt",
"crypto/x509/test/*.pem",
"third_party/wycheproof_testvectors/*.txt"
]
},
"pki_test": {
"data": [
"pki/testdata/cert_issuer_source_static_unittest/*.pem",
"pki/testdata/certificate_policies_unittest/*.pem",
"pki/testdata/crl_unittest/*.pem",
"pki/testdata/name_constraints_unittest/*.pem",
"pki/testdata/nist-pkits/certs/*.crt",
"pki/testdata/nist-pkits/crls/*.crl",
"pki/testdata/ocsp_unittest/*.pem",
"pki/testdata/parse_certificate_unittest/*.pem",
"pki/testdata/parse_certificate_unittest/*/*.pem",
"pki/testdata/path_builder_unittest/*.pem",
"pki/testdata/path_builder_unittest/*/*.pem",
"pki/testdata/verify_certificate_chain_unittest/*/*.pem",
"pki/testdata/verify_certificate_chain_unittest/*/*.test",
"pki/testdata/verify_certificate_chain_unittest/pkits_errors/*.txt",
"pki/testdata/verify_name_match_unittest/names/*.pem",
"pki/testdata/verify_signed_data_unittest/*.pem",
"pki/testdata/verify_unittest/google-leaf.der",
"pki/testdata/verify_unittest/self-issued.pem"
]
}
}
+1645
View File
File diff suppressed because it is too large Load Diff
+1643
View File
File diff suppressed because it is too large Load Diff
-1936
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -692,7 +692,7 @@ def main(platforms):
# Generate crypto_test_data.cc
with open('crypto_test_data.cc', 'w+') as out:
subprocess.check_call(
['go', 'run', 'util/embed_test_data.go'] + cmake['CRYPTO_TEST_DATA'],
['go', 'run', 'util/embed_test_data.go'] + sources['crypto_test']['data'],
cwd='src',
stdout=out)
crypto_test_files.append('crypto_test_data.cc')
@@ -733,14 +733,14 @@ def main(platforms):
'crypto_headers': crypto_h_files,
'crypto_internal_headers': crypto_internal_h_files,
'crypto_test': crypto_test_files,
'crypto_test_data': sorted(PrefixWithSrc(cmake['CRYPTO_TEST_DATA'])),
'crypto_test_data': PrefixWithSrc(sources['crypto_test']['data']),
'fips_fragments': fips_fragments,
'fuzz': fuzz_c_files,
'pki': PrefixWithSrc(cmake['PKI_SOURCES']),
'pki_headers': pki_h_files,
'pki_internal_headers': sorted(list(pki_internal_h_files)),
'pki_test': PrefixWithSrc(cmake['PKI_TEST_SOURCES']),
'pki_test_data': PrefixWithSrc(cmake['PKI_TEST_DATA']),
'pki_test_data': PrefixWithSrc(sources['pki_test']['data']),
'rust_bssl_crypto': bssl_crypto_files,
'rust_bssl_sys': bssl_sys_files,
'ssl': PrefixWithSrc(cmake['SSL_SOURCES']),