Skip to content

Commit

Permalink
Merge pull request #122 from rhpvorderman/asan
Browse files Browse the repository at this point in the history
Add asan tox environment for testing memory errors
  • Loading branch information
marcelm authored Oct 27, 2023
2 parents 850f9cb + baaa673 commit 2ea2078
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ea2078

Please sign in to comment.