]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
link the pyca tests against the correct openssl
authorPaul Kehrer <paul.l.kehrer@gmail.com>
Wed, 19 Oct 2022 14:07:32 +0000 (09:07 -0500)
committerPauli <pauli@openssl.org>
Thu, 20 Oct 2022 23:31:58 +0000 (10:31 +1100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19439)

test/recipes/95-test_external_pyca_data/cryptography.sh

index b73f64b836ce432eab4ef440e846ca952c8bd692..18d93f539442f8ad4f695a53d38372c32cdab30f 100755 (executable)
@@ -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