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.
 
 
 
 
 
 

24 lines
701 B

  1. for testSource in $(ls -1 *.cc); do
  2. test=$(echo $testSource | sed -e 's/\.cc$//')
  3. if [ ! -x ../build/fuzz/$test ] ; then
  4. echo "Failed to find binary for $test"
  5. exit 1
  6. fi
  7. if [ ! -d ${test}_corpus ]; then
  8. echo "Failed to find corpus directory for $test"
  9. exit 1
  10. fi
  11. if [ -d ${test}_corpus_old ]; then
  12. echo "Old corpus directory for $test already exists"
  13. exit 1
  14. fi
  15. done
  16. for testSource in $(ls -1 *.cc); do
  17. test=$(echo $testSource | sed -e 's/\.cc$//')
  18. mv ${test}_corpus ${test}_corpus_old && \
  19. mkdir ${test}_corpus
  20. ../build/fuzz/$test -max_len=50000 -runs=0 -save_minimized_corpus=1 ${test}_corpus ${test}_corpus_old &&
  21. rm -Rf ${test}_corpus_old
  22. done