Implement ConcurrentList
[platform/upstream/libgee.git] / tests / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 noinst_PROGRAMS = $(TEST_PROGS)
4
5 TEST_PROGS += tests
6
7 tests_SOURCES = \
8        testarraylist.vala \
9        testbidirlist.vala \
10        testcase.vala \
11        testcollection.vala \
12        testconcurrentlist.vala \
13        testdeque.vala \
14        testfunctions.vala \
15        testhashmap.vala \
16        testhashmultimap.vala \
17        testhashmultiset.vala \
18        testhashset.vala \
19        testlinkedlist.vala \
20        testlinkedlistasdeque.vala \
21        testlist.vala \
22        testmain.vala \
23        testmap.vala \
24        testmultimap.vala \
25        testmultiset.vala \
26        testpriorityqueue.vala \
27        testqueue.vala \
28        testreadonlybidirlist.vala \
29        testreadonlycollection.vala \
30        testreadonlylist.vala \
31        testreadonlymap.vala \
32        testreadonlyset.vala \
33        testset.vala \
34        testsortedset.vala \
35        testsortedmap.vala \
36        testtreemap.vala \
37        testtreemultimap.vala \
38        testtreemultiset.vala \
39        testtreeset.vala \
40        $(NULL)
41
42 tests_DEPENDENCIES = \
43         $(top_srcdir)/gee/gee-0.8.vapi \
44         $(NULL)
45
46 tests_VALAFLAGS = \
47         --basedir $(top_srcdir) \
48         --vapidir $(top_srcdir)/gee \
49         --pkg gee-0.8 --pkg posix \
50         $(VALAFLAGS) \
51         $(NULL)
52
53 tests_CPPFLAGS = \
54         -I$(top_srcdir)/gee \
55         $(GLIB_CFLAGS) \
56         $(NULL)
57
58 tests_LDADD = \
59         $(GLIB_LIBS) ../gee/libgee-0.8.la \
60         $(NULL)
61
62 coverage-reset:
63         lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
64
65 coverage-report:
66         lcov --directory @top_srcdir@/gee \
67                 --capture \
68                 --output-file @top_builddir@/lcov.info
69
70         lcov --directory @top_srcdir@/gee \
71                 --output-file @top_builddir@/lcov.info \
72                 --remove @top_builddir@/lcov.info \
73                 "/usr/include/*" "*.c" "*.h" "*.vapi"
74
75         $(mkdir_p) @top_builddir@/tests/coverage
76         git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
77         genhtml --title "@PACKAGE_STRING@ $$git_commit" \
78                 --output-directory @top_builddir@/tests/coverage @top_builddir@/lcov.info
79         @echo
80         @echo 'lcov report can be found in:'
81         @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
82         @echo
83
84 clean-local:
85         -rm -rf coverage
86
87 .PHONY: coverage-report