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