ref: 08949ffc7d85fa649d8fd9fcba8a394975acc6e9
dir: /scripts/test_fuzz.sh/
_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