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)
This commit is contained in:
Paul Kehrer 2022-10-19 09:07:32 -05:00 committed by Pauli
parent 3c153d8722
commit 097752da99

View file

@ -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