libvips/fuzz/test_fuzz.sh
Kleis Auke Wolthuizen 3da7caee6c
LSan improvements and fixes (#2672)
* LSan: remove GLib suppression

* LSan: disable the fast unwinder to get full stacktraces

* Move ASan/UBSan fuzzer options to CI configuration

* LSan: remove EOLed python2.7 suppression

* LSan: remove libstdc++ suppression

* LSan: add libx265 to suppression file

* Try to reproduce small memleak

* Try a possible patch

* Skip test if `im_benchmark` is not available

* CI: upgrade Clang version to 13

* CI: correct job names

* Meson: increase the timeout for tests

* README.md: correct Meson invocation
2022-02-19 15:13:42 +00:00

25 lines
363 B
Bash
Executable File

#!/bin/sh
#set -x
set -e
. ../test/variables.sh
# Hide all warning messages from vips.
export VIPS_WARNING=0
ret=0
for fuzzer in *_fuzzer; do
for file in $top_srcdir/fuzz/common_fuzzer_corpus/*; do
exit_code=0
./$fuzzer $file || exit_code=$?
if [ $exit_code -ne 0 ]; then
echo FAIL $fuzzer $file
ret=1
fi
done
done
exit $ret