From 097752da99d9c27702e9e9d51609efedd3a4d0cf Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 19 Oct 2022 09:07:32 -0500 Subject: [PATCH] link the pyca tests against the correct openssl Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/19439) --- .../95-test_external_pyca_data/cryptography.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/test/recipes/95-test_external_pyca_data/cryptography.sh b/test/recipes/95-test_external_pyca_data/cryptography.sh index b73f64b836c..18d93f53944 100755 --- a/test/recipes/95-test_external_pyca_data/cryptography.sh +++ b/test/recipes/95-test_external_pyca_data/cryptography.sh @@ -39,22 +39,27 @@ cd $SRCTOP rm -rf venv-cryptography python -m venv venv-cryptography . ./venv-cryptography/bin/activate +# Upgrade pip to always have latest +pip install -U pip cd pyca-cryptography -pip install .[test] +echo "------------------------------------------------------------------" +echo "Building cryptography and installing test requirements" +echo "------------------------------------------------------------------" +LDFLAGS="-L$O_LIB" CFLAGS="-I$O_BINC -I$O_SINC " pip install .[test] pip install -e vectors echo "------------------------------------------------------------------" -echo "Building cryptography" +echo "Print linked libraries" echo "------------------------------------------------------------------" -CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" pip install . +ldd $(find ../venv-cryptography/lib/ -iname '*.so') + echo "------------------------------------------------------------------" echo "Running tests" echo "------------------------------------------------------------------" - -CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" pytest -n auto tests --wycheproof-root=../wycheproof +pytest -n auto tests --wycheproof-root=../wycheproof cd ../ deactivate -- 2.47.3