diff --git a/tox.ini b/tox.ini index 18176ffd..3bee4262 100644 --- a/tox.ini +++ b/tox.ini @@ -31,6 +31,15 @@ deps = pytest commands = mypy src/ tests/ +[testenv:asan] +setenv= + PYTHONDEVMODE=1 + PYTHONMALLOC=malloc + CFLAGS=-lasan -fsanitize=address -fno-omit-frame-pointer +allowlist_externals=bash +commands= + bash -c 'export LD_PRELOAD=$(gcc -print-file-name=libasan.so) && printenv LD_PRELOAD && python -c "import dnaio" && pytest tests' + [testenv:docs] basepython = python3.10 changedir = doc