X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=blobdiff_plain;f=tests%2Funit%2FMakefile.am;fp=tests%2Funit%2FMakefile.am;h=fc51028848489115fbe45d1afce5d7043bb5d7e3;hp=0000000000000000000000000000000000000000;hb=ad091d02678a632f0f91f26072bbec29eba4c66e;hpb=9b7445bd66c18e85b0d312f0c12a5050fe528073 diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am new file mode 100644 index 0000000..fc51028 --- /dev/null +++ b/tests/unit/Makefile.am @@ -0,0 +1,28 @@ +# The rpath is necessary for check_ too (see rant in ../Makefile.am) +TEST_PLUGIN_LIBTOOL_FLAGS = \ + -module \ + -shared \ + -avoid-version \ + -export-symbols-regex "^glk_main$$" \ + -rpath $(abs_builddir) \ + $(NULL) + +# Set up include dirs so that #include "glk.h" works +AM_CPPFLAGS = -I$(top_srcdir)/libchimara $(CPPFLAGS) + +check_LTLIBRARIES = datetime.la +datetime_la_SOURCES = datetime.c glkunit.c glkunit.h +datetime_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS) + +TESTS = datetime.la +TEST_EXTENSIONS = .la +LA_LOG_COMPILER = $(builddir)/../plugin-loader + +CLEANFILES = \ + test-suite.log \ + $(TESTS) \ + $(TESTS:.la=.log) \ + $(TESTS:.la=.trs) \ + $(NULL) + +-include $(top_srcdir)/git.mk