mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
re-add pyca/cryptography testing
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15018)
This commit is contained in:
parent
a09fb26ba9
commit
a938f0045e
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@ -231,5 +231,32 @@ jobs:
|
||||
run: make test TESTS="test_external_gost_engine"
|
||||
- name: test external krb5
|
||||
run: make test TESTS="test_external_krb5"
|
||||
# - name: test external pyca
|
||||
# run: make test TESTS="test_external_pyca"
|
||||
|
||||
external-test-pyca:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
RUST:
|
||||
- 1.51.0
|
||||
PYTHON:
|
||||
- 3.9
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Configure OpenSSL
|
||||
run: ./config --strict-warnings --debug enable-external-tests && perl configdata.pm --dump
|
||||
- name: make
|
||||
run: make -s -j4
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v2.2.2
|
||||
with:
|
||||
python-version: ${{ matrix.PYTHON }}
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.RUST }}
|
||||
override: true
|
||||
default: true
|
||||
- name: test external pyca
|
||||
run: make test TESTS="test_external_pyca"
|
||||
|
@ -12,6 +12,7 @@
|
||||
# OpenSSL external testing using the Python Cryptography module
|
||||
#
|
||||
set -e
|
||||
set -x
|
||||
|
||||
O_EXE=`pwd`/$BLDTOP/apps
|
||||
O_BINC=`pwd`/$BLDTOP/include
|
||||
@ -35,30 +36,29 @@ echo "------------------------------------------------------------------"
|
||||
cd $SRCTOP
|
||||
|
||||
# Create a python virtual env and activate
|
||||
rm -rf venv-pycrypto
|
||||
virtualenv venv-pycrypto
|
||||
. ./venv-pycrypto/bin/activate
|
||||
rm -rf venv-cryptography
|
||||
python -m venv venv-cryptography
|
||||
. ./venv-cryptography/bin/activate
|
||||
|
||||
cd pyca-cryptography
|
||||
|
||||
pip install .[test]
|
||||
pip install -e vectors
|
||||
|
||||
echo "------------------------------------------------------------------"
|
||||
echo "Building cryptography"
|
||||
echo "------------------------------------------------------------------"
|
||||
python ./setup.py clean
|
||||
|
||||
CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" python ./setup.py build
|
||||
CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" pip install .
|
||||
|
||||
echo "------------------------------------------------------------------"
|
||||
echo "Running tests"
|
||||
echo "------------------------------------------------------------------"
|
||||
|
||||
CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" python ./setup.py test
|
||||
CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" pytest -n auto tests --wycheproof-root=../wycheproof
|
||||
|
||||
cd ../
|
||||
deactivate
|
||||
rm -rf venv-pycrypto
|
||||
rm -rf venv-cryptography
|
||||
|
||||
exit 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user