coverage.sh 391 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. if [ -z "$(echo $CC | grep "gcc")" ]; then
  3. echo "no gcc detected, early exit success"
  4. exit 0
  5. fi
  6. # output version
  7. bash printinfo.sh
  8. bash build.sh " $1" " $2" " $3 " "$4 -fprofile-arcs -ftest-coverage " "$5 -lgcov"
  9. if [ -a testok.txt ] && [ -f testok.txt ]; then
  10. echo
  11. else
  12. echo
  13. echo "Test failed"
  14. exit 1
  15. fi
  16. cpp-coveralls
  17. exit 0
  18. # $Source$
  19. # $Revision$
  20. # $Date$