1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
[tox]
envlist = py39
skipsdist = True
[testenv]
# install pytest in the virtualenv where commands will be executed
setenv = S2N_INTEG_TEST = 1
passenv = DYLD_LIBRARY_PATH, LD_LIBRARY_PATH, OQS_OPENSSL_1_1_1_INSTALL_DIR, OPENSSL_1_0_2_INSTALL_DIR, HOME, TOX_TEST_NAME
ignore_errors=False
deps =
pytest==7
pytest-xdist==3.3
sslyze==5
pytest-rerunfailures
# -x : exit on first failure
# -n 2 : run with two worker processes, don't use higher until https://github.com/aws/s2n-tls/issues/2469 is addressed
# -rpfsq : print a (r)eport with (p)assed tests, (f)ailed tests, and (s)kipped tests
# --durations=10 : print the 10 slowest tests
commands =
pytest -x \
-n=2 \
--reruns=2 \
--cache-clear \
-rpfsq \
--durations=10 \
-o log_cli=true --log-cli-level=INFO \
--provider-version={env:S2N_LIBCRYPTO} \
--provider-criterion={env:S2N_USE_CRITERION:"off"} \
--fips-mode={env:S2N_TEST_IN_FIPS_MODE:"0"} \
--no-pq={env:S2N_NO_PQ:"0"} \
{env:TOX_TEST_NAME:""}
|