Remove ComparableTests as they have been integrated in functions tests
[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        testtreemap.vala \
33        testtreemultimap.vala \
34        testtreemultiset.vala \
35        testtreeset.vala \
36        $(NULL)
37
38 tests_DEPENDENCIES = \
39         $(top_srcdir)/gee/gee-1.0.vapi \
40         $(NULL)
41
42 tests_VALAFLAGS = \
43         --basedir $(top_srcdir) \
44         --vapidir $(top_srcdir)/gee \
45         --pkg gee-1.0 --pkg posix \
46         $(NULL)
47
48 tests_CPPFLAGS = \
49         -I$(top_srcdir)/gee \
50         $(GLIB_CFLAGS) \
51         $(NULL)
52
53 tests_LDADD = \
54         $(GLIB_LIBS) ../gee/libgee.la \
55         $(NULL)
56
57 coverage-reset:
58         lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
59
60 coverage-report:
61         lcov --directory @top_srcdir@/gee \
62                 --capture \
63                 --output-file @top_builddir@/lcov.info
64
65         lcov --directory @top_srcdir@/gee \
66                 --output-file @top_builddir@/lcov.info \
67                 --remove @top_builddir@/lcov.info \
68                 "/usr/include/*" "*.c" "*.h" "*.vapi"
69
70         $(mkdir_p) @top_builddir@/tests/coverage
71         git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
72         genhtml --title "@PACKAGE_STRING@ $$git_commit" \
73                 --output-directory @top_builddir@/tests/coverage @top_builddir@/lcov.info
74         @echo
75         @echo 'lcov report can be found in:'
76         @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
77         @echo
78
79 clean-local:
80         -rm -rf coverage
81
82 .PHONY: coverage-report