Update Changelog
[profile/ivi/libgee.git] / tests / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 noinst_PROGRAMS = $(TEST_PROGS)
4
5 TEST_PROGS += tests
6
7 tests_SOURCES = \
8        testarraylist.vala \
9        testarrayqueue.vala \
10        testbidirlist.vala \
11        testbidirsortedset.vala \
12        testbidirsortedmap.vala \
13        testcase.vala \
14        testcollection.vala \
15        testconcurrentlist.vala \
16        testconcurrentset.vala \
17        testdata.vala \
18        testdeque.vala \
19        testfunctions.vala \
20        testhashmap.vala \
21        testhashmultimap.vala \
22        testhashmultiset.vala \
23        testhashset.vala \
24        testlinkedlist.vala \
25        testlinkedlistasdeque.vala \
26        testlist.vala \
27        testmain.vala \
28        testmap.vala \
29        testmultimap.vala \
30        testmultiset.vala \
31        testpriorityqueue.vala \
32        testqueue.vala \
33        testreadonlybidirlist.vala \
34        testreadonlycollection.vala \
35        testreadonlylist.vala \
36        testreadonlymap.vala \
37        testreadonlyset.vala \
38        testset.vala \
39        testsortedset.vala \
40        testsortedmap.vala \
41        testtreemap.vala \
42        testtreemultimap.vala \
43        testtreemultiset.vala \
44        testtreeset.vala \
45        $(NULL)
46
47 tests_DEPENDENCIES = \
48         $(top_srcdir)/gee/gee-0.8.vapi \
49         $(NULL)
50
51 tests_VALAFLAGS = \
52         --basedir $(top_srcdir) \
53         --vapidir $(top_srcdir)/gee \
54         --pkg gee-0.8 --pkg posix \
55         $(VALAFLAGS) \
56         $(NULL)
57
58 tests_CPPFLAGS = \
59         -I$(top_srcdir)/gee \
60         $(GLIB_CFLAGS) \
61         $(NULL)
62
63 tests_LDADD = \
64         $(GLIB_LIBS) ../gee/libgee-0.8.la \
65         $(NULL)
66
67 coverage-reset:
68         lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
69
70 coverage-report:
71         lcov --directory @top_srcdir@/gee \
72                 --capture \
73                 --output-file @top_builddir@/lcov.info
74
75         lcov --directory @top_srcdir@/gee \
76                 --output-file @top_builddir@/lcov.info \
77                 --remove @top_builddir@/lcov.info \
78                 "/usr/include/*" "*.c" "*.h" "*.vapi"
79
80         $(mkdir_p) @top_builddir@/tests/coverage
81         git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
82         genhtml --title "@PACKAGE_STRING@ $$git_commit" \
83                 --output-directory @top_builddir@/tests/coverage @top_builddir@/lcov.info
84         @echo
85         @echo 'lcov report can be found in:'
86         @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
87         @echo
88
89 clean-local:
90         -rm -rf coverage
91
92 .PHONY: coverage-report