Add generic tests for collections and lists and refactor ArrayListTests
[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        testcollection.vala \
20        testlist.vala \
21        testcase.vala \
22        testmain.vala \
23        $(NULL)
24
25 tests_SOURCES = tests.vala.stamp $(tests_VALASOURCES:.vala=.c)
26 tests.vala.stamp: $(tests_VALASOURCES)
27         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
28         touch $@
29 tests_LDADD = $(progs_ldadd)
30 EXTRA_DIST += $(tests_VALASOURCES)
31
32 TEST_PROGS += testhashmap
33 testhashmap_VALASOURCES = testhashmap.vala
34 testhashmap_SOURCES = testhashmap.c
35 $(testhashmap_SOURCES): $(testhashmap_VALASOURCES)
36         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
37         touch $@
38 testhashmap_LDADD = $(progs_ldadd)
39 EXTRA_DIST += $(testhashmap_VALASOURCES)
40
41 TEST_PROGS += testhashset
42 testhashset_VALASOURCES = testhashset.vala
43 testhashset_SOURCES = testhashset.c
44 $(testhashset_SOURCES): $(testhashset_VALASOURCES)
45         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
46         touch $@
47 testhashset_LDADD = $(progs_ldadd)
48 EXTRA_DIST += $(testhashset_VALASOURCES)
49
50 TEST_PROGS += testlinkedlist
51 testlinkedlist_VALASOURCES = testlinkedlist.vala
52 testlinkedlist_SOURCES = testlinkedlist.c
53 $(testlinkedlist_SOURCES): $(testlinkedlist_VALASOURCES)
54         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
55         touch $@
56 testlinkedlist_LDADD = $(progs_ldadd)
57 EXTRA_DIST += $(testlinkedlist_VALASOURCES)
58
59 TEST_PROGS += testtreeset
60 testtreeset_VALASOURCES = testtreeset.vala
61 testtreeset_SOURCES = testtreeset.c testtreeset.h
62 $(testtreeset_SOURCES): $(testtreeset_VALASOURCES)
63         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
64         touch $@
65 testtreeset_LDADD = $(progs_ldadd)
66 EXTRA_DIST += $(testtreeset_VALASOURCES)
67
68 TEST_PROGS += testtreemap
69 testtreemap_VALASOURCES = testtreemap.vala
70 testtreemap_SOURCES = testtreemap.c testtreemap.h
71 $(testtreemap_SOURCES): $(testtreemap_VALASOURCES)
72         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
73         touch $@
74 testtreemap_LDADD = $(progs_ldadd)
75 EXTRA_DIST += $(testtreemap_VALASOURCES)
76