coverage.sh 488 B

123456789101112131415161718
  1. #!/bin/bash
  2. # continuous integration test script
  3. # run this from the top-level source directory
  4. # run the lcov code-coverage analysis tool
  5. LCOV_PATH=/opt/lcov/bin
  6. LCOV=${LCOV_PATH}/lcov
  7. GENHTML=${LCOV_PATH}/genhtml
  8. cd unix
  9. rm -Rf objs
  10. make clean
  11. CFLAGS="-g3 -fprofile-arcs -ftest-coverage -UOD_ENABLE_ASSERTIONS" make
  12. CFLAGS="-g3 -fprofile-arcs -ftest-coverage -UOD_ENABLE_ASSERTIONS" make check
  13. ${LCOV} -c -b `pwd` -d `pwd` -o makecheck.info
  14. ${GENHTML} -s -o coverage/ makecheck.info