Skip to content

Commit 4afcfaa

Browse files
committed
Add asan environment
1 parent 367745a commit 4afcfaa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ commands =
2222
coverage html -i
2323
coverage xml -i
2424

25+
[testenv:asan]
26+
setenv=
27+
PYTHONDEVMODE=1
28+
PYTHONMALLOC=malloc
29+
CFLAGS=-lasan -fsanitize=address -fno-omit-frame-pointer
30+
allowlist_externals=bash
31+
commands=
32+
bash -c 'LD_PRELOAD=$(find /usr/lib -name "libasan.so*" | head -n 1) pytest tests'
33+
2534
[testenv:compliance]
2635
deps=pytest
2736
commands=

0 commit comments

Comments
 (0)