minimize.sh 196 B

1234567891011121314
  1. #!/bin/sh
  2. set -e
  3. if [ ! -d "$1" ] ; then
  4. echo "I need a directory"
  5. exit 1
  6. fi
  7. which=`basename "$1"`
  8. mkdir "$1.out"
  9. afl-cmin -i "$1" -o "$1.out" -m none "./src/test/fuzz/fuzz-${which}"