Reuse generic Collection and List tests for LinkedList
[platform/upstream/libgee.git] / tests / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 NULL =
4
5 AM_CPPFLAGS = \
6         -I$(top_srcdir)/gee \
7         $(GLIB_CFLAGS) \
8         $(NULL)
9
10 noinst_PROGRAMS = $(TEST_PROGS)
11
12 progs_ldadd = $(GLIB_LIBS) ../gee/libgee.la
13
14 BUILT_SOURCES = tests.vala.stamp
15
16 TEST_PROGS += tests
17 tests_VALASOURCES = \
18        testarraylist.vala \
19        testcase.vala \
20        testcollection.vala \
21        testlinkedlist.vala \
22        testlist.vala \
23        testmain.vala \
24        $(NULL)
25
26 tests_SOURCES = tests.vala.stamp $(tests_VALASOURCES:.vala=.c)
27 tests.vala.stamp: $(tests_VALASOURCES)
28         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
29         touch $@
30 tests_LDADD = $(progs_ldadd)
31 EXTRA_DIST += $(tests_VALASOURCES)
32
33 TEST_PROGS += testhashmap
34 testhashmap_VALASOURCES = testhashmap.vala
35 testhashmap_SOURCES = testhashmap.c
36 $(testhashmap_SOURCES): $(testhashmap_VALASOURCES)
37         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
38         touch $@
39 testhashmap_LDADD = $(progs_ldadd)
40 EXTRA_DIST += $(testhashmap_VALASOURCES)
41
42 TEST_PROGS += testhashset
43 testhashset_VALASOURCES = testhashset.vala
44 testhashset_SOURCES = testhashset.c
45 $(testhashset_SOURCES): $(testhashset_VALASOURCES)
46         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
47         touch $@
48 testhashset_LDADD = $(progs_ldadd)
49 EXTRA_DIST += $(testhashset_VALASOURCES)
50
51 TEST_PROGS += testtreeset
52 testtreeset_VALASOURCES = testtreeset.vala
53 testtreeset_SOURCES = testtreeset.c testtreeset.h
54 $(testtreeset_SOURCES): $(testtreeset_VALASOURCES)
55         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
56         touch $@
57 testtreeset_LDADD = $(progs_ldadd)
58 EXTRA_DIST += $(testtreeset_VALASOURCES)
59
60 TEST_PROGS += testtreemap
61 testtreemap_VALASOURCES = testtreemap.vala
62 testtreemap_SOURCES = testtreemap.c testtreemap.h
63 $(testtreemap_SOURCES): $(testtreemap_VALASOURCES)
64         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
65         touch $@
66 testtreemap_LDADD = $(progs_ldadd)
67 EXTRA_DIST += $(testtreemap_VALASOURCES)
68