-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile.am
69 lines (54 loc) · 1.92 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
59
60
61
62
63
64
65
66
67
68
69
# =================================================================================================
# This code is part of SpatialData, developed through the Computational Infrastructure
# for Geodynamics (https://github.com/geodynamics/spatialdata).
#
# Copyright (c) 2010-2024, University of California, Davis and the SpatialData Development Team.
# All rights reserved.
#
# See https://mit-license.org/ and LICENSE.md and for license information.
# =================================================================================================
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
libsrc \
modulesrc \
spatialdata \
templates \
docs
if ENABLE_TESTING
SUBDIRS += tests
endif
DISTCHECK_CONFIGURE_FLAGS = \
--enable-testing \
CPPFLAGS="-I${CXXMAPPING_INCDIR} -I${CATCH2_INCDIR} -I${PYTHIA_INCDIR}" \
LDFLAGS="-L${CXXMAPPING_LIBDIR} -L${CATCH2_LIBDIR} "
EXTRA_DIST = \
README.md \
CHANGES.md \
setup.py \
setup.cfg \
configure.ac \
applications/gensimpledb.py \
LICENSE.md \
docker/spatialdata-testenv \
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 libsrc --capture --output-file coverage-libtests.info
$(LCOV) --remove coverage-libtests.info '/usr/*' '/Library/*' "v1" "*/testing/TestDriver.*" -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