mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Run unit test files sequentially through valgrind
This commit is contained in:
@@ -7,12 +7,14 @@ fi
|
||||
|
||||
curl -o ./test/leak/libvips.supp https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp
|
||||
|
||||
G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind \
|
||||
--suppressions=test/leak/libvips.supp \
|
||||
--suppressions=test/leak/sharp.supp \
|
||||
--gen-suppressions=yes \
|
||||
--leak-check=full \
|
||||
--show-leak-kinds=definite,indirect,possible \
|
||||
--num-callers=20 \
|
||||
--trace-children=yes \
|
||||
npm test
|
||||
for test in ./test/unit/*.js; do
|
||||
G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind \
|
||||
--suppressions=test/leak/libvips.supp \
|
||||
--suppressions=test/leak/sharp.supp \
|
||||
--gen-suppressions=yes \
|
||||
--leak-check=full \
|
||||
--show-leak-kinds=definite,indirect,possible \
|
||||
--num-callers=20 \
|
||||
--trace-children=yes \
|
||||
mocha --slow=60000 --timeout=120000 "$test";
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user