summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2022-10-19 09:07:32 -0500
committerPauli <pauli@openssl.org>2022-10-21 10:32:47 +1100
commitf531e4ae0c3f1ffbeaff4364ee3140662195adca (patch)
tree20791d585067dbca6f6486120ff80e5568574ad1 /test
parentbd7379b0db5c7e9814aff67d053cd786e4773a16 (diff)
link the pyca tests against the correct openssl
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19439) (cherry picked from commit 097752da99d9c27702e9e9d51609efedd3a4d0cf)
Diffstat (limited to 'test')
-rwxr-xr-xtest/recipes/95-test_external_pyca_data/cryptography.sh15
1 files 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 b73f64b836..18d93f5394 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