mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Local valgrind test target
This commit is contained in:
parent
e0e353c0ef
commit
43aa6ade6f
6
Makefile
6
Makefile
|
@ -102,6 +102,12 @@ sdist:
|
|||
test:
|
||||
pytest -qq
|
||||
|
||||
.PHONY: valgrind
|
||||
valgrind:
|
||||
PYTHONMALLOC=malloc valgrind --suppressions=Tests/oss-fuzz/python.supp --leak-check=no \
|
||||
--log-file=/tmp/valgrind-output \
|
||||
python3 -m pytest --no-memcheck -vv --valgrind --valgrind-log=/tmp/valgrind-output
|
||||
|
||||
.PHONY: readme
|
||||
readme:
|
||||
python3 setup.py --long-description | markdown2 > .long-description.html && open .long-description.html
|
||||
|
|
16
Tests/oss-fuzz/python.supp
Normal file
16
Tests/oss-fuzz/python.supp
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
<py3_8_encode_current_locale>
|
||||
Memcheck:Cond
|
||||
...
|
||||
fun:encode_current_locale
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
<libtiff_zlib>
|
||||
Memcheck:Cond
|
||||
fun:inflate
|
||||
fun:ZIPDecode
|
||||
fun:_TIFFReadEncodedTileAndAllocBuffer
|
||||
...
|
||||
}
|
|
@ -9,6 +9,7 @@ pyroma
|
|||
pytest
|
||||
pytest-cov
|
||||
pytest-timeout
|
||||
pytest-valgrind
|
||||
sphinx>=2.4
|
||||
sphinx-issues
|
||||
sphinx-removed-in
|
||||
|
|
Loading…
Reference in New Issue
Block a user