summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2016-03-23 23:07:41 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-03-24 11:23:11 -0700
commit0f5c30f4f2347d58b72c6aa3cddc1e422f66d0f7 (patch)
treeb33db8378902a3fa1dffba9d00ccaab77b040fbd
parentfe83a09b670620d8d6489a532cd2a67f0565f6af (diff)
downloadefl-0f5c30f4f2347d58b72c6aa3cddc1e422f66d0f7.tar.gz
elementary: add tests back in.
-rw-r--r--src/Makefile.am4
-rw-r--r--src/Makefile_Elementary.am94
2 files changed, 97 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 82a4594aa7..4019fcb9b1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,6 +7,8 @@ EOLIAN_FLAGS = -I$(srcdir)
DIST_SUBDIRS =
SUBDIRS =
+AM_TESTS_ENVIRONMENT =
+
lib_LTLIBRARIES =
bin_PROGRAMS =
bin_SCRIPTS =
@@ -89,7 +91,7 @@ am__v_CP_0 = @echo " CP " $@;
CP = cp
if EFL_ENABLE_TESTS
if HAVE_NODEJS
-AM_TESTS_ENVIRONMENT = NODE_PATH='$(abs_builddir)/lib/efl_js:$(abs_builddir)/tests/eolian_js:$(abs_builddir)/tests/efl_js'; export NODE_PATH;
+AM_TESTS_ENVIRONMENT += NODE_PATH='$(abs_builddir)/lib/efl_js:$(abs_builddir)/tests/eolian_js:$(abs_builddir)/tests/efl_js'; export NODE_PATH;
endif
endif
endif
diff --git a/src/Makefile_Elementary.am b/src/Makefile_Elementary.am
index 9d7c937a42..292fbe8388 100644
--- a/src/Makefile_Elementary.am
+++ b/src/Makefile_Elementary.am
@@ -874,6 +874,100 @@ endif
EXTRA_DIST += \
bin/elementary/test_factory.c
+if EFL_ENABLE_TESTS
+
+AM_TESTS_ENVIRONMENT += \
+ ELM_DATA_DIR=${top_builddir}/data/elementary \
+ ELM_RUN_IN_TREE=1 \
+ EFL_RUN_IN_TREE=1
+
+check_PROGRAMS += tests/elementary/elm_suite
+TESTS += tests/elementary/elm_suite
+
+tests_elementary_elm_suite_SOURCES = \
+ tests/elementary/elm_suite.c \
+ tests/elementary/elm_test_helper.c \
+ tests/elementary/elm_test_atspi.c \
+ tests/elementary/elm_test_check.c \
+ tests/elementary/elm_test_colorselector.c \
+ tests/elementary/elm_test_entry.c \
+ tests/elementary/elm_test_init.c \
+ tests/elementary/elm_test_list.c \
+ tests/elementary/elm_test_button.c \
+ tests/elementary/elm_test_image.c \
+ tests/elementary/elm_test_photo.c \
+ tests/elementary/elm_test_actionslider.c \
+ tests/elementary/elm_test_box.c \
+ tests/elementary/elm_test_table.c \
+ tests/elementary/elm_test_thumb.c \
+ tests/elementary/elm_test_menu.c \
+ tests/elementary/elm_test_photocam.c \
+ tests/elementary/elm_test_win.c \
+ tests/elementary/elm_test_icon.c \
+ tests/elementary/elm_test_prefs.c \
+ tests/elementary/elm_test_map.c \
+ tests/elementary/elm_test_glview.c \
+ tests/elementary/elm_test_web.c \
+ tests/elementary/elm_test_toolbar.c \
+ tests/elementary/elm_test_grid.c \
+ tests/elementary/elm_test_diskselector.c \
+ tests/elementary/elm_test_notify.c \
+ tests/elementary/elm_test_mapbuf.c \
+ tests/elementary/elm_test_flip.c \
+ tests/elementary/elm_test_layout.c \
+ tests/elementary/elm_test_slider.c \
+ tests/elementary/elm_test_ctxpopup.c \
+ tests/elementary/elm_test_separator.c \
+ tests/elementary/elm_test_calendar.c \
+ tests/elementary/elm_test_inwin.c \
+ tests/elementary/elm_test_gengrid.c \
+ tests/elementary/elm_test_radio.c \
+ tests/elementary/elm_test_scroller.c \
+ tests/elementary/elm_test_frame.c \
+ tests/elementary/elm_test_datetime.c \
+ tests/elementary/elm_test_player.c \
+ tests/elementary/elm_test_bg.c \
+ tests/elementary/elm_test_video.c \
+ tests/elementary/elm_test_segmentcontrol.c \
+ tests/elementary/elm_test_progressbar.c \
+ tests/elementary/elm_test_fileselector.c \
+ tests/elementary/elm_test_fileselector_button.c \
+ tests/elementary/elm_test_fileselector_entry.c \
+ tests/elementary/elm_test_hoversel.c \
+ tests/elementary/elm_test_multibuttonentry.c \
+ tests/elementary/elm_test_naviframe.c \
+ tests/elementary/elm_test_popup.c \
+ tests/elementary/elm_test_bubble.c \
+ tests/elementary/elm_test_clock.c \
+ tests/elementary/elm_test_conformant.c \
+ tests/elementary/elm_test_dayselector.c \
+ tests/elementary/elm_test_flipselector.c \
+ tests/elementary/elm_test_genlist.c \
+ tests/elementary/elm_test_hover.c \
+ tests/elementary/elm_test_index.c \
+ tests/elementary/elm_test_label.c \
+ tests/elementary/elm_test_panel.c \
+ tests/elementary/elm_test_panes.c \
+ tests/elementary/elm_test_slideshow.c \
+ tests/elementary/elm_test_spinner.c \
+ tests/elementary/elm_test_plug.c
+
+tests_elementary_elm_suite_CPPFLAGS = \
+ -DTESTS_BUILD_DIR=\"${top_builddir}/src/tests/elementary\" \
+ -DELM_IMAGE_DATA_DIR=\"${top_srcdir}/data/elementary\" \
+ -I$(top_srcdir)/src/lib/elementary \
+ -I$(top_builddir)/src/lib/elementary \
+ @CHECK_CFLAGS@ \
+ @ELEMENTARY_CFLAGS@
+
+tests_elementary_elm_suite_LDADD = @CHECK_LIBS@ @USE_ELEMENTARY_LIBS@
+tests_elementary_elm_suite_DEPENDENCIES = @USE_ELEMENTARY_INTERNAL_LIBS@
+endif
+
+EXTRA_DIST += \
+ tests/elementary/elm_suite.h \
+ tests/elementary/elm_test_helper.h
+
# if HAVE_ELUA