Introduce the Comparable interface and provide a CompareFunc for it
[platform/upstream/libgee.git] / tests / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 NULL =
4
5 AM_CPPFLAGS = \
6         -I$(top_srcdir)/gee \
7         $(GLIB_CFLAGS) \
8         $(NULL)
9
10 noinst_PROGRAMS = $(TEST_PROGS)
11
12 progs_ldadd = $(GLIB_LIBS) ../gee/libgee.la
13
14 BUILT_SOURCES = tests.vala.stamp
15
16 TEST_PROGS += tests
17 tests_VALASOURCES = \
18        testarraylist.vala \
19        testcase.vala \
20        testcollection.vala \
21        testcomparable.vala \
22        testdeque.vala \
23        testhashmap.vala \
24        testhashmultimap.vala \
25        testhashmultiset.vala \
26        testhashset.vala \
27        testlinkedlist.vala \
28        testlinkedlistasdeque.vala \
29        testlist.vala \
30        testmain.vala \
31        testmap.vala \
32        testmultimap.vala \
33        testmultiset.vala \
34        testpriorityqueue.vala \
35        testqueue.vala \
36        testreadonlycollection.vala \
37        testreadonlylist.vala \
38        testset.vala \
39        testtreemap.vala \
40        testtreeset.vala \
41        $(NULL)
42
43 tests_SOURCES = tests.vala.stamp $(tests_VALASOURCES:.vala=.c)
44 tests.vala.stamp: $(tests_VALASOURCES)
45         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
46         touch $@
47 tests_LDADD = $(progs_ldadd)
48 EXTRA_DIST += $(tests_VALASOURCES)
49
50 coverage-reset:
51         lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
52
53 coverage-report:
54         lcov --directory @top_srcdir@/gee \
55                 --capture \
56                 --output-file @top_builddir@/lcov.info
57
58         lcov --directory @top_srcdir@/gee \
59                 --output-file @top_builddir@/lcov.info \
60                 --remove @top_builddir@/lcov.info \
61                 /usr/include/\*
62
63         $(mkdir_p) @top_builddir@/tests/coverage
64         git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
65         genhtml --title "@PACKAGE_STRING@ $$git_commit" \
66                 --output-directory @top_builddir@/tests/coverage @top_builddir@/lcov.info
67         @echo
68         @echo 'lcov report can be found in:'
69         @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
70         @echo
71
72 clean-local:
73         -rm -rf coverage
74
75 .PHONY: coverage-report