coverage.sh 458 B

12345678910111213141516
  1. #!/bin/sh
  2. ./buildconf
  3. mkdir -p cvr
  4. cd cvr
  5. ../configure --disable-shared --enable-debug --enable-maintainer-mode --enable-code-coverage
  6. make -sj
  7. # the regular test run
  8. make TFLAGS=-n test-nonflaky
  9. # make all allocs/file operations fail
  10. #make TFLAGS=-n test-torture
  11. # do everything event-based
  12. make TFLAGS=-n test-event
  13. lcov -d . -c -o cov.lcov
  14. genhtml cov.lcov --output-directory coverage --title "curl code coverage"
  15. tar -cjf curl-coverage.tar.bz2 coverage