run-coverage 521 B

12345678910111213141516171819202122232425262728
  1. #! /bin/bash
  2. TESTS="integration-tests/tests/[0-9]*[^~] \
  3. run-dbtests unit_tests"
  4. for TEST in $TESTS
  5. do
  6. dir=output/coveragedata/data_${TEST##*/}
  7. echo get coveragedata from $dir
  8. if [ ! -d $dir ]
  9. then
  10. echo no coverage data for $TEST, did the test run?
  11. exit 1
  12. fi
  13. cp $dir/.coverage.* .
  14. done
  15. apt-get update
  16. apt-get install -y python3-coverage
  17. python3-coverage combine --append
  18. python3-coverage report -m
  19. echo
  20. python3-coverage html -d coverage
  21. mkdir -p logs
  22. cp output/log* logs/