shithub: mp3dec

ref: 8c9e85546b3cc8e5d3e4f5531a0e262b15996c1e
dir: /scripts/test_fuzz.sh/

View raw version
_FILENAME=${0##*/}
CUR_DIR=${0/${_FILENAME}}
CUR_DIR=$(cd $(dirname ${CUR_DIR}); pwd)/$(basename ${CUR_DIR})/

pushd $CUR_DIR/..

APP=./minimp3_fuzz

set +e
for i in fuzz_out/crashes/*; do
$APP $i
retval=$?
echo $i exited with code=$retval
if [ ! $retval -eq 0 ]; then
  exit 1
fi
done