scan-build.sh 429 B

1234567891011121314151617
  1. #!/bin/bash -e
  2. # continuous integration test script
  3. # run this from the top-level source directory
  4. # Run clang's scan-build static analysis tool
  5. cd unix
  6. rm -Rf objs
  7. make clean
  8. scan-build -o ./scan-build make
  9. cd scan-build
  10. echo == Updating $JENKINS_URL/job/$JOB_NAME/ws/scan-build/current/
  11. rm -f current && ln -s `ls -td ????-* | head -1` current
  12. cd ..
  13. # Validate the generated code as proxy for testing under clang.
  14. make check