Split SortedMap/SortedSet into bi-directional and uni-directional parts
[platform/upstream/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        testdeque.vala \
17        testfunctions.vala \
18        testhashmap.vala \
19        testhashmultimap.vala \
20        testhashmultiset.vala \
21        testhashset.vala \
22        testlinkedlist.vala \
23        testlinkedlistasdeque.vala \
24        testlist.vala \
25        testmain.vala \
26        testmap.vala \
27        testmultimap.vala \
28        testmultiset.vala \
29        testpriorityqueue.vala \
30        testqueue.vala \
31        testreadonlybidirlist.vala \
32        testreadonlycollection.vala \
33        testreadonlylist.vala \
34        testreadonlymap.vala \
35        testreadonlyset.vala \
36        testset.vala \
37        testsortedset.vala \
38        testsortedmap.vala \
39        testtreemap.vala \
40        testtreemultimap.vala \
41        testtreemultiset.vala \
42        testtreeset.vala \
43        $(NULL)
44
45 tests_DEPENDENCIES = \
46         $(top_srcdir)/gee/gee-0.8.vapi \
47         $(NULL)
48
49 tests_VALAFLAGS = \
50         --basedir $(top_srcdir) \
51         --vapidir $(top_srcdir)/gee \
52         --pkg gee-0.8 --pkg posix \
53         $(VALAFLAGS) \
54         $(NULL)
55
56 tests_CPPFLAGS = \
57         -I$(top_srcdir)/gee \
58         $(GLIB_CFLAGS) \
59         $(NULL)
60
61 tests_LDADD = \
62         $(GLIB_LIBS) ../gee/libgee-0.8.la \
63         $(NULL)
64
65 coverage-reset:
66         lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
67
68 coverage-report:
69         lcov --directory @top_srcdir@/gee \
70                 --capture \
71                 --output-file @top_builddir@/lcov.info
72
73         lcov --directory @top_srcdir@/gee \
74                 --output-file @top_builddir@/lcov.info \
75                 --remove @top_builddir@/lcov.info \
76                 "/usr/include/*" "*.c" "*.h" "*.vapi"
77
78         $(mkdir_p) @top_builddir@/tests/coverage
79         git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
80         genhtml --title "@PACKAGE_STRING@ $$git_commit" \
81                 --output-directory @top_builddir@/tests/coverage @top_builddir@/lcov.info
82         @echo
83         @echo 'lcov report can be found in:'
84         @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
85         @echo
86
87 clean-local:
88         -rm -rf coverage
89
90 .PHONY: coverage-report