-
Notifications
You must be signed in to change notification settings - Fork 742
Expand file tree
/
Copy pathMakefile.am
More file actions
57 lines (43 loc) · 1.38 KB
/
Makefile.am
File metadata and controls
57 lines (43 loc) · 1.38 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
47
48
49
50
51
52
53
54
55
56
AM_CFLAGS = $(TEST_CFLAGS) -I$(top_srcdir)/src -g
AM_CXXFLAGS = $(AM_CFLAGS)
LDADD = $(top_builddir)/src/libcalgtest.a libtestframework.a
if USE_VALGRIND
LOG_COMPILER=./valgrind-wrapper
endif
TESTS = \
test-alloc-testing \
test-arraylist \
test-avl-tree \
test-binary-heap \
test-binomial-heap \
test-bloom-filter \
test-cpp \
test-list \
test-slist \
test-queue \
test-compare-functions \
test-hash-functions \
test-hash-table \
test-rb-tree \
test-set \
test-trie \
test-sortedarray
check_PROGRAMS = $(TESTS)
check_LIBRARIES = libtestframework.a
libtestframework_a_SOURCES=\
alloc-testing.c alloc-testing.h \
framework.c framework.h
test_cpp_SOURCES = test-cpp.cpp
EXTRA_DIST=valgrind-wrapper gencov
if BUILD_COVERAGE
# Delete .gcda files before running tests.
check-am: check-prerun
check-prerun:
@rm -f $(top_builddir)/lib/*.gcda \
$(top_builddir)/src/*.gcda \
$(top_builddir)/test/*.gcda
# Display coverage summary after running tests.
check: report-coverage
report-coverage: check-am
@cd $(top_builddir); ./test/gencov src/*.c
endif