-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile.am
58 lines (44 loc) · 1.23 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
bin \
libsrc \
pythia
if ENABLE_MPI
SUBDIRS += nemesis
endif
if ENABLE_TESTING
SUBDIRS += tests
endif
EXTRA_DIST = \
AUTHORS \
COPYING \
NEWS \
README.md \
CHANGES.md \
setup.py \
setup.cfg \
configure.ac \
docker/pythia-testenv \
developer/uncrustify.cfg \
ci-config/run_tests.sh \
ci-config/codecov.yml
.PHONY: coverage-libtests coverage-pytests coverage-html clean-coverage
if ENABLE_TEST_COVERAGE
coverage-libtests:
$(LCOV) --directory tests/libtests --capture --output-file coverage-libtests.info
$(LCOV) --remove coverage-libtests.info '/usr/*' '/Library/*' "v1" "*/object.h" "*/include/cppunit/*" "*/libtests/*" -o coverage-libtests.info
$(LCOV) --list coverage-libtests.info
coverage-pytests:
$(PYTHON_COVERAGE) combine tests/pytests/.coverage
$(PYTHON_COVERAGE) xml -o coverage-pytests.xml
coverage-html: coverage-libtests coverage-pytests
genhtml -o coverage-libtests coverage-libtests.info
$(PYTHON_COVERAGE) html -d coverage-pytests
clean-coverage:
$(RM) `find . -name "*.gcda"`
$(RM) `find . -name ".coverage"`
else
coverage-libtests coverage-pytests coverage-html clean-coverage:
$(warning Test coverage not enabled. Ignoring test coverage targets)
endif
# End of file