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 \
33 testreadonlycollection.vala \
34 testreadonlylist.vala \
38 tests_SOURCES = tests.vala.stamp $(tests_VALASOURCES:.vala=.c)
39 tests.vala.stamp: $(tests_VALASOURCES)
40 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
42 tests_LDADD = $(progs_ldadd)
43 EXTRA_DIST += $(tests_VALASOURCES)
46 lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
49 lcov --directory @top_srcdir@/gee \
51 --output-file @top_builddir@/lcov.info
53 lcov --directory @top_srcdir@/gee \
54 --output-file @top_builddir@/lcov.info \
55 --remove @top_builddir@/lcov.info \
58 $(mkdir_p) @top_builddir@/tests/coverage
59 git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
60 genhtml --title "@PACKAGE_STRING@ $$git_commit" \
61 --output-directory @top_builddir@/tests/coverage @top_builddir@/lcov.info
63 @echo 'lcov report can be found in:'
64 @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
70 .PHONY: coverage-report
72 TEST_PROGS += testhashset
73 testhashset_VALASOURCES = testhashset.vala
74 testhashset_SOURCES = testhashset.c
75 $(testhashset_SOURCES): $(testhashset_VALASOURCES)
76 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
78 testhashset_LDADD = $(progs_ldadd)
79 EXTRA_DIST += $(testhashset_VALASOURCES)
81 TEST_PROGS += testtreeset
82 testtreeset_VALASOURCES = testtreeset.vala
83 testtreeset_SOURCES = testtreeset.c testtreeset.h
84 $(testtreeset_SOURCES): $(testtreeset_VALASOURCES)
85 $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
87 testtreeset_LDADD = $(progs_ldadd)
88 EXTRA_DIST += $(testtreeset_VALASOURCES)