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