1 include $(top_srcdir)/Makefile.decl
10 noinst_PROGRAMS = $(TEST_PROGS)
12 progs_ldadd = $(GLIB_LIBS) ../gee/libgee.la
14 BUILT_SOURCES = tests.vala.stamp
22 testhashmultimap.vala \
23 testhashmultiset.vala \
25 testlinkedlistasdeque.vala \
31 testreadonlycollection.vala \
32 testreadonlylist.vala \
35 tests_SOURCES = tests.vala.stamp $(tests_VALASOURCES:.vala=.c)
36 tests.vala.stamp: $(tests_VALASOURCES)
37 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
39 tests_LDADD = $(progs_ldadd)
40 EXTRA_DIST += $(tests_VALASOURCES)
43 lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
46 lcov --directory @top_srcdir@/gee \
48 --output-file @top_builddir@/lcov.info
50 lcov --directory @top_srcdir@/gee \
51 --output-file @top_builddir@/lcov.info \
52 --remove @top_builddir@/lcov.info \
55 $(mkdir_p) @top_builddir@/tests/coverage
56 git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
57 genhtml --title "@PACKAGE_STRING@ $$git_commit" \
58 --output-directory @top_builddir@/tests/coverage @top_builddir@/lcov.info
60 @echo 'lcov report can be found in:'
61 @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
67 .PHONY: coverage-report
69 TEST_PROGS += testhashmap
70 testhashmap_VALASOURCES = testhashmap.vala
71 testhashmap_SOURCES = testhashmap.c
72 $(testhashmap_SOURCES): $(testhashmap_VALASOURCES)
73 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
75 testhashmap_LDADD = $(progs_ldadd)
76 EXTRA_DIST += $(testhashmap_VALASOURCES)
78 TEST_PROGS += testhashset
79 testhashset_VALASOURCES = testhashset.vala
80 testhashset_SOURCES = testhashset.c
81 $(testhashset_SOURCES): $(testhashset_VALASOURCES)
82 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
84 testhashset_LDADD = $(progs_ldadd)
85 EXTRA_DIST += $(testhashset_VALASOURCES)
87 TEST_PROGS += testtreeset
88 testtreeset_VALASOURCES = testtreeset.vala
89 testtreeset_SOURCES = testtreeset.c testtreeset.h
90 $(testtreeset_SOURCES): $(testtreeset_VALASOURCES)
91 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
93 testtreeset_LDADD = $(progs_ldadd)
94 EXTRA_DIST += $(testtreeset_VALASOURCES)
96 TEST_PROGS += testtreemap
97 testtreemap_VALASOURCES = testtreemap.vala
98 testtreemap_SOURCES = testtreemap.c testtreemap.h
99 $(testtreemap_SOURCES): $(testtreemap_VALASOURCES)
100 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
102 testtreemap_LDADD = $(progs_ldadd)
103 EXTRA_DIST += $(testtreemap_VALASOURCES)