aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorKenjiro Nakayama <nakayamakenjiro@gmail.com>2026-07-19 18:08:07 +0900
committerKenjiro Nakayama <nakayamakenjiro@gmail.com>2026-07-30 07:28:14 +0900
commitdf1ed6bb4ec3e72c20a7082cc168a45ae67704ba (patch)
tree85a6a4a9c041c5be5c28172f62e04d2440576e40 /update.sh
parent3d686a7cbd84221fde5d7e03fa47896f6abf1d6c (diff)
downloadportable-df1ed6bb4ec3e72c20a7082cc168a45ae67704ba.tar.gz
portable-df1ed6bb4ec3e72c20a7082cc168a45ae67704ba.tar.bz2
portable-df1ed6bb4ec3e72c20a7082cc168a45ae67704ba.zip
add libssl verify test
Copy regress/lib/libssl/verify/verify.c as ssl_verify.c to avoid basename collisions when regress tests are flattened into tests. Copy create-libressl-test-certs.pl and add a wrapper that generates the test certificates before running ssl_verify. Detect the required IO::Socket::SSL::Utils Perl module and register the test with both autotools and CMake when it is available. Also document x509/bettertls is not included.
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index a6d0ebd..83864d3 100755
--- a/update.sh
+++ b/update.sh
@@ -336,6 +336,8 @@ for i in `find $libcrypto_regress -name '*.[ch]'`; do
336done 336done
337# x509/verify.c collides with x509/bettertls/verify.c when flattened. 337# x509/verify.c collides with x509/bettertls/verify.c when flattened.
338$CP $libcrypto_regress/x509/verify.c tests/x509_verify.c 338$CP $libcrypto_regress/x509/verify.c tests/x509_verify.c
339# Do not copy x509/bettertls/verify.c: it requires the large bettertls
340# certificate corpus, which is not worth bundling in release tarballs.
339$CP $libcrypto_regress/evp/evptests.txt tests 341$CP $libcrypto_regress/evp/evptests.txt tests
340$CP $libcrypto_regress/aead/*.txt tests 342$CP $libcrypto_regress/aead/*.txt tests
341$CP $libcrypto_regress/ct/ctlog.conf tests 343$CP $libcrypto_regress/ct/ctlog.conf tests
@@ -371,6 +373,10 @@ for i in `find $libssl_regress -name '*.c'`; do
371done 373done
372# tls/tlstest.c collides with libtls/tls/tlstest.c when flattened. 374# tls/tlstest.c collides with libtls/tls/tlstest.c when flattened.
373$CP $libssl_regress/tls/tlstest.c tests/ssl_tlstest.c 375$CP $libssl_regress/tls/tlstest.c tests/ssl_tlstest.c
376# verify/verify.c collides with other verify tests when flattened.
377rm -f tests/verify.c
378$CP $libssl_regress/verify/verify.c tests/ssl_verify.c
379$CP $libssl_regress/verify/create-libressl-test-certs.pl tests
374$CP $libssl_regress/unit/tests.h tests 380$CP $libssl_regress/unit/tests.h tests
375$CP $libssl_regress/certs/*.pem tests 381$CP $libssl_regress/certs/*.pem tests
376$CP $libssl_regress/certs/*.crl tests 382$CP $libssl_regress/certs/*.crl tests