aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Eolian_Cxx.am
diff options
context:
space:
mode:
authorSavio Sena <savio@expertisesolutions.com.br>2014-07-16 16:14:17 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-07-18 18:55:56 -0300
commitac8975a73f90c07dfa6f9587b72cfde1e6014bdb (patch)
treeab2e2f694489f49bd9d9a41f39245daf66d854f3 /src/Makefile_Eolian_Cxx.am
parenteina-cxx: Added interop containers. (diff)
downloadefl-ac8975a73f90c07dfa6f9587b72cfde1e6014bdb.tar.gz
eolian-cxx: Added tests.
Diffstat (limited to 'src/Makefile_Eolian_Cxx.am')
-rw-r--r--src/Makefile_Eolian_Cxx.am39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/Makefile_Eolian_Cxx.am b/src/Makefile_Eolian_Cxx.am
index e31be2bc74..af89d12244 100644
--- a/src/Makefile_Eolian_Cxx.am
+++ b/src/Makefile_Eolian_Cxx.am
@@ -49,5 +49,44 @@ bin_eolian_cxx_eolian_cxx_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@
include Makefile_Eolian_Cxx_Helper.am
+
+### Unit tests
+
+if EFL_ENABLE_TESTS
+
+check_PROGRAMS += tests/eolian_cxx/eolian_cxx_suite
+TESTS += tests/eolian_cxx/eolian_cxx_suite
+
+tests_eolian_cxx_eolian_cxx_suite_SOURCES = \
+tests/eolian_cxx/eolian_cxx_suite.cc \
+tests/eolian_cxx/eolian_cxx_test_parse.cc \
+tests/eolian_cxx/eolian_cxx_test_generate.cc
+
+tests_eolian_cxx_eolian_cxx_suite_CXXFLAGS = \
+-I$(top_builddir)/src/lib/efl \
+-I$(top_srcdir)/src/bin/eolian_cxx \
+-I$(top_srcdir)/src/lib/eolian_cxx \
+-DTESTS_WD=\"`pwd`\" \
+-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eolian_cxx\" \
+-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)/src/tests/eolian_cxx\" \
+-DPACKAGE_DATA_DIR=\"$(datadir)/eolian_cxx\" \
+-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/eolian_cxx\" \
+@CHECK_CFLAGS@ @EOLIAN_CXX_CFLAGS@ @EINA_CXX_CFLAGS@ \
+@EOLIAN_CFLAGS@ @EINA_CFLAGS@ @EO_CFLAGS@
+
+tests_eolian_cxx_eolian_cxx_suite_CFLAGS = ${tests_eolian_cxx_eolian_cxx_suite_CXXFLAGS}
+tests_eolian_cxx_eolian_cxx_suite_CPPFLAGS = ${tests_eolian_cxx_eolian_cxx_suite_CXXFLAGS}
+tests_eolian_cxx_eolian_cxx_suite_LDADD = \
+@CHECK_LIBS@ @USE_EO_LIBS@ @USE_EINA_LIBS@ @USE_EOLIAN_LIBS@
+tests_eolian_cxx_eolian_cxx_suite_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@
+
endif
+EXTRA_DIST += \
+tests/eolian_cxx/data/base.eo \
+tests/eolian_cxx/data/class_simple.eo \
+tests/eolian_cxx/data/scope.eo \
+tests/eolian_cxx/data/ctor_dtor.eo \
+tests/eolian_cxx/data/complex_type.eo
+
+endif