Some more enhancements to the test infrastructure
[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 TEST_PROGS += testarraylist
15 testarraylist_VALASOURCES = testarraylist.vala testcollection.vala testcase.vala
16 testarraylist_SOURCES = testarraylist.c testcollection.c testcase.c
17 $(testarraylist_SOURCES): $(testarraylist_VALASOURCES)
18         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
19         touch $@
20 testarraylist_LDADD = $(progs_ldadd)
21 EXTRA_DIST += $(testarraylist_VALASOURCES)
22
23 TEST_PROGS += testhashmap
24 testhashmap_VALASOURCES = testhashmap.vala
25 testhashmap_SOURCES = testhashmap.c
26 $(testhashmap_SOURCES): $(testhashmap_VALASOURCES)
27         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
28         touch $@
29 testhashmap_LDADD = $(progs_ldadd)
30 EXTRA_DIST += $(testhashmap_VALASOURCES)
31
32 TEST_PROGS += testhashset
33 testhashset_VALASOURCES = testhashset.vala
34 testhashset_SOURCES = testhashset.c
35 $(testhashset_SOURCES): $(testhashset_VALASOURCES)
36         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
37         touch $@
38 testhashset_LDADD = $(progs_ldadd)
39 EXTRA_DIST += $(testhashset_VALASOURCES)
40
41 TEST_PROGS += testlinkedlist
42 testlinkedlist_VALASOURCES = testlinkedlist.vala
43 testlinkedlist_SOURCES = testlinkedlist.c
44 $(testlinkedlist_SOURCES): $(testlinkedlist_VALASOURCES)
45         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
46         touch $@
47 testlinkedlist_LDADD = $(progs_ldadd)
48 EXTRA_DIST += $(testlinkedlist_VALASOURCES)
49
50 TEST_PROGS += testtreeset
51 testtreeset_VALASOURCES = testtreeset.vala
52 testtreeset_SOURCES = testtreeset.c testtreeset.h
53 $(testtreeset_SOURCES): $(testtreeset_VALASOURCES)
54         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
55         touch $@
56 testtreeset_LDADD = $(progs_ldadd)
57 EXTRA_DIST += $(testtreeset_VALASOURCES)
58
59 TEST_PROGS += testtreemap
60 testtreemap_VALASOURCES = testtreemap.vala
61 testtreemap_SOURCES = testtreemap.c testtreemap.h
62 $(testtreemap_SOURCES): $(testtreemap_VALASOURCES)
63         $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
64         touch $@
65 testtreemap_LDADD = $(progs_ldadd)
66 EXTRA_DIST += $(testtreemap_VALASOURCES)
67