Add Glk unit test framework
[projects/chimara/chimara.git] / tests / unit / Makefile.am
1 # The rpath is necessary for check_ too (see rant in ../Makefile.am)
2 TEST_PLUGIN_LIBTOOL_FLAGS = \
3         -module \
4         -shared \
5         -avoid-version \
6         -export-symbols-regex "^glk_main$$" \
7         -rpath $(abs_builddir) \
8         $(NULL)
9
10 # Set up include dirs so that #include "glk.h" works
11 AM_CPPFLAGS = -I$(top_srcdir)/libchimara $(CPPFLAGS)
12
13 check_LTLIBRARIES = datetime.la
14 datetime_la_SOURCES = datetime.c glkunit.c glkunit.h
15 datetime_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
16
17 TESTS = datetime.la
18 TEST_EXTENSIONS = .la
19 LA_LOG_COMPILER = $(builddir)/../plugin-loader
20
21 CLEANFILES = \
22         test-suite.log \
23         $(TESTS) \
24         $(TESTS:.la=.log) \
25         $(TESTS:.la=.trs) \
26         $(NULL)
27
28 -include $(top_srcdir)/git.mk