mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +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:
|
test:
|
||||||
pytest -qq
|
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
|
.PHONY: readme
|
||||||
readme:
|
readme:
|
||||||
python3 setup.py --long-description | markdown2 > .long-description.html && open .long-description.html
|
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
|
||||||
pytest-cov
|
pytest-cov
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
|
pytest-valgrind
|
||||||
sphinx>=2.4
|
sphinx>=2.4
|
||||||
sphinx-issues
|
sphinx-issues
|
||||||
sphinx-removed-in
|
sphinx-removed-in
|
||||||
|
|
Loading…
Reference in New Issue
Block a user