File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,34 @@ deps=pytest
10
10
coverage
11
11
passenv =
12
12
PYTHON_ZLIB_NG_LINK_DYNAMIC
13
+ setenv =
14
+ PYTHONDEVMODE =1
13
15
commands =
14
16
# Create HTML coverage report for humans and xml coverage report for external services.
15
17
coverage run --branch --source =zlib_ng -m pytest tests
16
18
# Ignore errors during report generation. Pypy does not generate proper coverage reports.
17
19
coverage html -i
18
20
coverage xml -i
19
21
22
+ [testenv:asan]
23
+ setenv =
24
+ PYTHONDEVMODE =1
25
+ PYTHONMALLOC =malloc
26
+ CFLAGS =-lasan -fsanitize =address -fno-omit-frame-pointer
27
+ allowlist_externals =bash
28
+ commands =
29
+ bash -c ' export LD_PRELOAD=$(gcc -print-file-name=libasan.so) && printenv LD_PRELOAD && python -c "from zlib_ng import zlib_ng" && pytest tests'
30
+
31
+ [testenv:compliance]
32
+ deps =pytest
33
+ commands =
34
+ pytest -v tests/test_zlib_compliance.py tests/test_gzip_compliance.py
35
+
36
+ [testenv:compatibility]
37
+ deps =pytest
38
+ commands =
39
+ pytest tests/test_isal.py
40
+
20
41
[testenv:lint]
21
42
deps =flake8
22
43
flake8-import-order
@@ -56,21 +77,25 @@ commands=
56
77
57
78
[testenv:benchmark-all]
58
79
deps =
80
+ setenv =
59
81
commands =
60
82
python ./benchmark_scripts/benchmark.py --all
61
83
62
84
[testenv:benchmark-functions]
63
85
deps =
86
+ setenv =
64
87
commands =
65
88
python ./benchmark_scripts/benchmark.py --functions
66
89
67
90
[testenv:benchmark-gzip]
68
91
deps =
92
+ setenv =
69
93
commands =
70
94
python ./benchmark_scripts/benchmark.py --gzip
71
95
72
96
[testenv:benchmark-checksums]
73
97
deps =
98
+ setenv =
74
99
commands =
75
100
python ./benchmark_scripts/benchmark.py --checksums
76
101
You can’t perform that action at this time.
0 commit comments