File: tox.ini

package info (click to toggle)
aws-crt-python 0.20.4%2Bdfsg-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 72,656 kB
  • sloc: ansic: 381,805; python: 23,008; makefile: 6,251; sh: 4,536; cpp: 699; ruby: 208; java: 77; perl: 73; javascript: 46; xml: 11
file content (31 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download
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:""}