Skip to content

Commit

Permalink
link the pyca tests against the correct openssl
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #19439)
  • Loading branch information
reaperhulk authored and paulidale committed Oct 20, 2022
1 parent 3c153d8 commit 097752d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions test/recipes/95-test_external_pyca_data/cryptography.sh
Expand Up @@ -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
Expand Down

0 comments on commit 097752d

Please sign in to comment.