1include $(top_srcdir)/Makefile.decl 2 3noinst_PROGRAMS = $(TEST_PROGS) 4 5TEST_PROGS += tests 6 7tests_VALASOURCES = \ 8 testarraylist.vala \ 9 testarrayqueue.vala \ 10 testbidirlist.vala \ 11 testbidirsortedset.vala \ 12 testbidirsortedmap.vala \ 13 testcase.vala \ 14 testcollection.vala \ 15 testconcurrentlist.vala \ 16 testconcurrentset.vala \ 17 testdata.vala \ 18 testdeque.vala \ 19 testfunctions.vala \ 20 testhashmap.vala \ 21 testhashmultimap.vala \ 22 testhashmultiset.vala \ 23 testhashset.vala \ 24 testlinkedlist.vala \ 25 testlinkedlistasdeque.vala \ 26 testlist.vala \ 27 testmain.vala \ 28 testmap.vala \ 29 testmultimap.vala \ 30 testmultiset.vala \ 31 testpriorityqueue.vala \ 32 testqueue.vala \ 33 testreadonlybidirlist.vala \ 34 testreadonlycollection.vala \ 35 testreadonlylist.vala \ 36 testreadonlymap.vala \ 37 testreadonlyset.vala \ 38 testset.vala \ 39 testsortedset.vala \ 40 testsortedmap.vala \ 41 testtreemap.vala \ 42 testtreemultimap.vala \ 43 testtreemultiset.vala \ 44 testtreeset.vala \ 45 testunrolledlinkedlist.vala \ 46 testunrolledlinkedlistasdeque.vala \ 47 $(NULL) 48 49tests_SOURCES = \ 50 $(tests_VALASOURCES:.vala=.c) \ 51 $(NULL) 52 53tests_DEPENDENCIES = \ 54 $(top_srcdir)/gee/gee-0.8.vapi \ 55 tests_vala.stamp \ 56 $(NULL) 57 58tests_CFLAGS = \ 59 -w \ 60 $(NULL) 61 62tests_CPPFLAGS = \ 63 -I$(top_srcdir)/gee \ 64 $(GLIB_CFLAGS) \ 65 $(NULL) 66 67tests_LDADD = \ 68 $(GLIB_LIBS) ../gee/libgee-0.8.la \ 69 $(NULL) 70 71tests_VALAFLAGS = \ 72 --basedir $(top_srcdir) \ 73 --vapidir $(top_srcdir)/gee \ 74 --pkg gee-0.8 --pkg posix \ 75 $(VALAFLAGS) \ 76 $(NULL) 77 78tests_vala.stamp: $(tests_VALASOURCES) 79 $(AM_V_VALAC)$(VALAC) $(VALAFLAGS) $(tests_VALAFLAGS) -C $(tests_VALASOURCES) 80 @touch tests_vala.stamp 81 82$(tests_VALASOURCES:.vala=.c): tests_vala.stamp 83 84MOSTLYCLEANFILES = \ 85 $(tests_VALASOURCES:.vala=.c) \ 86 tests_vala.stamp \ 87 $(NULL) 88 89EXTRA_DIST += \ 90 $(tests_VALASOURCES) \ 91 tests_vala.stamp \ 92 $(NULL) 93 94coverage-reset: 95 lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters 96 97coverage-report: 98 lcov --directory @top_srcdir@/gee \ 99 --capture \ 100 --output-file @top_builddir@/lcov.info 101 102 lcov --directory @top_srcdir@/gee \ 103 --output-file @top_builddir@/lcov.info \ 104 --remove @top_builddir@/lcov.info \ 105 "/usr/include/*" "*.c" "*.h" "*.vapi" 106 107 $(mkdir_p) @top_builddir@/tests/coverage 108 git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\ 109 genhtml --title "@PACKAGE_STRING@ $$git_commit" \ 110 --output-directory @top_builddir@/tests/coverage @top_builddir@/lcov.info 111 @echo 112 @echo 'lcov report can be found in:' 113 @echo 'file://@abs_top_builddir@/tests/coverage/index.html' 114 @echo 115 116clean-local: 117 -rm -rf coverage 118 119.PHONY: coverage-report 120