coverage.sh 440 B

123456789101112131415
  1. #!/bin/sh
  2. # make sure configure was run with coverage enabled...
  3. lcov --directory . --zerocounters
  4. make check
  5. rm `find * -name "test_*.gc??"` `find * -name "perf_*.gc??"`
  6. for n in `find * -name "*.gc??" | grep libs`
  7. do
  8. cd `dirname $n`
  9. mv `basename $n` ..
  10. cd -
  11. done
  12. lcov --directory . --capture --output-file app.info
  13. lcov --remove app.info /usr/include/* -o app.clean.info
  14. mkdir -p doc/coverage
  15. genhtml -o doc/coverage app.clean.info