Introduce PriorityQueue implementation of the Queue interface
[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        testdeque.vala \
22        testhashmap.vala \
23        testhashmultimap.vala \
24        testhashmultiset.vala \
25        testlinkedlist.vala \
26        testlinkedlistasdeque.vala \
27        testlist.vala \
28        testmain.vala \
29        testmap.vala \
30        testmultimap.vala \
31        testmultiset.vala \
32        testpriorityqueue.vala \
33        testqueue.vala \
34        testreadonlycollection.vala \
35        testreadonlylist.vala \
36        testtreemap.vala \
37        $(NULL)
38
39 tests_SOURCES = tests.vala.stamp $(tests_VALASOURCES:.vala=.c)
40 tests.vala.stamp: $(tests_VALASOURCES)
41         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
42         touch $@
43 tests_LDADD = $(progs_ldadd)
44 EXTRA_DIST += $(tests_VALASOURCES)
45
46 coverage-reset:
47         lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
48
49 coverage-report:
50         lcov --directory @top_srcdir@/gee \
51                 --capture \
52                 --output-file @top_builddir@/lcov.info
53
54         lcov --directory @top_srcdir@/gee \
55                 --output-file @top_builddir@/lcov.info \
56                 --remove @top_builddir@/lcov.info \
57                 /usr/include/\*
58
59         $(mkdir_p) @top_builddir@/tests/coverage
60         git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
61         genhtml --title "@PACKAGE_STRING@ $$git_commit" \
62                 --output-directory @top_builddir@/tests/coverage @top_builddir@/lcov.info
63         @echo
64         @echo 'lcov report can be found in:'
65         @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
66         @echo
67
68 clean-local:
69         -rm -rf coverage
70
71 .PHONY: coverage-report
72
73 TEST_PROGS += testhashset
74 testhashset_VALASOURCES = testhashset.vala
75 testhashset_SOURCES = testhashset.c
76 $(testhashset_SOURCES): $(testhashset_VALASOURCES)
77         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
78         touch $@
79 testhashset_LDADD = $(progs_ldadd)
80 EXTRA_DIST += $(testhashset_VALASOURCES)
81
82 TEST_PROGS += testtreeset
83 testtreeset_VALASOURCES = testtreeset.vala
84 testtreeset_SOURCES = testtreeset.c testtreeset.h
85 $(testtreeset_SOURCES): $(testtreeset_VALASOURCES)
86         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
87         touch $@
88 testtreeset_LDADD = $(progs_ldadd)
89 EXTRA_DIST += $(testtreeset_VALASOURCES)