-
Notifications
You must be signed in to change notification settings - Fork 717
/
tox.ini
28 lines (27 loc) · 905 Bytes
/
tox.ini
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
[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} \
{env:TOX_TEST_NAME:""}