aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Elocation.am
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-10-28 15:55:02 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-11-11 11:06:05 +0100
commitd3476bf77891547506f77c00d707e7b57b69aa35 (patch)
treefaedf2b5be98c0a1a77fb03c138d715fa24745b4 /src/Makefile_Elocation.am
parentelocation: Add example for using the elocation API (diff)
downloadefl-d3476bf77891547506f77c00d707e7b57b69aa35.tar.gz
tests/elocation: Add elocation test suite.
Not covering all cases yet but still a good start.
Diffstat (limited to 'src/Makefile_Elocation.am')
-rw-r--r--src/Makefile_Elocation.am21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Makefile_Elocation.am b/src/Makefile_Elocation.am
index 0fc5b696ed..4314725220 100644
--- a/src/Makefile_Elocation.am
+++ b/src/Makefile_Elocation.am
@@ -14,3 +14,24 @@ lib_elocation_libelocation_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @ELOCATIO
lib_elocation_libelocation_la_LIBADD = @ELOCATION_LIBS@
lib_elocation_libelocation_la_DEPENDENCIES = @ELOCATION_INTERNAL_LIBS@
lib_elocation_libelocation_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
+
+### Unit tests
+
+if EFL_ENABLE_TESTS
+
+check_PROGRAMS += tests/elocation/elocation_suite
+TESTS += tests/elocation/elocation_suite
+
+tests_elocation_elocation_suite_SOURCES = \
+tests/elocation/elocation_suite.c
+
+tests_elocation_elocation_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
+-DTESTS_WD=\"`pwd`\" \
+-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/elocation\" \
+-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/elocation\" \
+@CHECK_CFLAGS@ \
+@ELOCATION_CFLAGS@
+tests_elocation_elocation_suite_LDADD = @CHECK_LIBS@ @USE_ELOCATION_LIBS@
+tests_elocation_elocation_suite_DEPENDENCIES = @USE_ELOCATION_INTERNAL_LIBS@
+
+endif