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
23 testhashmultimap.vala \
24 testhashmultiset.vala \
26 testlinkedlistasdeque.vala \
32 testpriorityqueue.vala \
34 testreadonlycollection.vala \
35 testreadonlylist.vala \
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 $^
43 tests_LDADD = $(progs_ldadd)
44 EXTRA_DIST += $(tests_VALASOURCES)
47 lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
50 lcov --directory @top_srcdir@/gee \
52 --output-file @top_builddir@/lcov.info
54 lcov --directory @top_srcdir@/gee \
55 --output-file @top_builddir@/lcov.info \
56 --remove @top_builddir@/lcov.info \
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
64 @echo 'lcov report can be found in:'
65 @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
71 .PHONY: coverage-report
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 $^
79 testhashset_LDADD = $(progs_ldadd)
80 EXTRA_DIST += $(testhashset_VALASOURCES)
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 $^
88 testtreeset_LDADD = $(progs_ldadd)
89 EXTRA_DIST += $(testtreeset_VALASOURCES)