libvips/fuzz/test_fuzz.sh

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