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
21 testhashmultimap.vala \
22 testhashmultiset.vala \
28 testreadonlycollection.vala \
29 testreadonlylist.vala \
32 tests_SOURCES = tests.vala.stamp $(tests_VALASOURCES:.vala=.c)
33 tests.vala.stamp: $(tests_VALASOURCES)
34 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
36 tests_LDADD = $(progs_ldadd)
37 EXTRA_DIST += $(tests_VALASOURCES)
40 lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
43 lcov --directory @top_srcdir@/gee \
45 --output-file @top_builddir@/lcov.info
47 lcov --directory @top_srcdir@/gee \
48 --output-file @top_builddir@/lcov.info \
49 --remove @top_builddir@/lcov.info \
52 $(mkdir_p) @top_builddir@/tests/coverage
53 git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
54 genhtml --title "@PACKAGE_STRING@ $$git_commit" \
55 --output-directory @top_builddir@/tests/coverage @top_builddir@/lcov.info
57 @echo 'lcov report can be found in:'
58 @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
64 .PHONY: coverage-report
66 TEST_PROGS += testhashmap
67 testhashmap_VALASOURCES = testhashmap.vala
68 testhashmap_SOURCES = testhashmap.c
69 $(testhashmap_SOURCES): $(testhashmap_VALASOURCES)
70 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
72 testhashmap_LDADD = $(progs_ldadd)
73 EXTRA_DIST += $(testhashmap_VALASOURCES)
75 TEST_PROGS += testhashset
76 testhashset_VALASOURCES = testhashset.vala
77 testhashset_SOURCES = testhashset.c
78 $(testhashset_SOURCES): $(testhashset_VALASOURCES)
79 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
81 testhashset_LDADD = $(progs_ldadd)
82 EXTRA_DIST += $(testhashset_VALASOURCES)
84 TEST_PROGS += testtreeset
85 testtreeset_VALASOURCES = testtreeset.vala
86 testtreeset_SOURCES = testtreeset.c testtreeset.h
87 $(testtreeset_SOURCES): $(testtreeset_VALASOURCES)
88 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
90 testtreeset_LDADD = $(progs_ldadd)
91 EXTRA_DIST += $(testtreeset_VALASOURCES)
93 TEST_PROGS += testtreemap
94 testtreemap_VALASOURCES = testtreemap.vala
95 testtreemap_SOURCES = testtreemap.c testtreemap.h
96 $(testtreemap_SOURCES): $(testtreemap_VALASOURCES)
97 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
99 testtreemap_LDADD = $(progs_ldadd)
100 EXTRA_DIST += $(testtreemap_VALASOURCES)