diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/ecore/src/tests | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to 'libraries/ecore/src/tests')
-rw-r--r-- | libraries/ecore/src/tests/Makefile.am | 37 | ||||
-rw-r--r-- | libraries/ecore/src/tests/Makefile.in | 781 | ||||
-rw-r--r-- | libraries/ecore/src/tests/ecore_suite.c | 103 | ||||
-rw-r--r-- | libraries/ecore/src/tests/ecore_suite.h | 11 | ||||
-rw-r--r-- | libraries/ecore/src/tests/ecore_test_ecore.c | 367 | ||||
-rw-r--r-- | libraries/ecore/src/tests/ecore_test_ecore_con.c | 258 | ||||
-rw-r--r-- | libraries/ecore/src/tests/ecore_test_ecore_x.c | 60 |
7 files changed, 0 insertions, 1617 deletions
diff --git a/libraries/ecore/src/tests/Makefile.am b/libraries/ecore/src/tests/Makefile.am deleted file mode 100644 index bfd20d9..0000000 --- a/libraries/ecore/src/tests/Makefile.am +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | AM_CPPFLAGS = \ | ||
4 | -I$(top_srcdir)/src/lib/ecore \ | ||
5 | -I$(top_srcdir)/src/lib/ecore_con \ | ||
6 | -I$(top_srcdir)/src/lib/ecore_x \ | ||
7 | @EINA_CFLAGS@ \ | ||
8 | @CHECK_CFLAGS@ | ||
9 | |||
10 | if EFL_ENABLE_TESTS | ||
11 | |||
12 | noinst_PROGRAMS = ecore_suite | ||
13 | |||
14 | check_PROGRAMS = ecore_suite | ||
15 | |||
16 | ecore_suite_SOURCES = \ | ||
17 | ecore_suite.c \ | ||
18 | ecore_test_ecore.c \ | ||
19 | ecore_test_ecore_con.c \ | ||
20 | ecore_test_ecore_x.c \ | ||
21 | ecore_suite.h | ||
22 | |||
23 | ecore_suite_LDADD = \ | ||
24 | @CHECK_LIBS@ \ | ||
25 | @EINA_LIBS@ \ | ||
26 | $(top_builddir)/src/lib/ecore/libecore.la \ | ||
27 | $(top_builddir)/src/lib/ecore_con/libecore_con.la | ||
28 | |||
29 | if BUILD_ECORE_X | ||
30 | ecore_suite_LDADD += \ | ||
31 | $(top_builddir)/src/lib/ecore_x/libecore_x.la | ||
32 | endif | ||
33 | |||
34 | endif | ||
35 | |||
36 | clean-local: | ||
37 | rm -rf *.gcno *.gcda | ||
diff --git a/libraries/ecore/src/tests/Makefile.in b/libraries/ecore/src/tests/Makefile.in deleted file mode 100644 index aa799d9..0000000 --- a/libraries/ecore/src/tests/Makefile.in +++ /dev/null | |||
@@ -1,781 +0,0 @@ | |||
1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
6 | # Inc. | ||
7 | # This Makefile.in is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy and/or distribute it, | ||
9 | # with or without modifications, as long as this notice is preserved. | ||
10 | |||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
14 | # PARTICULAR PURPOSE. | ||
15 | |||
16 | @SET_MAKE@ | ||
17 | |||
18 | VPATH = @srcdir@ | ||
19 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
24 | install_sh_DATA = $(install_sh) -c -m 644 | ||
25 | install_sh_PROGRAM = $(install_sh) -c | ||
26 | install_sh_SCRIPT = $(install_sh) -c | ||
27 | INSTALL_HEADER = $(INSTALL_DATA) | ||
28 | transform = $(program_transform_name) | ||
29 | NORMAL_INSTALL = : | ||
30 | PRE_INSTALL = : | ||
31 | POST_INSTALL = : | ||
32 | NORMAL_UNINSTALL = : | ||
33 | PRE_UNINSTALL = : | ||
34 | POST_UNINSTALL = : | ||
35 | build_triplet = @build@ | ||
36 | host_triplet = @host@ | ||
37 | @EFL_ENABLE_TESTS_TRUE@noinst_PROGRAMS = ecore_suite$(EXEEXT) | ||
38 | @EFL_ENABLE_TESTS_TRUE@check_PROGRAMS = ecore_suite$(EXEEXT) | ||
39 | @BUILD_ECORE_X_TRUE@@EFL_ENABLE_TESTS_TRUE@am__append_1 = \ | ||
40 | @BUILD_ECORE_X_TRUE@@EFL_ENABLE_TESTS_TRUE@$(top_builddir)/src/lib/ecore_x/libecore_x.la | ||
41 | |||
42 | subdir = src/tests | ||
43 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
44 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
45 | am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \ | ||
46 | $(top_srcdir)/m4/ac_path_generic.m4 \ | ||
47 | $(top_srcdir)/m4/check_x_extension.m4 \ | ||
48 | $(top_srcdir)/m4/ecore_check_module.m4 \ | ||
49 | $(top_srcdir)/m4/ecore_check_options.m4 \ | ||
50 | $(top_srcdir)/m4/efl_compiler_flag.m4 \ | ||
51 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
52 | $(top_srcdir)/m4/efl_examples.m4 \ | ||
53 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
54 | $(top_srcdir)/m4/efl_threads.m4 $(top_srcdir)/m4/gettext.m4 \ | ||
55 | $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ | ||
56 | $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ | ||
57 | $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
58 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
59 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
60 | $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ | ||
61 | $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac | ||
62 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
63 | $(ACLOCAL_M4) | ||
64 | mkinstalldirs = $(install_sh) -d | ||
65 | CONFIG_HEADER = $(top_builddir)/config.h | ||
66 | CONFIG_CLEAN_FILES = | ||
67 | CONFIG_CLEAN_VPATH_FILES = | ||
68 | PROGRAMS = $(noinst_PROGRAMS) | ||
69 | am__ecore_suite_SOURCES_DIST = ecore_suite.c ecore_test_ecore.c \ | ||
70 | ecore_test_ecore_con.c ecore_test_ecore_x.c ecore_suite.h | ||
71 | @EFL_ENABLE_TESTS_TRUE@am_ecore_suite_OBJECTS = ecore_suite.$(OBJEXT) \ | ||
72 | @EFL_ENABLE_TESTS_TRUE@ ecore_test_ecore.$(OBJEXT) \ | ||
73 | @EFL_ENABLE_TESTS_TRUE@ ecore_test_ecore_con.$(OBJEXT) \ | ||
74 | @EFL_ENABLE_TESTS_TRUE@ ecore_test_ecore_x.$(OBJEXT) | ||
75 | ecore_suite_OBJECTS = $(am_ecore_suite_OBJECTS) | ||
76 | @EFL_ENABLE_TESTS_TRUE@ecore_suite_DEPENDENCIES = $(top_builddir)/src/lib/ecore/libecore.la \ | ||
77 | @EFL_ENABLE_TESTS_TRUE@ $(top_builddir)/src/lib/ecore_con/libecore_con.la \ | ||
78 | @EFL_ENABLE_TESTS_TRUE@ $(am__append_1) | ||
79 | AM_V_lt = $(am__v_lt_$(V)) | ||
80 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
81 | am__v_lt_0 = --silent | ||
82 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
83 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
84 | am__depfiles_maybe = depfiles | ||
85 | am__mv = mv -f | ||
86 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
87 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
88 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
89 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
90 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
91 | $(AM_CFLAGS) $(CFLAGS) | ||
92 | AM_V_CC = $(am__v_CC_$(V)) | ||
93 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
94 | am__v_CC_0 = @echo " CC " $@; | ||
95 | AM_V_at = $(am__v_at_$(V)) | ||
96 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
97 | am__v_at_0 = @ | ||
98 | CCLD = $(CC) | ||
99 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
100 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
101 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
102 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
103 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
104 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
105 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
106 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
107 | am__v_GEN_0 = @echo " GEN " $@; | ||
108 | SOURCES = $(ecore_suite_SOURCES) | ||
109 | DIST_SOURCES = $(am__ecore_suite_SOURCES_DIST) | ||
110 | ETAGS = etags | ||
111 | CTAGS = ctags | ||
112 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
113 | ACLOCAL = @ACLOCAL@ | ||
114 | ALLOCA = @ALLOCA@ | ||
115 | AMTAR = @AMTAR@ | ||
116 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
117 | AR = @AR@ | ||
118 | AS = @AS@ | ||
119 | AUTOCONF = @AUTOCONF@ | ||
120 | AUTOHEADER = @AUTOHEADER@ | ||
121 | AUTOMAKE = @AUTOMAKE@ | ||
122 | AWK = @AWK@ | ||
123 | CARES_CFLAGS = @CARES_CFLAGS@ | ||
124 | CARES_LIBS = @CARES_LIBS@ | ||
125 | CC = @CC@ | ||
126 | CCDEPMODE = @CCDEPMODE@ | ||
127 | CFLAGS = @CFLAGS@ | ||
128 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
129 | CHECK_LIBS = @CHECK_LIBS@ | ||
130 | CPP = @CPP@ | ||
131 | CPPFLAGS = @CPPFLAGS@ | ||
132 | CURL_CFLAGS = @CURL_CFLAGS@ | ||
133 | CURL_LIBS = @CURL_LIBS@ | ||
134 | CXX = @CXX@ | ||
135 | CXXCPP = @CXXCPP@ | ||
136 | CXXDEPMODE = @CXXDEPMODE@ | ||
137 | CXXFLAGS = @CXXFLAGS@ | ||
138 | CYGPATH_W = @CYGPATH_W@ | ||
139 | DEFS = @DEFS@ | ||
140 | DEPDIR = @DEPDIR@ | ||
141 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
142 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
143 | DLLTOOL = @DLLTOOL@ | ||
144 | DSYMUTIL = @DSYMUTIL@ | ||
145 | DUMPBIN = @DUMPBIN@ | ||
146 | ECHO_C = @ECHO_C@ | ||
147 | ECHO_N = @ECHO_N@ | ||
148 | ECHO_T = @ECHO_T@ | ||
149 | ECORE_XCB_CFLAGS = @ECORE_XCB_CFLAGS@ | ||
150 | ECORE_XCB_LIBS = @ECORE_XCB_LIBS@ | ||
151 | EFL_ECORE_BUILD = @EFL_ECORE_BUILD@ | ||
152 | EFL_ECORE_CON_BUILD = @EFL_ECORE_CON_BUILD@ | ||
153 | EFL_ECORE_EVAS_BUILD = @EFL_ECORE_EVAS_BUILD@ | ||
154 | EFL_ECORE_FILE_BUILD = @EFL_ECORE_FILE_BUILD@ | ||
155 | EFL_ECORE_IMF_BUILD = @EFL_ECORE_IMF_BUILD@ | ||
156 | EFL_ECORE_IMF_EVAS_BUILD = @EFL_ECORE_IMF_EVAS_BUILD@ | ||
157 | EFL_ECORE_INPUT_BUILD = @EFL_ECORE_INPUT_BUILD@ | ||
158 | EFL_ECORE_INPUT_EVAS_BUILD = @EFL_ECORE_INPUT_EVAS_BUILD@ | ||
159 | EFL_ECORE_IPC_BUILD = @EFL_ECORE_IPC_BUILD@ | ||
160 | EFL_ECORE_PSL1GHT_BUILD = @EFL_ECORE_PSL1GHT_BUILD@ | ||
161 | EFL_ECORE_SDL_BUILD = @EFL_ECORE_SDL_BUILD@ | ||
162 | EFL_ECORE_WIN32_BUILD = @EFL_ECORE_WIN32_BUILD@ | ||
163 | EFL_ECORE_WINCE_BUILD = @EFL_ECORE_WINCE_BUILD@ | ||
164 | EFL_PTHREAD_CFLAGS = @EFL_PTHREAD_CFLAGS@ | ||
165 | EFL_PTHREAD_LIBS = @EFL_PTHREAD_LIBS@ | ||
166 | EGREP = @EGREP@ | ||
167 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
168 | EINA_LIBS = @EINA_LIBS@ | ||
169 | ESCAPE_CFLAGS = @ESCAPE_CFLAGS@ | ||
170 | ESCAPE_LIBS = @ESCAPE_LIBS@ | ||
171 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
172 | EVAS_LIBS = @EVAS_LIBS@ | ||
173 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
174 | EVIL_LIBS = @EVIL_LIBS@ | ||
175 | EXEEXT = @EXEEXT@ | ||
176 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
177 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
178 | FGREP = @FGREP@ | ||
179 | GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ | ||
180 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
181 | GLIB_LIBS = @GLIB_LIBS@ | ||
182 | GMSGFMT = @GMSGFMT@ | ||
183 | GMSGFMT_015 = @GMSGFMT_015@ | ||
184 | GREP = @GREP@ | ||
185 | INSTALL = @INSTALL@ | ||
186 | INSTALL_DATA = @INSTALL_DATA@ | ||
187 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
188 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
189 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
190 | INTLLIBS = @INTLLIBS@ | ||
191 | INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ | ||
192 | KEYSYMDEFS = @KEYSYMDEFS@ | ||
193 | LD = @LD@ | ||
194 | LDFLAGS = @LDFLAGS@ | ||
195 | LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ | ||
196 | LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ | ||
197 | LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ | ||
198 | LIBICONV = @LIBICONV@ | ||
199 | LIBINTL = @LIBINTL@ | ||
200 | LIBOBJS = @LIBOBJS@ | ||
201 | LIBS = @LIBS@ | ||
202 | LIBTOOL = @LIBTOOL@ | ||
203 | LIPO = @LIPO@ | ||
204 | LN_S = @LN_S@ | ||
205 | LTLIBICONV = @LTLIBICONV@ | ||
206 | LTLIBINTL = @LTLIBINTL@ | ||
207 | LTLIBOBJS = @LTLIBOBJS@ | ||
208 | MAKEINFO = @MAKEINFO@ | ||
209 | MKDIR_P = @MKDIR_P@ | ||
210 | MSGFMT = @MSGFMT@ | ||
211 | MSGFMT_015 = @MSGFMT_015@ | ||
212 | MSGMERGE = @MSGMERGE@ | ||
213 | NM = @NM@ | ||
214 | NMEDIT = @NMEDIT@ | ||
215 | OBJC = @OBJC@ | ||
216 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
217 | OBJCFLAGS = @OBJCFLAGS@ | ||
218 | OBJDUMP = @OBJDUMP@ | ||
219 | OBJEXT = @OBJEXT@ | ||
220 | OTOOL = @OTOOL@ | ||
221 | OTOOL64 = @OTOOL64@ | ||
222 | PACKAGE = @PACKAGE@ | ||
223 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
224 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
225 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
226 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
227 | PACKAGE_URL = @PACKAGE_URL@ | ||
228 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
229 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
230 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
231 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
232 | PKG_CONFIG = @PKG_CONFIG@ | ||
233 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
234 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
235 | POSUB = @POSUB@ | ||
236 | RANLIB = @RANLIB@ | ||
237 | SCIM_CFLAGS = @SCIM_CFLAGS@ | ||
238 | SCIM_LIBS = @SCIM_LIBS@ | ||
239 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
240 | SDL_CONFIG = @SDL_CONFIG@ | ||
241 | SDL_LIBS = @SDL_LIBS@ | ||
242 | SED = @SED@ | ||
243 | SET_MAKE = @SET_MAKE@ | ||
244 | SHELL = @SHELL@ | ||
245 | SHM_OPEN_LIBS = @SHM_OPEN_LIBS@ | ||
246 | SSL_CFLAGS = @SSL_CFLAGS@ | ||
247 | SSL_LIBS = @SSL_LIBS@ | ||
248 | STRIP = @STRIP@ | ||
249 | TLS2_CFLAGS = @TLS2_CFLAGS@ | ||
250 | TLS2_LIBS = @TLS2_LIBS@ | ||
251 | TLS_CFLAGS = @TLS_CFLAGS@ | ||
252 | TLS_LIBS = @TLS_LIBS@ | ||
253 | TSLIB_CFLAGS = @TSLIB_CFLAGS@ | ||
254 | TSLIB_LIBS = @TSLIB_LIBS@ | ||
255 | USE_NLS = @USE_NLS@ | ||
256 | VERSION = @VERSION@ | ||
257 | VMAJ = @VMAJ@ | ||
258 | WAYLAND_CFLAGS = @WAYLAND_CFLAGS@ | ||
259 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
260 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
261 | WAYLAND_LIBS = @WAYLAND_LIBS@ | ||
262 | WIN32_CFLAGS = @WIN32_CFLAGS@ | ||
263 | WIN32_CPPFLAGS = @WIN32_CPPFLAGS@ | ||
264 | WIN32_LIBS = @WIN32_LIBS@ | ||
265 | XCB_COMPOSITE_CFLAGS = @XCB_COMPOSITE_CFLAGS@ | ||
266 | XCB_COMPOSITE_LIBS = @XCB_COMPOSITE_LIBS@ | ||
267 | XCB_CURSOR_CFLAGS = @XCB_CURSOR_CFLAGS@ | ||
268 | XCB_CURSOR_LIBS = @XCB_CURSOR_LIBS@ | ||
269 | XCB_DAMAGE_CFLAGS = @XCB_DAMAGE_CFLAGS@ | ||
270 | XCB_DAMAGE_LIBS = @XCB_DAMAGE_LIBS@ | ||
271 | XCB_DPMS_CFLAGS = @XCB_DPMS_CFLAGS@ | ||
272 | XCB_DPMS_LIBS = @XCB_DPMS_LIBS@ | ||
273 | XCB_RANDR_CFLAGS = @XCB_RANDR_CFLAGS@ | ||
274 | XCB_RANDR_LIBS = @XCB_RANDR_LIBS@ | ||
275 | XCB_RENDER_CFLAGS = @XCB_RENDER_CFLAGS@ | ||
276 | XCB_RENDER_LIBS = @XCB_RENDER_LIBS@ | ||
277 | XCB_SCREENSAVER_CFLAGS = @XCB_SCREENSAVER_CFLAGS@ | ||
278 | XCB_SCREENSAVER_LIBS = @XCB_SCREENSAVER_LIBS@ | ||
279 | XCB_SHAPE_CFLAGS = @XCB_SHAPE_CFLAGS@ | ||
280 | XCB_SHAPE_LIBS = @XCB_SHAPE_LIBS@ | ||
281 | XCB_SYNC_CFLAGS = @XCB_SYNC_CFLAGS@ | ||
282 | XCB_SYNC_LIBS = @XCB_SYNC_LIBS@ | ||
283 | XCB_X11_CFLAGS = @XCB_X11_CFLAGS@ | ||
284 | XCB_X11_LIBS = @XCB_X11_LIBS@ | ||
285 | XCB_XFIXES_CFLAGS = @XCB_XFIXES_CFLAGS@ | ||
286 | XCB_XFIXES_LIBS = @XCB_XFIXES_LIBS@ | ||
287 | XCB_XGESTURE_CFLAGS = @XCB_XGESTURE_CFLAGS@ | ||
288 | XCB_XGESTURE_LIBS = @XCB_XGESTURE_LIBS@ | ||
289 | XCB_XINERAMA_CFLAGS = @XCB_XINERAMA_CFLAGS@ | ||
290 | XCB_XINERAMA_LIBS = @XCB_XINERAMA_LIBS@ | ||
291 | XCB_XINPUT_CFLAGS = @XCB_XINPUT_CFLAGS@ | ||
292 | XCB_XINPUT_LIBS = @XCB_XINPUT_LIBS@ | ||
293 | XCB_XPRINT_CFLAGS = @XCB_XPRINT_CFLAGS@ | ||
294 | XCB_XPRINT_LIBS = @XCB_XPRINT_LIBS@ | ||
295 | XCB_XTEST_CFLAGS = @XCB_XTEST_CFLAGS@ | ||
296 | XCB_XTEST_LIBS = @XCB_XTEST_LIBS@ | ||
297 | XCOMPOSITE_CFLAGS = @XCOMPOSITE_CFLAGS@ | ||
298 | XCOMPOSITE_LIBS = @XCOMPOSITE_LIBS@ | ||
299 | XDAMAGE_CFLAGS = @XDAMAGE_CFLAGS@ | ||
300 | XDAMAGE_LIBS = @XDAMAGE_LIBS@ | ||
301 | XDPMS_CFLAGS = @XDPMS_CFLAGS@ | ||
302 | XDPMS_LIBS = @XDPMS_LIBS@ | ||
303 | XFIXES_CFLAGS = @XFIXES_CFLAGS@ | ||
304 | XFIXES_LIBS = @XFIXES_LIBS@ | ||
305 | XGESTURE_CFLAGS = @XGESTURE_CFLAGS@ | ||
306 | XGESTURE_LIBS = @XGESTURE_LIBS@ | ||
307 | XGETTEXT = @XGETTEXT@ | ||
308 | XGETTEXT_015 = @XGETTEXT_015@ | ||
309 | XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ | ||
310 | XI2_CFLAGS = @XI2_CFLAGS@ | ||
311 | XI2_LIBS = @XI2_LIBS@ | ||
312 | XINERAMA_CFLAGS = @XINERAMA_CFLAGS@ | ||
313 | XINERAMA_LIBS = @XINERAMA_LIBS@ | ||
314 | XKB_CFLAGS = @XKB_CFLAGS@ | ||
315 | XKB_LIBS = @XKB_LIBS@ | ||
316 | XMKMF = @XMKMF@ | ||
317 | XPRINT_CFLAGS = @XPRINT_CFLAGS@ | ||
318 | XPRINT_LIBS = @XPRINT_LIBS@ | ||
319 | XRANDR_CFLAGS = @XRANDR_CFLAGS@ | ||
320 | XRANDR_LIBS = @XRANDR_LIBS@ | ||
321 | XRENDER_CFLAGS = @XRENDER_CFLAGS@ | ||
322 | XRENDER_LIBS = @XRENDER_LIBS@ | ||
323 | XSS_CFLAGS = @XSS_CFLAGS@ | ||
324 | XSS_LIBS = @XSS_LIBS@ | ||
325 | XTEST_CFLAGS = @XTEST_CFLAGS@ | ||
326 | XTEST_LIBS = @XTEST_LIBS@ | ||
327 | X_CFLAGS = @X_CFLAGS@ | ||
328 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
329 | X_LIBS = @X_LIBS@ | ||
330 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
331 | Xcursor_cflags = @Xcursor_cflags@ | ||
332 | Xcursor_libs = @Xcursor_libs@ | ||
333 | abs_builddir = @abs_builddir@ | ||
334 | abs_srcdir = @abs_srcdir@ | ||
335 | abs_top_builddir = @abs_top_builddir@ | ||
336 | abs_top_srcdir = @abs_top_srcdir@ | ||
337 | ac_ct_CC = @ac_ct_CC@ | ||
338 | ac_ct_CXX = @ac_ct_CXX@ | ||
339 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
340 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
341 | am__include = @am__include@ | ||
342 | am__leading_dot = @am__leading_dot@ | ||
343 | am__quote = @am__quote@ | ||
344 | am__tar = @am__tar@ | ||
345 | am__untar = @am__untar@ | ||
346 | bindir = @bindir@ | ||
347 | build = @build@ | ||
348 | build_alias = @build_alias@ | ||
349 | build_cpu = @build_cpu@ | ||
350 | build_os = @build_os@ | ||
351 | build_vendor = @build_vendor@ | ||
352 | builddir = @builddir@ | ||
353 | cocoa_ldflags = @cocoa_ldflags@ | ||
354 | datadir = @datadir@ | ||
355 | datarootdir = @datarootdir@ | ||
356 | dlopen_libs = @dlopen_libs@ | ||
357 | docdir = @docdir@ | ||
358 | dvidir = @dvidir@ | ||
359 | ecore_cocoa_cflags = @ecore_cocoa_cflags@ | ||
360 | ecore_cocoa_libs = @ecore_cocoa_libs@ | ||
361 | ecore_con_cflags = @ecore_con_cflags@ | ||
362 | ecore_con_libs = @ecore_con_libs@ | ||
363 | ecore_directfb_cflags = @ecore_directfb_cflags@ | ||
364 | ecore_directfb_libs = @ecore_directfb_libs@ | ||
365 | ecore_evas_cflags = @ecore_evas_cflags@ | ||
366 | ecore_evas_libs = @ecore_evas_libs@ | ||
367 | ecore_fb_cflags = @ecore_fb_cflags@ | ||
368 | ecore_fb_libs = @ecore_fb_libs@ | ||
369 | ecore_file_cflags = @ecore_file_cflags@ | ||
370 | ecore_file_libs = @ecore_file_libs@ | ||
371 | ecore_imf_cflags = @ecore_imf_cflags@ | ||
372 | ecore_imf_evas_cflags = @ecore_imf_evas_cflags@ | ||
373 | ecore_imf_evas_libs = @ecore_imf_evas_libs@ | ||
374 | ecore_imf_libs = @ecore_imf_libs@ | ||
375 | ecore_imf_scim_cflags = @ecore_imf_scim_cflags@ | ||
376 | ecore_imf_scim_libs = @ecore_imf_scim_libs@ | ||
377 | ecore_imf_xim_cflags = @ecore_imf_xim_cflags@ | ||
378 | ecore_imf_xim_libs = @ecore_imf_xim_libs@ | ||
379 | ecore_input_cflags = @ecore_input_cflags@ | ||
380 | ecore_input_evas_cflags = @ecore_input_evas_cflags@ | ||
381 | ecore_input_evas_libs = @ecore_input_evas_libs@ | ||
382 | ecore_input_libs = @ecore_input_libs@ | ||
383 | ecore_ipc_cflags = @ecore_ipc_cflags@ | ||
384 | ecore_ipc_libs = @ecore_ipc_libs@ | ||
385 | ecore_psl1ght_cflags = @ecore_psl1ght_cflags@ | ||
386 | ecore_psl1ght_libs = @ecore_psl1ght_libs@ | ||
387 | ecore_sdl_cflags = @ecore_sdl_cflags@ | ||
388 | ecore_sdl_libs = @ecore_sdl_libs@ | ||
389 | ecore_wayland_cflags = @ecore_wayland_cflags@ | ||
390 | ecore_wayland_libs = @ecore_wayland_libs@ | ||
391 | ecore_win32_cflags = @ecore_win32_cflags@ | ||
392 | ecore_win32_libs = @ecore_win32_libs@ | ||
393 | ecore_wince_cflags = @ecore_wince_cflags@ | ||
394 | ecore_wince_libs = @ecore_wince_libs@ | ||
395 | ecore_x_cflags = @ecore_x_cflags@ | ||
396 | ecore_x_libs = @ecore_x_libs@ | ||
397 | ecore_x_libs_private = @ecore_x_libs_private@ | ||
398 | efl_doxygen = @efl_doxygen@ | ||
399 | efl_have_doxygen = @efl_have_doxygen@ | ||
400 | exec_prefix = @exec_prefix@ | ||
401 | have_ecore_x_xcb_define = @have_ecore_x_xcb_define@ | ||
402 | host = @host@ | ||
403 | host_alias = @host_alias@ | ||
404 | host_cpu = @host_cpu@ | ||
405 | host_os = @host_os@ | ||
406 | host_vendor = @host_vendor@ | ||
407 | htmldir = @htmldir@ | ||
408 | includedir = @includedir@ | ||
409 | infodir = @infodir@ | ||
410 | install_sh = @install_sh@ | ||
411 | libdir = @libdir@ | ||
412 | libexecdir = @libexecdir@ | ||
413 | localedir = @localedir@ | ||
414 | localstatedir = @localstatedir@ | ||
415 | lt_ECHO = @lt_ECHO@ | ||
416 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
417 | mandir = @mandir@ | ||
418 | mkdir_p = @mkdir_p@ | ||
419 | oldincludedir = @oldincludedir@ | ||
420 | pdfdir = @pdfdir@ | ||
421 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
422 | prefix = @prefix@ | ||
423 | program_transform_name = @program_transform_name@ | ||
424 | psdir = @psdir@ | ||
425 | release_info = @release_info@ | ||
426 | requirements_ecore = @requirements_ecore@ | ||
427 | requirements_ecore_cocoa = @requirements_ecore_cocoa@ | ||
428 | requirements_ecore_con = @requirements_ecore_con@ | ||
429 | requirements_ecore_directfb = @requirements_ecore_directfb@ | ||
430 | requirements_ecore_evas = @requirements_ecore_evas@ | ||
431 | requirements_ecore_fb = @requirements_ecore_fb@ | ||
432 | requirements_ecore_file = @requirements_ecore_file@ | ||
433 | requirements_ecore_imf = @requirements_ecore_imf@ | ||
434 | requirements_ecore_imf_evas = @requirements_ecore_imf_evas@ | ||
435 | requirements_ecore_imf_scim = @requirements_ecore_imf_scim@ | ||
436 | requirements_ecore_imf_xim = @requirements_ecore_imf_xim@ | ||
437 | requirements_ecore_input = @requirements_ecore_input@ | ||
438 | requirements_ecore_input_evas = @requirements_ecore_input_evas@ | ||
439 | requirements_ecore_ipc = @requirements_ecore_ipc@ | ||
440 | requirements_ecore_psl1ght = @requirements_ecore_psl1ght@ | ||
441 | requirements_ecore_sdl = @requirements_ecore_sdl@ | ||
442 | requirements_ecore_wayland = @requirements_ecore_wayland@ | ||
443 | requirements_ecore_win32 = @requirements_ecore_win32@ | ||
444 | requirements_ecore_wince = @requirements_ecore_wince@ | ||
445 | requirements_ecore_x = @requirements_ecore_x@ | ||
446 | rt_libs = @rt_libs@ | ||
447 | sbindir = @sbindir@ | ||
448 | sharedstatedir = @sharedstatedir@ | ||
449 | srcdir = @srcdir@ | ||
450 | sysconfdir = @sysconfdir@ | ||
451 | target_alias = @target_alias@ | ||
452 | top_build_prefix = @top_build_prefix@ | ||
453 | top_builddir = @top_builddir@ | ||
454 | top_srcdir = @top_srcdir@ | ||
455 | version_info = @version_info@ | ||
456 | x_cflags = @x_cflags@ | ||
457 | x_includes = @x_includes@ | ||
458 | x_libs = @x_libs@ | ||
459 | MAINTAINERCLEANFILES = Makefile.in | ||
460 | AM_CPPFLAGS = \ | ||
461 | -I$(top_srcdir)/src/lib/ecore \ | ||
462 | -I$(top_srcdir)/src/lib/ecore_con \ | ||
463 | -I$(top_srcdir)/src/lib/ecore_x \ | ||
464 | @EINA_CFLAGS@ \ | ||
465 | @CHECK_CFLAGS@ | ||
466 | |||
467 | @EFL_ENABLE_TESTS_TRUE@ecore_suite_SOURCES = \ | ||
468 | @EFL_ENABLE_TESTS_TRUE@ecore_suite.c \ | ||
469 | @EFL_ENABLE_TESTS_TRUE@ecore_test_ecore.c \ | ||
470 | @EFL_ENABLE_TESTS_TRUE@ecore_test_ecore_con.c \ | ||
471 | @EFL_ENABLE_TESTS_TRUE@ecore_test_ecore_x.c \ | ||
472 | @EFL_ENABLE_TESTS_TRUE@ecore_suite.h | ||
473 | |||
474 | @EFL_ENABLE_TESTS_TRUE@ecore_suite_LDADD = @CHECK_LIBS@ @EINA_LIBS@ \ | ||
475 | @EFL_ENABLE_TESTS_TRUE@ $(top_builddir)/src/lib/ecore/libecore.la \ | ||
476 | @EFL_ENABLE_TESTS_TRUE@ $(top_builddir)/src/lib/ecore_con/libecore_con.la \ | ||
477 | @EFL_ENABLE_TESTS_TRUE@ $(am__append_1) | ||
478 | all: all-am | ||
479 | |||
480 | .SUFFIXES: | ||
481 | .SUFFIXES: .c .lo .o .obj | ||
482 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
483 | @for dep in $?; do \ | ||
484 | case '$(am__configure_deps)' in \ | ||
485 | *$$dep*) \ | ||
486 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
487 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
488 | exit 1;; \ | ||
489 | esac; \ | ||
490 | done; \ | ||
491 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/tests/Makefile'; \ | ||
492 | $(am__cd) $(top_srcdir) && \ | ||
493 | $(AUTOMAKE) --gnu src/tests/Makefile | ||
494 | .PRECIOUS: Makefile | ||
495 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
496 | @case '$?' in \ | ||
497 | *config.status*) \ | ||
498 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
499 | *) \ | ||
500 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
501 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
502 | esac; | ||
503 | |||
504 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
505 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
506 | |||
507 | $(top_srcdir)/configure: $(am__configure_deps) | ||
508 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
509 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
510 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
511 | $(am__aclocal_m4_deps): | ||
512 | |||
513 | clean-checkPROGRAMS: | ||
514 | @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ | ||
515 | echo " rm -f" $$list; \ | ||
516 | rm -f $$list || exit $$?; \ | ||
517 | test -n "$(EXEEXT)" || exit 0; \ | ||
518 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ | ||
519 | echo " rm -f" $$list; \ | ||
520 | rm -f $$list | ||
521 | |||
522 | clean-noinstPROGRAMS: | ||
523 | @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ | ||
524 | echo " rm -f" $$list; \ | ||
525 | rm -f $$list || exit $$?; \ | ||
526 | test -n "$(EXEEXT)" || exit 0; \ | ||
527 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ | ||
528 | echo " rm -f" $$list; \ | ||
529 | rm -f $$list | ||
530 | ecore_suite$(EXEEXT): $(ecore_suite_OBJECTS) $(ecore_suite_DEPENDENCIES) | ||
531 | @rm -f ecore_suite$(EXEEXT) | ||
532 | $(AM_V_CCLD)$(LINK) $(ecore_suite_OBJECTS) $(ecore_suite_LDADD) $(LIBS) | ||
533 | |||
534 | mostlyclean-compile: | ||
535 | -rm -f *.$(OBJEXT) | ||
536 | |||
537 | distclean-compile: | ||
538 | -rm -f *.tab.c | ||
539 | |||
540 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecore_suite.Po@am__quote@ | ||
541 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecore_test_ecore.Po@am__quote@ | ||
542 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecore_test_ecore_con.Po@am__quote@ | ||
543 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecore_test_ecore_x.Po@am__quote@ | ||
544 | |||
545 | .c.o: | ||
546 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
547 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
548 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
549 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
550 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
551 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
552 | |||
553 | .c.obj: | ||
554 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
555 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
556 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
557 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
558 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
559 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
560 | |||
561 | .c.lo: | ||
562 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
563 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
564 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
565 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
566 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
567 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
568 | |||
569 | mostlyclean-libtool: | ||
570 | -rm -f *.lo | ||
571 | |||
572 | clean-libtool: | ||
573 | -rm -rf .libs _libs | ||
574 | |||
575 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
576 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
577 | unique=`for i in $$list; do \ | ||
578 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
579 | done | \ | ||
580 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
581 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
582 | mkid -fID $$unique | ||
583 | tags: TAGS | ||
584 | |||
585 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
586 | $(TAGS_FILES) $(LISP) | ||
587 | set x; \ | ||
588 | here=`pwd`; \ | ||
589 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
590 | unique=`for i in $$list; do \ | ||
591 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
592 | done | \ | ||
593 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
594 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
595 | shift; \ | ||
596 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
597 | test -n "$$unique" || unique=$$empty_fix; \ | ||
598 | if test $$# -gt 0; then \ | ||
599 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
600 | "$$@" $$unique; \ | ||
601 | else \ | ||
602 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
603 | $$unique; \ | ||
604 | fi; \ | ||
605 | fi | ||
606 | ctags: CTAGS | ||
607 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
608 | $(TAGS_FILES) $(LISP) | ||
609 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
610 | unique=`for i in $$list; do \ | ||
611 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
612 | done | \ | ||
613 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
614 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
615 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
616 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
617 | $$unique | ||
618 | |||
619 | GTAGS: | ||
620 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
621 | && $(am__cd) $(top_srcdir) \ | ||
622 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
623 | |||
624 | distclean-tags: | ||
625 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
626 | |||
627 | distdir: $(DISTFILES) | ||
628 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
629 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
630 | list='$(DISTFILES)'; \ | ||
631 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
632 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
633 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
634 | case $$dist_files in \ | ||
635 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
636 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
637 | sort -u` ;; \ | ||
638 | esac; \ | ||
639 | for file in $$dist_files; do \ | ||
640 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
641 | if test -d $$d/$$file; then \ | ||
642 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
643 | if test -d "$(distdir)/$$file"; then \ | ||
644 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
645 | fi; \ | ||
646 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
647 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
648 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
649 | fi; \ | ||
650 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
651 | else \ | ||
652 | test -f "$(distdir)/$$file" \ | ||
653 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
654 | || exit 1; \ | ||
655 | fi; \ | ||
656 | done | ||
657 | check-am: all-am | ||
658 | $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) | ||
659 | check: check-am | ||
660 | all-am: Makefile $(PROGRAMS) | ||
661 | installdirs: | ||
662 | install: install-am | ||
663 | install-exec: install-exec-am | ||
664 | install-data: install-data-am | ||
665 | uninstall: uninstall-am | ||
666 | |||
667 | install-am: all-am | ||
668 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
669 | |||
670 | installcheck: installcheck-am | ||
671 | install-strip: | ||
672 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
673 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
674 | `test -z '$(STRIP)' || \ | ||
675 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
676 | mostlyclean-generic: | ||
677 | |||
678 | clean-generic: | ||
679 | |||
680 | distclean-generic: | ||
681 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
682 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
683 | |||
684 | maintainer-clean-generic: | ||
685 | @echo "This command is intended for maintainers to use" | ||
686 | @echo "it deletes files that may require special tools to rebuild." | ||
687 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
688 | clean: clean-am | ||
689 | |||
690 | clean-am: clean-checkPROGRAMS clean-generic clean-libtool clean-local \ | ||
691 | clean-noinstPROGRAMS mostlyclean-am | ||
692 | |||
693 | distclean: distclean-am | ||
694 | -rm -rf ./$(DEPDIR) | ||
695 | -rm -f Makefile | ||
696 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
697 | distclean-tags | ||
698 | |||
699 | dvi: dvi-am | ||
700 | |||
701 | dvi-am: | ||
702 | |||
703 | html: html-am | ||
704 | |||
705 | html-am: | ||
706 | |||
707 | info: info-am | ||
708 | |||
709 | info-am: | ||
710 | |||
711 | install-data-am: | ||
712 | |||
713 | install-dvi: install-dvi-am | ||
714 | |||
715 | install-dvi-am: | ||
716 | |||
717 | install-exec-am: | ||
718 | |||
719 | install-html: install-html-am | ||
720 | |||
721 | install-html-am: | ||
722 | |||
723 | install-info: install-info-am | ||
724 | |||
725 | install-info-am: | ||
726 | |||
727 | install-man: | ||
728 | |||
729 | install-pdf: install-pdf-am | ||
730 | |||
731 | install-pdf-am: | ||
732 | |||
733 | install-ps: install-ps-am | ||
734 | |||
735 | install-ps-am: | ||
736 | |||
737 | installcheck-am: | ||
738 | |||
739 | maintainer-clean: maintainer-clean-am | ||
740 | -rm -rf ./$(DEPDIR) | ||
741 | -rm -f Makefile | ||
742 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
743 | |||
744 | mostlyclean: mostlyclean-am | ||
745 | |||
746 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
747 | mostlyclean-libtool | ||
748 | |||
749 | pdf: pdf-am | ||
750 | |||
751 | pdf-am: | ||
752 | |||
753 | ps: ps-am | ||
754 | |||
755 | ps-am: | ||
756 | |||
757 | uninstall-am: | ||
758 | |||
759 | .MAKE: check-am install-am install-strip | ||
760 | |||
761 | .PHONY: CTAGS GTAGS all all-am check check-am clean \ | ||
762 | clean-checkPROGRAMS clean-generic clean-libtool clean-local \ | ||
763 | clean-noinstPROGRAMS ctags distclean distclean-compile \ | ||
764 | distclean-generic distclean-libtool distclean-tags distdir dvi \ | ||
765 | dvi-am html html-am info info-am install install-am \ | ||
766 | install-data install-data-am install-dvi install-dvi-am \ | ||
767 | install-exec install-exec-am install-html install-html-am \ | ||
768 | install-info install-info-am install-man install-pdf \ | ||
769 | install-pdf-am install-ps install-ps-am install-strip \ | ||
770 | installcheck installcheck-am installdirs maintainer-clean \ | ||
771 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
772 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
773 | tags uninstall uninstall-am | ||
774 | |||
775 | |||
776 | clean-local: | ||
777 | rm -rf *.gcno *.gcda | ||
778 | |||
779 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
780 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
781 | .NOEXPORT: | ||
diff --git a/libraries/ecore/src/tests/ecore_suite.c b/libraries/ecore/src/tests/ecore_suite.c deleted file mode 100644 index fd51750..0000000 --- a/libraries/ecore/src/tests/ecore_suite.c +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <stdlib.h> | ||
6 | #include <stdio.h> | ||
7 | |||
8 | #include <Ecore.h> | ||
9 | |||
10 | #include "ecore_suite.h" | ||
11 | |||
12 | typedef struct _Ecore_Test_Case Ecore_Test_Case; | ||
13 | |||
14 | struct _Ecore_Test_Case | ||
15 | { | ||
16 | const char *test_case; | ||
17 | void (*build)(TCase *tc); | ||
18 | }; | ||
19 | |||
20 | static const Ecore_Test_Case etc[] = { | ||
21 | { "Ecore", ecore_test_ecore }, | ||
22 | { "Ecore_Con", ecore_test_ecore_con }, | ||
23 | { "Ecore_X", ecore_test_ecore_x }, | ||
24 | { NULL, NULL } | ||
25 | }; | ||
26 | |||
27 | static void | ||
28 | _list_tests(void) | ||
29 | { | ||
30 | const Ecore_Test_Case *itr; | ||
31 | |||
32 | itr = etc; | ||
33 | fputs("Available Test Cases:\n", stderr); | ||
34 | for (; itr->test_case; itr++) | ||
35 | fprintf(stderr, "\t%s\n", itr->test_case); | ||
36 | } | ||
37 | static Eina_Bool | ||
38 | _use_test(int argc, const char **argv, const char *test_case) | ||
39 | { | ||
40 | if (argc < 1) | ||
41 | return 1; | ||
42 | |||
43 | for (; argc > 0; argc--, argv++) | ||
44 | if (strcmp(test_case, *argv) == 0) | ||
45 | return 1; | ||
46 | return 0; | ||
47 | } | ||
48 | |||
49 | static Suite * | ||
50 | ecore_suite_build(int argc, const char **argv) | ||
51 | { | ||
52 | TCase *tc; | ||
53 | Suite *s; | ||
54 | int i; | ||
55 | |||
56 | s = suite_create("Ecore"); | ||
57 | |||
58 | for (i = 0; etc[i].test_case; ++i) | ||
59 | { | ||
60 | if (!_use_test(argc, argv, etc[i].test_case)) continue; | ||
61 | tc = tcase_create(etc[i].test_case); | ||
62 | |||
63 | etc[i].build(tc); | ||
64 | |||
65 | suite_add_tcase(s, tc); | ||
66 | tcase_set_timeout(tc, 0); | ||
67 | } | ||
68 | |||
69 | return s; | ||
70 | } | ||
71 | |||
72 | int | ||
73 | main(int argc, char **argv) | ||
74 | { | ||
75 | Suite *s; | ||
76 | SRunner *sr; | ||
77 | int i, failed_count; | ||
78 | |||
79 | for (i = 1; i < argc; i++) | ||
80 | if ((strcmp(argv[i], "-h") == 0) || | ||
81 | (strcmp(argv[i], "--help") == 0)) | ||
82 | { | ||
83 | fprintf(stderr, "Usage:\n\t%s [test_case1 .. [test_caseN]]\n", | ||
84 | argv[0]); | ||
85 | _list_tests(); | ||
86 | return 0; | ||
87 | } | ||
88 | else if ((strcmp(argv[i], "-l") == 0) || | ||
89 | (strcmp(argv[i], "--list") == 0)) | ||
90 | { | ||
91 | _list_tests(); | ||
92 | return 0; | ||
93 | } | ||
94 | |||
95 | s = ecore_suite_build(argc - 1, (const char **)argv + 1); | ||
96 | sr = srunner_create(s); | ||
97 | |||
98 | srunner_run_all(sr, CK_ENV); | ||
99 | failed_count = srunner_ntests_failed(sr); | ||
100 | srunner_free(sr); | ||
101 | |||
102 | return (failed_count == 0) ? 0 : 255; | ||
103 | } | ||
diff --git a/libraries/ecore/src/tests/ecore_suite.h b/libraries/ecore/src/tests/ecore_suite.h deleted file mode 100644 index 0c7dfef..0000000 --- a/libraries/ecore/src/tests/ecore_suite.h +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | #ifndef _ECORE_SUITE_H | ||
2 | #define _ECORE_SUITE_H | ||
3 | |||
4 | #include <check.h> | ||
5 | |||
6 | void ecore_test_ecore(TCase *tc); | ||
7 | void ecore_test_ecore_con(TCase *tc); | ||
8 | void ecore_test_ecore_x(TCase *tc); | ||
9 | |||
10 | |||
11 | #endif /* _ECORE_SUITE_H */ | ||
diff --git a/libraries/ecore/src/tests/ecore_test_ecore.c b/libraries/ecore/src/tests/ecore_test_ecore.c deleted file mode 100644 index 3649196..0000000 --- a/libraries/ecore/src/tests/ecore_test_ecore.c +++ /dev/null | |||
@@ -1,367 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <stdio.h> | ||
6 | #include <unistd.h> | ||
7 | |||
8 | #include <Eina.h> | ||
9 | #include <Ecore.h> | ||
10 | |||
11 | #include "ecore_suite.h" | ||
12 | |||
13 | static int _log_dom; | ||
14 | #define INF(...) EINA_LOG_DOM_INFO(_log_dom, __VA_ARGS__) | ||
15 | |||
16 | static Eina_Bool | ||
17 | _quit_cb(void *data) | ||
18 | { | ||
19 | Eina_Bool *val = data; | ||
20 | *val = EINA_TRUE; | ||
21 | ecore_main_loop_quit(); | ||
22 | return EINA_FALSE; | ||
23 | } | ||
24 | |||
25 | static Eina_Bool | ||
26 | _dummy_cb(void *data) | ||
27 | { | ||
28 | return !!data; | ||
29 | } | ||
30 | |||
31 | START_TEST(ecore_test_ecore_init) | ||
32 | { | ||
33 | int ret; | ||
34 | |||
35 | ret = ecore_init(); | ||
36 | fail_if(ret != 1); | ||
37 | |||
38 | ret = ecore_shutdown(); | ||
39 | fail_if(ret != 0); | ||
40 | } | ||
41 | END_TEST | ||
42 | |||
43 | START_TEST(ecore_test_ecore_main_loop) | ||
44 | { | ||
45 | Eina_Bool did = EINA_FALSE; | ||
46 | Ecore_Timer *timer; | ||
47 | int ret; | ||
48 | |||
49 | ret = ecore_init(); | ||
50 | fail_if(ret != 1); | ||
51 | |||
52 | timer = ecore_timer_add(0.0, _quit_cb, &did); | ||
53 | fail_if(timer == NULL); | ||
54 | |||
55 | ecore_main_loop_begin(); | ||
56 | |||
57 | fail_if(did == EINA_FALSE); | ||
58 | |||
59 | ret = ecore_shutdown(); | ||
60 | fail_if(ret != 0); | ||
61 | } | ||
62 | END_TEST | ||
63 | |||
64 | START_TEST(ecore_test_ecore_main_loop_idler) | ||
65 | { | ||
66 | Eina_Bool did = EINA_FALSE; | ||
67 | Ecore_Idler *idler; | ||
68 | int ret; | ||
69 | |||
70 | ret = ecore_init(); | ||
71 | fail_if(ret != 1); | ||
72 | |||
73 | idler = ecore_idler_add(_quit_cb, &did); | ||
74 | fail_if(idler == NULL); | ||
75 | |||
76 | ecore_main_loop_begin(); | ||
77 | |||
78 | fail_if(did == EINA_FALSE); | ||
79 | |||
80 | ret = ecore_shutdown(); | ||
81 | fail_if(ret != 0); | ||
82 | } | ||
83 | END_TEST | ||
84 | |||
85 | START_TEST(ecore_test_ecore_main_loop_idle_enterer) | ||
86 | { | ||
87 | Eina_Bool did = EINA_FALSE; | ||
88 | Ecore_Idle_Enterer *idle_enterer; | ||
89 | int ret; | ||
90 | |||
91 | ret = ecore_init(); | ||
92 | fail_if(ret != 1); | ||
93 | |||
94 | idle_enterer = ecore_idle_enterer_add(_quit_cb, &did); | ||
95 | fail_if(idle_enterer == NULL); | ||
96 | |||
97 | ecore_main_loop_begin(); | ||
98 | |||
99 | fail_if(did == EINA_FALSE); | ||
100 | |||
101 | ret = ecore_shutdown(); | ||
102 | fail_if(ret != 0); | ||
103 | } | ||
104 | END_TEST | ||
105 | |||
106 | START_TEST(ecore_test_ecore_main_loop_idle_exiter) | ||
107 | { | ||
108 | Eina_Bool did = EINA_FALSE; | ||
109 | Ecore_Timer *timer; | ||
110 | Ecore_Idle_Exiter *idle_exiter; | ||
111 | int ret; | ||
112 | |||
113 | ret = ecore_init(); | ||
114 | fail_if(ret != 1); | ||
115 | |||
116 | /* make system exit idle */ | ||
117 | timer = ecore_timer_add(0.0, _dummy_cb, (void *)(long)0); | ||
118 | fail_if(timer == NULL); | ||
119 | |||
120 | idle_exiter = ecore_idle_exiter_add(_quit_cb, &did); | ||
121 | fail_if(idle_exiter == NULL); | ||
122 | |||
123 | ecore_main_loop_begin(); | ||
124 | |||
125 | fail_if(did == EINA_FALSE); | ||
126 | |||
127 | ret = ecore_shutdown(); | ||
128 | fail_if(ret != 0); | ||
129 | } | ||
130 | END_TEST | ||
131 | |||
132 | START_TEST(ecore_test_ecore_main_loop_timer) | ||
133 | { | ||
134 | Eina_Bool did = EINA_FALSE; | ||
135 | Ecore_Timer *timer; | ||
136 | double start, end, elapsed; | ||
137 | int ret; | ||
138 | |||
139 | ret = ecore_init(); | ||
140 | fail_if(ret != 1); | ||
141 | |||
142 | timer = ecore_timer_add(2.0, _quit_cb, &did); | ||
143 | fail_if(timer == NULL); | ||
144 | |||
145 | start = ecore_time_get(); | ||
146 | ecore_main_loop_begin(); | ||
147 | end = ecore_time_get(); | ||
148 | elapsed = end - start; | ||
149 | |||
150 | fail_if(did == EINA_FALSE); | ||
151 | fail_if(elapsed < 2.0); | ||
152 | fail_if(elapsed > 3.0); /* 1 second "error margin" */ | ||
153 | |||
154 | ret = ecore_shutdown(); | ||
155 | fail_if(ret != 0); | ||
156 | } | ||
157 | END_TEST | ||
158 | |||
159 | static Eina_Bool _timer3(void *data) | ||
160 | { | ||
161 | /* timer 3, do nothing */ | ||
162 | return EINA_FALSE; | ||
163 | } | ||
164 | |||
165 | static Eina_Bool _timer2(void *data) | ||
166 | { | ||
167 | /* timer 2, quit inner mainloop */ | ||
168 | ecore_main_loop_quit(); | ||
169 | return EINA_FALSE; | ||
170 | } | ||
171 | |||
172 | static Eina_Bool _timer1(void *data) | ||
173 | { | ||
174 | /* timer 1, begin inner mainloop */ | ||
175 | int *times = data; | ||
176 | (*times)++; | ||
177 | |||
178 | ecore_timer_add(0.3, _timer2, NULL); | ||
179 | ecore_timer_add(0.1, _timer3, NULL); | ||
180 | ecore_main_loop_begin(); | ||
181 | |||
182 | ecore_main_loop_quit(); | ||
183 | |||
184 | return EINA_FALSE; | ||
185 | } | ||
186 | |||
187 | START_TEST(ecore_test_ecore_main_loop_timer_inner) | ||
188 | { | ||
189 | Ecore_Timer *timer; | ||
190 | int ret; | ||
191 | int times = 0; | ||
192 | |||
193 | ret = ecore_init(); | ||
194 | fail_if(ret != 1); | ||
195 | |||
196 | timer = ecore_timer_add(1.0, _timer1, ×); | ||
197 | fail_if(timer == NULL); | ||
198 | |||
199 | /* BEGIN: outer mainloop */ | ||
200 | ecore_main_loop_begin(); | ||
201 | /*END: outer mainloop */ | ||
202 | |||
203 | fail_if(times != 1); | ||
204 | } | ||
205 | END_TEST | ||
206 | |||
207 | static Eina_Bool | ||
208 | _fd_handler_cb(void *data, Ecore_Fd_Handler *handler __UNUSED__) | ||
209 | { | ||
210 | /* FIXME: why setting val if it is overwritten just after and what is its purpose ??? */ | ||
211 | Eina_Bool *val = data; | ||
212 | |||
213 | *val = EINA_TRUE; | ||
214 | ecore_main_loop_quit(); | ||
215 | return EINA_FALSE; | ||
216 | } | ||
217 | |||
218 | START_TEST(ecore_test_ecore_main_loop_fd_handler) | ||
219 | { | ||
220 | Eina_Bool did = EINA_FALSE; | ||
221 | Ecore_Fd_Handler *fd_handler; | ||
222 | int comm[2]; | ||
223 | int ret; | ||
224 | |||
225 | ret = ecore_init(); | ||
226 | fail_if(ret != 1); | ||
227 | |||
228 | ret = pipe(comm); | ||
229 | fail_if(ret != 0); | ||
230 | |||
231 | fd_handler = ecore_main_fd_handler_add | ||
232 | (comm[0], ECORE_FD_READ, _fd_handler_cb, &did, NULL, NULL); | ||
233 | fail_if(fd_handler == NULL); | ||
234 | |||
235 | ret = write(comm[1], &did, 1); | ||
236 | fail_if(ret != 1); | ||
237 | |||
238 | ecore_main_loop_begin(); | ||
239 | |||
240 | close(comm[0]); | ||
241 | close(comm[1]); | ||
242 | |||
243 | fail_if(did == EINA_FALSE); | ||
244 | |||
245 | ret = ecore_shutdown(); | ||
246 | fail_if(ret != 0); | ||
247 | } | ||
248 | END_TEST | ||
249 | |||
250 | static Eina_Bool | ||
251 | _event_handler_cb(void *data, int type __UNUSED__, void *event __UNUSED__) | ||
252 | { | ||
253 | /* FIXME: why setting val if it is overwritten just after and what is its purpose ??? */ | ||
254 | Eina_Bool *val = data; | ||
255 | |||
256 | *val = EINA_TRUE; | ||
257 | ecore_main_loop_quit(); | ||
258 | return EINA_FALSE; | ||
259 | } | ||
260 | |||
261 | START_TEST(ecore_test_ecore_main_loop_event) | ||
262 | { | ||
263 | Eina_Bool did = EINA_FALSE; | ||
264 | Ecore_Event_Handler *handler; | ||
265 | Ecore_Event *event; | ||
266 | int ret, type; | ||
267 | |||
268 | ret = ecore_init(); | ||
269 | fail_if(ret != 1); | ||
270 | |||
271 | type = ecore_event_type_new(); | ||
272 | fail_if(type < 1); | ||
273 | |||
274 | handler = ecore_event_handler_add(type, _event_handler_cb, &did); | ||
275 | fail_if(handler == NULL); | ||
276 | |||
277 | event = ecore_event_add(type, NULL, NULL, NULL); | ||
278 | fail_if(event == NULL); | ||
279 | |||
280 | ecore_main_loop_begin(); | ||
281 | |||
282 | fail_if(did == EINA_FALSE); | ||
283 | |||
284 | ret = ecore_shutdown(); | ||
285 | fail_if(ret != 0); | ||
286 | } | ||
287 | END_TEST | ||
288 | |||
289 | static Eina_Bool | ||
290 | _timer_quit_recursive(void *data) | ||
291 | { | ||
292 | INF(" _timer_quit_recursive: begin"); | ||
293 | ecore_main_loop_quit(); /* quits inner main loop */ | ||
294 | INF(" _timer_quit_recursive: end"); | ||
295 | return EINA_FALSE; | ||
296 | } | ||
297 | |||
298 | static Eina_Bool | ||
299 | _event_recursive_cb(void *data, int type, void *event) | ||
300 | { | ||
301 | Ecore_Event *e; | ||
302 | static int guard = 0; | ||
303 | |||
304 | /* If we enter this callback more than once, it's wrong! */ | ||
305 | fail_if(guard != 0); | ||
306 | guard++; | ||
307 | |||
308 | INF(" event_recursive_cb: begin"); | ||
309 | |||
310 | ecore_timer_add(1.0, _timer_quit_recursive, NULL); | ||
311 | INF(" add 1.0s timer (once) to trigger _timer_quit_recursive"); | ||
312 | |||
313 | INF(" inner main loop begin (recurse)"); | ||
314 | ecore_main_loop_begin(); | ||
315 | INF(" inner main loop end (recurse)"); | ||
316 | |||
317 | ecore_main_loop_quit(); /* quits outer main loop */ | ||
318 | |||
319 | INF(" guard = %d", guard); | ||
320 | INF(" event_recursive_cb: end"); | ||
321 | return EINA_FALSE; | ||
322 | } | ||
323 | |||
324 | |||
325 | START_TEST(ecore_test_ecore_main_loop_event_recursive) | ||
326 | { | ||
327 | /* This test tests if the event handlers are really called only once when | ||
328 | * recursive main loops are used and any number of events may have occurred | ||
329 | * between the beginning and the end of recursive main loop. | ||
330 | */ | ||
331 | Ecore_Event *e; | ||
332 | int type; | ||
333 | int ret; | ||
334 | |||
335 | _log_dom = eina_log_domain_register("test", EINA_COLOR_CYAN); | ||
336 | |||
337 | INF("main: begin"); | ||
338 | ret = ecore_init(); | ||
339 | fail_if(ret != 1); | ||
340 | |||
341 | |||
342 | type = ecore_event_type_new(); | ||
343 | ecore_event_handler_add(type, _event_recursive_cb, NULL); | ||
344 | e = ecore_event_add(type, NULL, NULL, NULL); | ||
345 | INF(" add event to trigger cb1: event=%p", e); | ||
346 | INF(" main loop begin"); | ||
347 | ecore_main_loop_begin(); | ||
348 | INF(" main loop end"); | ||
349 | |||
350 | INF("main: end"); | ||
351 | ecore_shutdown(); | ||
352 | } | ||
353 | END_TEST | ||
354 | |||
355 | void ecore_test_ecore(TCase *tc) | ||
356 | { | ||
357 | tcase_add_test(tc, ecore_test_ecore_init); | ||
358 | tcase_add_test(tc, ecore_test_ecore_main_loop); | ||
359 | tcase_add_test(tc, ecore_test_ecore_main_loop_idler); | ||
360 | tcase_add_test(tc, ecore_test_ecore_main_loop_idle_enterer); | ||
361 | tcase_add_test(tc, ecore_test_ecore_main_loop_idle_exiter); | ||
362 | tcase_add_test(tc, ecore_test_ecore_main_loop_timer); | ||
363 | tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler); | ||
364 | tcase_add_test(tc, ecore_test_ecore_main_loop_event); | ||
365 | tcase_add_test(tc, ecore_test_ecore_main_loop_timer_inner); | ||
366 | tcase_add_test(tc, ecore_test_ecore_main_loop_event_recursive); | ||
367 | } | ||
diff --git a/libraries/ecore/src/tests/ecore_test_ecore_con.c b/libraries/ecore/src/tests/ecore_test_ecore_con.c deleted file mode 100644 index 45c1f69..0000000 --- a/libraries/ecore/src/tests/ecore_test_ecore_con.c +++ /dev/null | |||
@@ -1,258 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <Ecore_Con.h> | ||
6 | |||
7 | #include "ecore_suite.h" | ||
8 | |||
9 | #include <stdio.h> | ||
10 | #include <Ecore.h> | ||
11 | #include <Ecore_Con.h> | ||
12 | |||
13 | Eina_Bool | ||
14 | _add(void *data, int type __UNUSED__, void *ev) | ||
15 | { | ||
16 | fail_if (type != ECORE_CON_EVENT_CLIENT_ADD && | ||
17 | type != ECORE_CON_EVENT_SERVER_ADD); | ||
18 | |||
19 | /* Server */ | ||
20 | if (type == ECORE_CON_EVENT_CLIENT_ADD) | ||
21 | { | ||
22 | Ecore_Con_Event_Client_Add *event = ev; | ||
23 | |||
24 | fail_if (data != (void *) 1); | ||
25 | fail_if (!event->client); | ||
26 | |||
27 | printf("Client with ip %s, port %d, connected = %d!\n", | ||
28 | ecore_con_client_ip_get(event->client), | ||
29 | ecore_con_client_port_get(event->client), | ||
30 | ecore_con_client_connected_get(event->client)); | ||
31 | |||
32 | ecore_con_client_timeout_set(event->client, 10); | ||
33 | |||
34 | } | ||
35 | else if (type == ECORE_CON_EVENT_SERVER_ADD) | ||
36 | { | ||
37 | Ecore_Con_Event_Server_Add *event = ev; | ||
38 | const char ping[] = "PING"; | ||
39 | int ret; | ||
40 | |||
41 | fail_if (data != (void *) 2); | ||
42 | fail_if (!event->server); | ||
43 | printf("Server with ip %s, name %s, port %d, connected = %d!\n", | ||
44 | ecore_con_server_ip_get(event->server), | ||
45 | ecore_con_server_name_get(event->server), | ||
46 | ecore_con_server_port_get(event->server), | ||
47 | ecore_con_server_connected_get(event->server)); | ||
48 | ret = ecore_con_server_send(event->server, ping, sizeof(ping)); | ||
49 | fail_if (ret != sizeof(ping)); | ||
50 | ecore_con_server_flush(event->server); | ||
51 | } | ||
52 | |||
53 | return ECORE_CALLBACK_RENEW; | ||
54 | } | ||
55 | |||
56 | Eina_Bool | ||
57 | _del(void *data , int type __UNUSED__, void *ev) | ||
58 | { | ||
59 | fail_if (type != ECORE_CON_EVENT_CLIENT_DEL && | ||
60 | type != ECORE_CON_EVENT_SERVER_DEL); | ||
61 | |||
62 | /* Server */ | ||
63 | if (type == ECORE_CON_EVENT_CLIENT_DEL) | ||
64 | { | ||
65 | Ecore_Con_Event_Client_Del *event = ev; | ||
66 | |||
67 | fail_if (data != (void *) 1); | ||
68 | fail_if (!event->client); | ||
69 | |||
70 | printf("Lost client with ip %s!\n", ecore_con_client_ip_get(event->client)); | ||
71 | printf("Client was connected for %0.3f seconds.\n", | ||
72 | ecore_con_client_uptime_get(event->client)); | ||
73 | |||
74 | ecore_con_client_del(event->client); | ||
75 | } | ||
76 | else if (type == ECORE_CON_EVENT_SERVER_DEL) | ||
77 | { | ||
78 | Ecore_Con_Event_Server_Del *event = ev; | ||
79 | |||
80 | fail_if (!event->server); | ||
81 | |||
82 | fail_if (data != (void *) 2); | ||
83 | |||
84 | printf("Lost server with ip %s!\n", ecore_con_server_ip_get(event->server)); | ||
85 | |||
86 | ecore_con_server_del(event->server); | ||
87 | } | ||
88 | fail (); | ||
89 | |||
90 | return ECORE_CALLBACK_RENEW; | ||
91 | } | ||
92 | |||
93 | Eina_Bool | ||
94 | _data(void *data, int type __UNUSED__, void *ev) | ||
95 | { | ||
96 | |||
97 | fail_if (type != ECORE_CON_EVENT_CLIENT_DATA && | ||
98 | type != ECORE_CON_EVENT_SERVER_DATA); | ||
99 | |||
100 | /* Server */ | ||
101 | if (type == ECORE_CON_EVENT_CLIENT_DATA) | ||
102 | { | ||
103 | Ecore_Con_Event_Client_Data *event = ev; | ||
104 | const char pong[] = "PONG"; | ||
105 | int ret; | ||
106 | |||
107 | char fmt[128]; | ||
108 | fail_if (data != (void *) 1); | ||
109 | |||
110 | snprintf(fmt, sizeof(fmt), | ||
111 | "Received %i bytes from client %s port %d:\n" | ||
112 | ">>>>>\n" | ||
113 | "%%.%is\n" | ||
114 | ">>>>>\n", | ||
115 | event->size, ecore_con_client_ip_get(event->client), | ||
116 | ecore_con_client_port_get(event->client), event->size); | ||
117 | |||
118 | printf(fmt, event->data); | ||
119 | fail_if (event->size != sizeof("PING")); | ||
120 | fail_if (memcmp (event->data, "PING", sizeof("PING")) != 0); | ||
121 | |||
122 | ret = ecore_con_client_send(event->client, pong, sizeof(pong)); | ||
123 | fail_if (ret != sizeof(pong)); | ||
124 | ecore_con_client_flush(event->client); | ||
125 | } | ||
126 | else if (type == ECORE_CON_EVENT_SERVER_DATA) | ||
127 | { | ||
128 | Ecore_Con_Event_Server_Data *event = ev; | ||
129 | char fmt[128]; | ||
130 | |||
131 | fail_if (data != (void *) 2); | ||
132 | |||
133 | snprintf(fmt, sizeof(fmt), | ||
134 | "Received %i bytes from server:\n" | ||
135 | ">>>>>\n" | ||
136 | "%%.%is\n" | ||
137 | ">>>>>\n", | ||
138 | event->size, event->size); | ||
139 | |||
140 | printf(fmt, event->data); | ||
141 | fail_if (event->size != sizeof("PONG")); | ||
142 | fail_if (memcmp (event->data, "PONG", sizeof("PONG")) != 0); | ||
143 | ecore_main_loop_quit(); | ||
144 | } | ||
145 | |||
146 | return ECORE_CALLBACK_RENEW; | ||
147 | } | ||
148 | |||
149 | START_TEST(ecore_test_ecore_con_server) | ||
150 | { | ||
151 | Ecore_Con_Server *server; | ||
152 | Ecore_Con_Server *client; | ||
153 | Ecore_Con_Client *cl; | ||
154 | const Eina_List *clients, *l; | ||
155 | Ecore_Event_Handler *handlers[6]; | ||
156 | void *server_data = malloc (1); | ||
157 | void *client_data = malloc (1); | ||
158 | int ret; | ||
159 | void *del_ret; | ||
160 | |||
161 | ret = eina_init(); | ||
162 | fail_if(ret != 1); | ||
163 | ret = ecore_init(); | ||
164 | fail_if(ret != 1); | ||
165 | ret = ecore_con_init(); | ||
166 | fail_if(ret != 1); | ||
167 | |||
168 | handlers[0] = ecore_event_handler_add(ECORE_CON_EVENT_CLIENT_ADD, | ||
169 | _add, (void *) 1); | ||
170 | fail_if(handlers[0] == NULL); | ||
171 | handlers[1] = ecore_event_handler_add(ECORE_CON_EVENT_CLIENT_DEL, | ||
172 | _del, (void *) 1); | ||
173 | fail_if(handlers[1] == NULL); | ||
174 | handlers[2] = ecore_event_handler_add(ECORE_CON_EVENT_CLIENT_DATA, | ||
175 | _data, (void *) 1); | ||
176 | fail_if(handlers[2] == NULL); | ||
177 | |||
178 | handlers[3] = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, | ||
179 | _add, (void *) 2); | ||
180 | fail_if(handlers[3] == NULL); | ||
181 | handlers[4] = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, | ||
182 | _del, (void *) 2); | ||
183 | fail_if(handlers[4] == NULL); | ||
184 | handlers[5] = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, | ||
185 | _data, (void *) 2); | ||
186 | fail_if(handlers[5] == NULL); | ||
187 | |||
188 | server = ecore_con_server_add(ECORE_CON_REMOTE_TCP, "::1", 8080, | ||
189 | server_data); | ||
190 | fail_if (server == NULL); | ||
191 | |||
192 | ecore_con_server_timeout_set(server, 10); | ||
193 | ecore_con_server_client_limit_set(server, 1, 0); | ||
194 | |||
195 | client = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, "::1", 8080, | ||
196 | client_data); | ||
197 | fail_if (client == NULL); | ||
198 | |||
199 | ecore_main_loop_begin(); | ||
200 | |||
201 | clients = ecore_con_server_clients_get(server); | ||
202 | printf("Clients connected to this server when exiting: %d\n", | ||
203 | eina_list_count(clients)); | ||
204 | EINA_LIST_FOREACH(clients, l, cl) | ||
205 | { | ||
206 | printf("%s\n", ecore_con_client_ip_get(cl)); | ||
207 | } | ||
208 | |||
209 | printf("Server was up for %0.3f seconds\n", | ||
210 | ecore_con_server_uptime_get(server)); | ||
211 | |||
212 | del_ret = ecore_con_server_del(server); | ||
213 | fail_if (del_ret != server_data); | ||
214 | free (server_data); | ||
215 | del_ret = ecore_con_server_del(client); | ||
216 | fail_if (del_ret != client_data); | ||
217 | free (client_data); | ||
218 | |||
219 | del_ret = ecore_event_handler_del (handlers[0]); | ||
220 | fail_if (del_ret != (void *) 1); | ||
221 | del_ret = ecore_event_handler_del (handlers[1]); | ||
222 | fail_if (del_ret != (void *) 1); | ||
223 | del_ret = ecore_event_handler_del (handlers[2]); | ||
224 | fail_if (del_ret != (void *) 1); | ||
225 | |||
226 | del_ret = ecore_event_handler_del (handlers[3]); | ||
227 | fail_if (del_ret != (void *) 2); | ||
228 | del_ret = ecore_event_handler_del (handlers[4]); | ||
229 | fail_if (del_ret != (void *) 2); | ||
230 | del_ret = ecore_event_handler_del (handlers[5]); | ||
231 | fail_if (del_ret != (void *) 2); | ||
232 | |||
233 | ret = ecore_con_shutdown(); | ||
234 | fail_if(ret != 0); | ||
235 | ret = ecore_shutdown(); | ||
236 | fail_if(ret != 0); | ||
237 | ret = eina_shutdown(); | ||
238 | fail_if(ret != 0); | ||
239 | } | ||
240 | END_TEST | ||
241 | |||
242 | START_TEST(ecore_test_ecore_con_init) | ||
243 | { | ||
244 | int ret; | ||
245 | |||
246 | ret = ecore_con_init(); | ||
247 | fail_if(ret != 1); | ||
248 | |||
249 | ret = ecore_con_shutdown(); | ||
250 | fail_if(ret != 0); | ||
251 | } | ||
252 | END_TEST | ||
253 | |||
254 | void ecore_test_ecore_con(TCase *tc) | ||
255 | { | ||
256 | tcase_add_test(tc, ecore_test_ecore_con_init); | ||
257 | tcase_add_test(tc, ecore_test_ecore_con_server); | ||
258 | } | ||
diff --git a/libraries/ecore/src/tests/ecore_test_ecore_x.c b/libraries/ecore/src/tests/ecore_test_ecore_x.c deleted file mode 100644 index 2d14ff1..0000000 --- a/libraries/ecore/src/tests/ecore_test_ecore_x.c +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <Ecore_X.h> | ||
6 | |||
7 | #include "ecore_suite.h" | ||
8 | |||
9 | /* FIXME: Currently disable these tests. They are useless ATM and they just | ||
10 | * make buildbot complain. Once we add useful tests here we'll also bother | ||
11 | * with getting X on the server. */ | ||
12 | #undef HAVE_ECORE_X_XLIB | ||
13 | |||
14 | /* TODO: change to HAVE_ECORE_X when xcb implementation is done */ | ||
15 | #ifdef HAVE_ECORE_X_XLIB | ||
16 | |||
17 | START_TEST(ecore_test_ecore_x_init) | ||
18 | { | ||
19 | int ret; | ||
20 | |||
21 | ret = ecore_x_init(NULL); | ||
22 | fail_if(ret != 1); | ||
23 | |||
24 | ret = ecore_x_shutdown(); | ||
25 | fail_if(ret != 0); | ||
26 | } | ||
27 | END_TEST | ||
28 | |||
29 | START_TEST(ecore_test_ecore_x_bell) | ||
30 | { | ||
31 | int i; | ||
32 | int ret; | ||
33 | |||
34 | ret = ecore_x_init(NULL); | ||
35 | fail_if(ret != 1); | ||
36 | |||
37 | printf("You should hear 3 beeps now.\n"); | ||
38 | for (i = 0; i < 3; i++) | ||
39 | { | ||
40 | ret = ecore_x_bell(0); | ||
41 | fail_if(ret != EINA_TRUE); | ||
42 | ecore_x_sync(); | ||
43 | sleep(1); | ||
44 | } | ||
45 | |||
46 | ecore_x_shutdown(); | ||
47 | } | ||
48 | END_TEST | ||
49 | |||
50 | #endif | ||
51 | |||
52 | void ecore_test_ecore_x(TCase *tc) | ||
53 | { | ||
54 | |||
55 | /* TODO: change to HAVE_ECORE_X when xcb implementation is done */ | ||
56 | #ifdef HAVE_ECORE_X_XLIB | ||
57 | tcase_add_test(tc, ecore_test_ecore_x_init); | ||
58 | tcase_add_test(tc, ecore_test_ecore_x_bell); | ||
59 | #endif | ||
60 | } | ||