Scripts/info for running AFL on FreeBSD programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
382 B

  1. size=512kb
  2. for fstype in -O1 -O2; do
  3. for secsize in -S512 -S4096; do
  4. for blkfrag in "" "-b 4096 -f 512"; do
  5. if [ ! -z "$blkfrag" ]; then
  6. part=".b4096f512"
  7. else
  8. part=""
  9. fi
  10. fname="test.$fstype.$secsize$part.img"
  11. truncate -s "$size" "$fname"
  12. dev=$(mdconfig -f "$fname")
  13. newfs $fstype $secsize $blkfrag "$dev"
  14. mdconfig -d -u "$dev"
  15. done
  16. done
  17. done