Makefile.am 900 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. SUBDIRS = src
  2. USE_LCOV=@USE_LCOV@
  3. LCOV=@LCOV@
  4. GENHTML=@GENHTML@
  5. # When running distcheck target, do not install the configurations
  6. DISTCHECK_CONFIGURE_FLAGS = --disable-configuration-install
  7. clean-coverage:
  8. @if [ $(USE_LCOV) = yes ] ; then \
  9. $(LCOV) --directory . --zerocounters; \
  10. rm -rf coverage/; \
  11. else \
  12. echo "Code coverage not enabled at configuration time"; \
  13. exit 1; \
  14. fi
  15. perform-coverage: check
  16. report-coverage:
  17. $(LCOV) --capture --directory . --output-file all.info
  18. $(LCOV) --remove all.info \
  19. c++/4.4\*/\* \
  20. c++/4.4\*/backward/\* \
  21. c++/4.4\*/bits/\* \
  22. c++/4.4\*/ext/\* \
  23. c++/4.4\*/\*-\*/bits/\* \
  24. boost/\* \
  25. gtest/\* \
  26. usr/include/\* \
  27. tests/\* \
  28. unittests/\* \
  29. \*_unittests.cc \
  30. \*_unittest.cc \
  31. \*_unittests.h \
  32. --output report.info
  33. $(GENHTML) -o coverage report.info
  34. coverage: clean-coverage perform-coverage report-coverage