test_patch.sh 365 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env bash
  2. set -e
  3. rm -rf .testpatch
  4. mkdir .testpatch
  5. cd .testpatch
  6. svn co $(svn info .. | grep ^URL | awk '{print $2;}') .
  7. curl "$1" | patch -p0 --binary
  8. make STRICT=1
  9. make STRICT=1 check
  10. make STRICT=1 clean
  11. make STRICT=1 CONFIG=clang
  12. make STRICT=1 CONFIG=clang check
  13. make STRICT=1 CONFIG=clang clean
  14. cd ..
  15. rm -rf .testpatch
  16. echo "patch OK"