geom_gate userland utility improvements
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.
 
 
 
 

27 lines
789 B

  1. #!/bin/bash
  2. set -ex
  3. PROJECT_NAME=libssh2
  4. # Clone the oss-fuzz repository
  5. git clone https://github.com/google/oss-fuzz.git /tmp/ossfuzz
  6. if [[ ! -d /tmp/ossfuzz/projects/${PROJECT_NAME} ]]
  7. then
  8. echo "Could not find the ${PROJECT_NAME} project in ossfuzz"
  9. # Exit with a success code while the libssh2 project is not expected to exist
  10. # on oss-fuzz.
  11. exit 0
  12. fi
  13. # Modify the oss-fuzz Dockerfile so that we're checking out the current branch on travis.
  14. sed -i "s@https://github.com/libssh2/libssh2.git@-b $TRAVIS_BRANCH https://github.com/libssh2/libssh2.git@" /tmp/ossfuzz/projects/${PROJECT_NAME}/Dockerfile
  15. # Try and build the fuzzers
  16. pushd /tmp/ossfuzz
  17. python infra/helper.py build_image --pull ${PROJECT_NAME}
  18. python infra/helper.py build_fuzzers ${PROJECT_NAME}
  19. popd