forked from geodynamics/pylith
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck.am
More file actions
46 lines (36 loc) · 1.62 KB
/
check.am
File metadata and controls
46 lines (36 loc) · 1.62 KB
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
# -*- Makefile -*-
#
# ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University at Buffalo
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2022 University of California, Davis
#
# See LICENSE.md for license information.
#
# ----------------------------------------------------------------------
#
AM_CPPFLAGS = -I$(top_srcdir)/libsrc
check-local: check-TESTS
for f in $(TEST_LOGS); do printf "\n=== $$f ===\n\n"; cat $$f; done
leakcheck: $(check_PROGRAMS)
for p in $(check_PROGRAMS); do pname=`echo $$p | sed -e s/test_//g`; valgrind --log-file=valgrind_$$pname.log --leak-check=full --suppressions=$(top_srcdir)/share/valgrind-python.supp .libs/$$p; done
# Check test coverage. Only works with gcc and requires gcov. lcov provides a GUI for viewing coverage.
# Requires compiling and linking (CFLAGS, CXXFLAGS, LDFLAGS) with --coverage.
unittest-coverage:
lcov --directory $(top_builddir)/libsrc/pylith/$(subpackage)/.libs --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' "$(TOOLS_DIR)/*" -o coverage_pkg.info
genhtml -o coverage coverage_pkg.info
mmstest-coverage:
lcov --directory $(top_builddir)/libsrc/pylith/ --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' "$(TOOLS_DIR)/*" -o coverage_pkg.info
genhtml -o coverage coverage_pkg.info
clean-coverage:
$(RM) $(RM_FLAGS) *.gcda *.gcno data/*.gcda data/*.gcno coverage.info
$(RM) $(RM_FLAGS) -r coverage
# End of file