diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/edje/src/tests/Makefile.am | 27 | ||||
-rw-r--r-- | libraries/edje/src/tests/Makefile.in | 597 | ||||
-rw-r--r-- | libraries/edje/src/tests/edje_suite.c | 101 | ||||
-rw-r--r-- | libraries/edje/src/tests/edje_suite.h | 9 | ||||
-rw-r--r-- | libraries/edje/src/tests/edje_test_edje.c | 28 |
5 files changed, 762 insertions, 0 deletions
diff --git a/libraries/edje/src/tests/Makefile.am b/libraries/edje/src/tests/Makefile.am new file mode 100644 index 0000000..4981ad3 --- /dev/null +++ b/libraries/edje/src/tests/Makefile.am | |||
@@ -0,0 +1,27 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | AM_CPPFLAGS = \ | ||
4 | -I$(top_srcdir)/src/lib \ | ||
5 | @EDJE_CFLAGS@ \ | ||
6 | @CHECK_CFLAGS@ | ||
7 | |||
8 | if EFL_ENABLE_TESTS | ||
9 | |||
10 | noinst_PROGRAMS = edje_suite | ||
11 | |||
12 | check_PROGRAMS = edje_suite | ||
13 | |||
14 | edje_suite_SOURCES = \ | ||
15 | edje_suite.c \ | ||
16 | edje_test_edje.c \ | ||
17 | edje_suite.h | ||
18 | |||
19 | edje_suite_LDADD = \ | ||
20 | @EDJE_LIBS@ \ | ||
21 | @CHECK_LIBS@ \ | ||
22 | $(top_builddir)/src/lib/libedje.la | ||
23 | |||
24 | endif | ||
25 | |||
26 | clean-local: | ||
27 | rm -rf *.gcno *.gcda | ||
diff --git a/libraries/edje/src/tests/Makefile.in b/libraries/edje/src/tests/Makefile.in new file mode 100644 index 0000000..f610548 --- /dev/null +++ b/libraries/edje/src/tests/Makefile.in | |||
@@ -0,0 +1,597 @@ | |||
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 = edje_suite$(EXEEXT) | ||
38 | @EFL_ENABLE_TESTS_TRUE@check_PROGRAMS = edje_suite$(EXEEXT) | ||
39 | subdir = src/tests | ||
40 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
41 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
42 | am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \ | ||
43 | $(top_srcdir)/m4/efl_binary.m4 \ | ||
44 | $(top_srcdir)/m4/efl_coverage.m4 \ | ||
45 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
46 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
47 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | ||
48 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | ||
49 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac | ||
50 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
51 | $(ACLOCAL_M4) | ||
52 | mkinstalldirs = $(install_sh) -d | ||
53 | CONFIG_HEADER = $(top_builddir)/config.h | ||
54 | CONFIG_CLEAN_FILES = | ||
55 | CONFIG_CLEAN_VPATH_FILES = | ||
56 | PROGRAMS = $(noinst_PROGRAMS) | ||
57 | am__edje_suite_SOURCES_DIST = edje_suite.c edje_test_edje.c \ | ||
58 | edje_suite.h | ||
59 | @EFL_ENABLE_TESTS_TRUE@am_edje_suite_OBJECTS = edje_suite.$(OBJEXT) \ | ||
60 | @EFL_ENABLE_TESTS_TRUE@ edje_test_edje.$(OBJEXT) | ||
61 | edje_suite_OBJECTS = $(am_edje_suite_OBJECTS) | ||
62 | @EFL_ENABLE_TESTS_TRUE@edje_suite_DEPENDENCIES = \ | ||
63 | @EFL_ENABLE_TESTS_TRUE@ $(top_builddir)/src/lib/libedje.la | ||
64 | AM_V_lt = $(am__v_lt_$(V)) | ||
65 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
66 | am__v_lt_0 = --silent | ||
67 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
68 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
69 | am__depfiles_maybe = depfiles | ||
70 | am__mv = mv -f | ||
71 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
72 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
73 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
74 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
75 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
76 | $(AM_CFLAGS) $(CFLAGS) | ||
77 | AM_V_CC = $(am__v_CC_$(V)) | ||
78 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
79 | am__v_CC_0 = @echo " CC " $@; | ||
80 | AM_V_at = $(am__v_at_$(V)) | ||
81 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
82 | am__v_at_0 = @ | ||
83 | CCLD = $(CC) | ||
84 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
85 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
86 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
87 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
88 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
89 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
90 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
91 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
92 | am__v_GEN_0 = @echo " GEN " $@; | ||
93 | SOURCES = $(edje_suite_SOURCES) | ||
94 | DIST_SOURCES = $(am__edje_suite_SOURCES_DIST) | ||
95 | ETAGS = etags | ||
96 | CTAGS = ctags | ||
97 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
98 | ACLOCAL = @ACLOCAL@ | ||
99 | ALLOCA = @ALLOCA@ | ||
100 | ALSA_CFLAGS = @ALSA_CFLAGS@ | ||
101 | ALSA_LIBS = @ALSA_LIBS@ | ||
102 | AMTAR = @AMTAR@ | ||
103 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
104 | AR = @AR@ | ||
105 | AS = @AS@ | ||
106 | AUTOCONF = @AUTOCONF@ | ||
107 | AUTOHEADER = @AUTOHEADER@ | ||
108 | AUTOMAKE = @AUTOMAKE@ | ||
109 | AWK = @AWK@ | ||
110 | CC = @CC@ | ||
111 | CCDEPMODE = @CCDEPMODE@ | ||
112 | CFLAGS = @CFLAGS@ | ||
113 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
114 | CHECK_LIBS = @CHECK_LIBS@ | ||
115 | CPP = @CPP@ | ||
116 | CPPFLAGS = @CPPFLAGS@ | ||
117 | CYGPATH_W = @CYGPATH_W@ | ||
118 | DEFS = @DEFS@ | ||
119 | DEPDIR = @DEPDIR@ | ||
120 | DLLTOOL = @DLLTOOL@ | ||
121 | DSYMUTIL = @DSYMUTIL@ | ||
122 | DUMPBIN = @DUMPBIN@ | ||
123 | ECHO_C = @ECHO_C@ | ||
124 | ECHO_N = @ECHO_N@ | ||
125 | ECHO_T = @ECHO_T@ | ||
126 | ECORE_IMF_CFLAGS = @ECORE_IMF_CFLAGS@ | ||
127 | ECORE_IMF_LIBS = @ECORE_IMF_LIBS@ | ||
128 | EDJE_CC_CFLAGS = @EDJE_CC_CFLAGS@ | ||
129 | EDJE_CC_LIBS = @EDJE_CC_LIBS@ | ||
130 | EDJE_CC_PRG = @EDJE_CC_PRG@ | ||
131 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
132 | EDJE_DECC_CFLAGS = @EDJE_DECC_CFLAGS@ | ||
133 | EDJE_DECC_LIBS = @EDJE_DECC_LIBS@ | ||
134 | EDJE_DECC_PRG = @EDJE_DECC_PRG@ | ||
135 | EDJE_EXTERNAL_INSPECTOR_CFLAGS = @EDJE_EXTERNAL_INSPECTOR_CFLAGS@ | ||
136 | EDJE_EXTERNAL_INSPECTOR_LIBS = @EDJE_EXTERNAL_INSPECTOR_LIBS@ | ||
137 | EDJE_EXTERNAL_INSPECTOR_PRG = @EDJE_EXTERNAL_INSPECTOR_PRG@ | ||
138 | EDJE_INSPECTOR_CFLAGS = @EDJE_INSPECTOR_CFLAGS@ | ||
139 | EDJE_INSPECTOR_LIBS = @EDJE_INSPECTOR_LIBS@ | ||
140 | EDJE_INSPECTOR_PRG = @EDJE_INSPECTOR_PRG@ | ||
141 | EDJE_LIBS = @EDJE_LIBS@ | ||
142 | EDJE_PLAYER_CFLAGS = @EDJE_PLAYER_CFLAGS@ | ||
143 | EDJE_PLAYER_LIBS = @EDJE_PLAYER_LIBS@ | ||
144 | EDJE_PLAYER_PRG = @EDJE_PLAYER_PRG@ | ||
145 | EDJE_RECC_PRG = @EDJE_RECC_PRG@ | ||
146 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
147 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
148 | EFL_EDJE_BUILD = @EFL_EDJE_BUILD@ | ||
149 | EGREP = @EGREP@ | ||
150 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
151 | EVIL_LIBS = @EVIL_LIBS@ | ||
152 | EXEEXT = @EXEEXT@ | ||
153 | FGREP = @FGREP@ | ||
154 | FLAC_CFLAGS = @FLAC_CFLAGS@ | ||
155 | FLAC_LIBS = @FLAC_LIBS@ | ||
156 | GREP = @GREP@ | ||
157 | INSTALL = @INSTALL@ | ||
158 | INSTALL_DATA = @INSTALL_DATA@ | ||
159 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
160 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
161 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
162 | LD = @LD@ | ||
163 | LDFLAGS = @LDFLAGS@ | ||
164 | LIBOBJS = @LIBOBJS@ | ||
165 | LIBS = @LIBS@ | ||
166 | LIBTOOL = @LIBTOOL@ | ||
167 | LIPO = @LIPO@ | ||
168 | LN_S = @LN_S@ | ||
169 | LTLIBOBJS = @LTLIBOBJS@ | ||
170 | LUA_CFLAGS = @LUA_CFLAGS@ | ||
171 | LUA_LIBS = @LUA_LIBS@ | ||
172 | MAKEINFO = @MAKEINFO@ | ||
173 | MINIMAL_CFLAGS = @MINIMAL_CFLAGS@ | ||
174 | MINIMAL_LIBS = @MINIMAL_LIBS@ | ||
175 | MKDIR_P = @MKDIR_P@ | ||
176 | MODULE_ARCH = @MODULE_ARCH@ | ||
177 | NM = @NM@ | ||
178 | NMEDIT = @NMEDIT@ | ||
179 | OBJDUMP = @OBJDUMP@ | ||
180 | OBJEXT = @OBJEXT@ | ||
181 | OTOOL = @OTOOL@ | ||
182 | OTOOL64 = @OTOOL64@ | ||
183 | PACKAGE = @PACKAGE@ | ||
184 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
185 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
186 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
187 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
188 | PACKAGE_URL = @PACKAGE_URL@ | ||
189 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
190 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
191 | PKG_CONFIG = @PKG_CONFIG@ | ||
192 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
193 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
194 | PYTHON = @PYTHON@ | ||
195 | PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ | ||
196 | PYTHON_PLATFORM = @PYTHON_PLATFORM@ | ||
197 | PYTHON_PREFIX = @PYTHON_PREFIX@ | ||
198 | PYTHON_VERSION = @PYTHON_VERSION@ | ||
199 | RANLIB = @RANLIB@ | ||
200 | REMIX_CFLAGS = @REMIX_CFLAGS@ | ||
201 | REMIX_LIBS = @REMIX_LIBS@ | ||
202 | REMIX_PLUGIN_DIR = @REMIX_PLUGIN_DIR@ | ||
203 | SED = @SED@ | ||
204 | SET_MAKE = @SET_MAKE@ | ||
205 | SHELL = @SHELL@ | ||
206 | SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ | ||
207 | SNDFILE_LIBS = @SNDFILE_LIBS@ | ||
208 | STRIP = @STRIP@ | ||
209 | VERSION = @VERSION@ | ||
210 | VMAJ = @VMAJ@ | ||
211 | VORBISENC_CFLAGS = @VORBISENC_CFLAGS@ | ||
212 | VORBISENC_LIBS = @VORBISENC_LIBS@ | ||
213 | abs_builddir = @abs_builddir@ | ||
214 | abs_srcdir = @abs_srcdir@ | ||
215 | abs_top_builddir = @abs_top_builddir@ | ||
216 | abs_top_srcdir = @abs_top_srcdir@ | ||
217 | ac_ct_CC = @ac_ct_CC@ | ||
218 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
219 | am__include = @am__include@ | ||
220 | am__leading_dot = @am__leading_dot@ | ||
221 | am__quote = @am__quote@ | ||
222 | am__tar = @am__tar@ | ||
223 | am__untar = @am__untar@ | ||
224 | bindir = @bindir@ | ||
225 | build = @build@ | ||
226 | build_alias = @build_alias@ | ||
227 | build_cpu = @build_cpu@ | ||
228 | build_os = @build_os@ | ||
229 | build_vendor = @build_vendor@ | ||
230 | builddir = @builddir@ | ||
231 | datadir = @datadir@ | ||
232 | datarootdir = @datarootdir@ | ||
233 | docdir = @docdir@ | ||
234 | dvidir = @dvidir@ | ||
235 | edje_cc = @edje_cc@ | ||
236 | efl_doxygen = @efl_doxygen@ | ||
237 | efl_have_doxygen = @efl_have_doxygen@ | ||
238 | exec_prefix = @exec_prefix@ | ||
239 | have_lcov = @have_lcov@ | ||
240 | host = @host@ | ||
241 | host_alias = @host_alias@ | ||
242 | host_cpu = @host_cpu@ | ||
243 | host_os = @host_os@ | ||
244 | host_vendor = @host_vendor@ | ||
245 | htmldir = @htmldir@ | ||
246 | includedir = @includedir@ | ||
247 | infodir = @infodir@ | ||
248 | install_sh = @install_sh@ | ||
249 | libdir = @libdir@ | ||
250 | libexecdir = @libexecdir@ | ||
251 | localedir = @localedir@ | ||
252 | localstatedir = @localstatedir@ | ||
253 | lt_ECHO = @lt_ECHO@ | ||
254 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
255 | lua_libs = @lua_libs@ | ||
256 | mandir = @mandir@ | ||
257 | mkdir_p = @mkdir_p@ | ||
258 | oldincludedir = @oldincludedir@ | ||
259 | pdfdir = @pdfdir@ | ||
260 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
261 | pkgpyexecdir = @pkgpyexecdir@ | ||
262 | pkgpythondir = @pkgpythondir@ | ||
263 | prefix = @prefix@ | ||
264 | program_transform_name = @program_transform_name@ | ||
265 | psdir = @psdir@ | ||
266 | pyexecdir = @pyexecdir@ | ||
267 | pythondir = @pythondir@ | ||
268 | release_info = @release_info@ | ||
269 | requirement_edje = @requirement_edje@ | ||
270 | sbindir = @sbindir@ | ||
271 | sharedstatedir = @sharedstatedir@ | ||
272 | srcdir = @srcdir@ | ||
273 | sysconfdir = @sysconfdir@ | ||
274 | target_alias = @target_alias@ | ||
275 | top_build_prefix = @top_build_prefix@ | ||
276 | top_builddir = @top_builddir@ | ||
277 | top_srcdir = @top_srcdir@ | ||
278 | version_info = @version_info@ | ||
279 | vimdir = @vimdir@ | ||
280 | MAINTAINERCLEANFILES = Makefile.in | ||
281 | AM_CPPFLAGS = \ | ||
282 | -I$(top_srcdir)/src/lib \ | ||
283 | @EDJE_CFLAGS@ \ | ||
284 | @CHECK_CFLAGS@ | ||
285 | |||
286 | @EFL_ENABLE_TESTS_TRUE@edje_suite_SOURCES = \ | ||
287 | @EFL_ENABLE_TESTS_TRUE@edje_suite.c \ | ||
288 | @EFL_ENABLE_TESTS_TRUE@edje_test_edje.c \ | ||
289 | @EFL_ENABLE_TESTS_TRUE@edje_suite.h | ||
290 | |||
291 | @EFL_ENABLE_TESTS_TRUE@edje_suite_LDADD = \ | ||
292 | @EFL_ENABLE_TESTS_TRUE@@EDJE_LIBS@ \ | ||
293 | @EFL_ENABLE_TESTS_TRUE@@CHECK_LIBS@ \ | ||
294 | @EFL_ENABLE_TESTS_TRUE@$(top_builddir)/src/lib/libedje.la | ||
295 | |||
296 | all: all-am | ||
297 | |||
298 | .SUFFIXES: | ||
299 | .SUFFIXES: .c .lo .o .obj | ||
300 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
301 | @for dep in $?; do \ | ||
302 | case '$(am__configure_deps)' in \ | ||
303 | *$$dep*) \ | ||
304 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
305 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
306 | exit 1;; \ | ||
307 | esac; \ | ||
308 | done; \ | ||
309 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/tests/Makefile'; \ | ||
310 | $(am__cd) $(top_srcdir) && \ | ||
311 | $(AUTOMAKE) --gnu src/tests/Makefile | ||
312 | .PRECIOUS: Makefile | ||
313 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
314 | @case '$?' in \ | ||
315 | *config.status*) \ | ||
316 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
317 | *) \ | ||
318 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
319 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
320 | esac; | ||
321 | |||
322 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
323 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
324 | |||
325 | $(top_srcdir)/configure: $(am__configure_deps) | ||
326 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
327 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
328 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
329 | $(am__aclocal_m4_deps): | ||
330 | |||
331 | clean-checkPROGRAMS: | ||
332 | @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ | ||
333 | echo " rm -f" $$list; \ | ||
334 | rm -f $$list || exit $$?; \ | ||
335 | test -n "$(EXEEXT)" || exit 0; \ | ||
336 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ | ||
337 | echo " rm -f" $$list; \ | ||
338 | rm -f $$list | ||
339 | |||
340 | clean-noinstPROGRAMS: | ||
341 | @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ | ||
342 | echo " rm -f" $$list; \ | ||
343 | rm -f $$list || exit $$?; \ | ||
344 | test -n "$(EXEEXT)" || exit 0; \ | ||
345 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ | ||
346 | echo " rm -f" $$list; \ | ||
347 | rm -f $$list | ||
348 | edje_suite$(EXEEXT): $(edje_suite_OBJECTS) $(edje_suite_DEPENDENCIES) | ||
349 | @rm -f edje_suite$(EXEEXT) | ||
350 | $(AM_V_CCLD)$(LINK) $(edje_suite_OBJECTS) $(edje_suite_LDADD) $(LIBS) | ||
351 | |||
352 | mostlyclean-compile: | ||
353 | -rm -f *.$(OBJEXT) | ||
354 | |||
355 | distclean-compile: | ||
356 | -rm -f *.tab.c | ||
357 | |||
358 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/edje_suite.Po@am__quote@ | ||
359 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/edje_test_edje.Po@am__quote@ | ||
360 | |||
361 | .c.o: | ||
362 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
363 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
364 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
365 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
366 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
367 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
368 | |||
369 | .c.obj: | ||
370 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
371 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
372 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
373 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
374 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
375 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
376 | |||
377 | .c.lo: | ||
378 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
379 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
380 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
381 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
382 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
383 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
384 | |||
385 | mostlyclean-libtool: | ||
386 | -rm -f *.lo | ||
387 | |||
388 | clean-libtool: | ||
389 | -rm -rf .libs _libs | ||
390 | |||
391 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
392 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
393 | unique=`for i in $$list; do \ | ||
394 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
395 | done | \ | ||
396 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
397 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
398 | mkid -fID $$unique | ||
399 | tags: TAGS | ||
400 | |||
401 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
402 | $(TAGS_FILES) $(LISP) | ||
403 | set x; \ | ||
404 | here=`pwd`; \ | ||
405 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
406 | unique=`for i in $$list; do \ | ||
407 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
408 | done | \ | ||
409 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
410 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
411 | shift; \ | ||
412 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
413 | test -n "$$unique" || unique=$$empty_fix; \ | ||
414 | if test $$# -gt 0; then \ | ||
415 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
416 | "$$@" $$unique; \ | ||
417 | else \ | ||
418 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
419 | $$unique; \ | ||
420 | fi; \ | ||
421 | fi | ||
422 | ctags: CTAGS | ||
423 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
424 | $(TAGS_FILES) $(LISP) | ||
425 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
426 | unique=`for i in $$list; do \ | ||
427 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
428 | done | \ | ||
429 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
430 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
431 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
432 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
433 | $$unique | ||
434 | |||
435 | GTAGS: | ||
436 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
437 | && $(am__cd) $(top_srcdir) \ | ||
438 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
439 | |||
440 | distclean-tags: | ||
441 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
442 | |||
443 | distdir: $(DISTFILES) | ||
444 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
445 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
446 | list='$(DISTFILES)'; \ | ||
447 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
448 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
449 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
450 | case $$dist_files in \ | ||
451 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
452 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
453 | sort -u` ;; \ | ||
454 | esac; \ | ||
455 | for file in $$dist_files; do \ | ||
456 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
457 | if test -d $$d/$$file; then \ | ||
458 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
459 | if test -d "$(distdir)/$$file"; then \ | ||
460 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
461 | fi; \ | ||
462 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
463 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
464 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
465 | fi; \ | ||
466 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
467 | else \ | ||
468 | test -f "$(distdir)/$$file" \ | ||
469 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
470 | || exit 1; \ | ||
471 | fi; \ | ||
472 | done | ||
473 | check-am: all-am | ||
474 | $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) | ||
475 | check: check-am | ||
476 | all-am: Makefile $(PROGRAMS) | ||
477 | installdirs: | ||
478 | install: install-am | ||
479 | install-exec: install-exec-am | ||
480 | install-data: install-data-am | ||
481 | uninstall: uninstall-am | ||
482 | |||
483 | install-am: all-am | ||
484 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
485 | |||
486 | installcheck: installcheck-am | ||
487 | install-strip: | ||
488 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
489 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
490 | `test -z '$(STRIP)' || \ | ||
491 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
492 | mostlyclean-generic: | ||
493 | |||
494 | clean-generic: | ||
495 | |||
496 | distclean-generic: | ||
497 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
498 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
499 | |||
500 | maintainer-clean-generic: | ||
501 | @echo "This command is intended for maintainers to use" | ||
502 | @echo "it deletes files that may require special tools to rebuild." | ||
503 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
504 | clean: clean-am | ||
505 | |||
506 | clean-am: clean-checkPROGRAMS clean-generic clean-libtool clean-local \ | ||
507 | clean-noinstPROGRAMS mostlyclean-am | ||
508 | |||
509 | distclean: distclean-am | ||
510 | -rm -rf ./$(DEPDIR) | ||
511 | -rm -f Makefile | ||
512 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
513 | distclean-tags | ||
514 | |||
515 | dvi: dvi-am | ||
516 | |||
517 | dvi-am: | ||
518 | |||
519 | html: html-am | ||
520 | |||
521 | html-am: | ||
522 | |||
523 | info: info-am | ||
524 | |||
525 | info-am: | ||
526 | |||
527 | install-data-am: | ||
528 | |||
529 | install-dvi: install-dvi-am | ||
530 | |||
531 | install-dvi-am: | ||
532 | |||
533 | install-exec-am: | ||
534 | |||
535 | install-html: install-html-am | ||
536 | |||
537 | install-html-am: | ||
538 | |||
539 | install-info: install-info-am | ||
540 | |||
541 | install-info-am: | ||
542 | |||
543 | install-man: | ||
544 | |||
545 | install-pdf: install-pdf-am | ||
546 | |||
547 | install-pdf-am: | ||
548 | |||
549 | install-ps: install-ps-am | ||
550 | |||
551 | install-ps-am: | ||
552 | |||
553 | installcheck-am: | ||
554 | |||
555 | maintainer-clean: maintainer-clean-am | ||
556 | -rm -rf ./$(DEPDIR) | ||
557 | -rm -f Makefile | ||
558 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
559 | |||
560 | mostlyclean: mostlyclean-am | ||
561 | |||
562 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
563 | mostlyclean-libtool | ||
564 | |||
565 | pdf: pdf-am | ||
566 | |||
567 | pdf-am: | ||
568 | |||
569 | ps: ps-am | ||
570 | |||
571 | ps-am: | ||
572 | |||
573 | uninstall-am: | ||
574 | |||
575 | .MAKE: check-am install-am install-strip | ||
576 | |||
577 | .PHONY: CTAGS GTAGS all all-am check check-am clean \ | ||
578 | clean-checkPROGRAMS clean-generic clean-libtool clean-local \ | ||
579 | clean-noinstPROGRAMS ctags distclean distclean-compile \ | ||
580 | distclean-generic distclean-libtool distclean-tags distdir dvi \ | ||
581 | dvi-am html html-am info info-am install install-am \ | ||
582 | install-data install-data-am install-dvi install-dvi-am \ | ||
583 | install-exec install-exec-am install-html install-html-am \ | ||
584 | install-info install-info-am install-man install-pdf \ | ||
585 | install-pdf-am install-ps install-ps-am install-strip \ | ||
586 | installcheck installcheck-am installdirs maintainer-clean \ | ||
587 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
588 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
589 | tags uninstall uninstall-am | ||
590 | |||
591 | |||
592 | clean-local: | ||
593 | rm -rf *.gcno *.gcda | ||
594 | |||
595 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
596 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
597 | .NOEXPORT: | ||
diff --git a/libraries/edje/src/tests/edje_suite.c b/libraries/edje/src/tests/edje_suite.c new file mode 100644 index 0000000..ad789b6 --- /dev/null +++ b/libraries/edje/src/tests/edje_suite.c | |||
@@ -0,0 +1,101 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <stdlib.h> | ||
6 | #include <stdio.h> | ||
7 | |||
8 | #include <Edje.h> | ||
9 | |||
10 | #include "edje_suite.h" | ||
11 | |||
12 | typedef struct _Edje_Test_Case Edje_Test_Case; | ||
13 | |||
14 | struct _Edje_Test_Case | ||
15 | { | ||
16 | const char *test_case; | ||
17 | void (*build)(TCase *tc); | ||
18 | }; | ||
19 | |||
20 | static const Edje_Test_Case etc[] = { | ||
21 | { "Edje", edje_test_edje }, | ||
22 | { NULL, NULL } | ||
23 | }; | ||
24 | |||
25 | static void | ||
26 | _list_tests(void) | ||
27 | { | ||
28 | const Edje_Test_Case *itr; | ||
29 | |||
30 | itr = etc; | ||
31 | fputs("Available Test Cases:\n", stderr); | ||
32 | for (; itr->test_case; itr++) | ||
33 | fprintf(stderr, "\t%s\n", itr->test_case); | ||
34 | } | ||
35 | static Eina_Bool | ||
36 | _use_test(int argc, const char **argv, const char *test_case) | ||
37 | { | ||
38 | if (argc < 1) | ||
39 | return 1; | ||
40 | |||
41 | for (; argc > 0; argc--, argv++) | ||
42 | if (strcmp(test_case, *argv) == 0) | ||
43 | return 1; | ||
44 | return 0; | ||
45 | } | ||
46 | |||
47 | static Suite * | ||
48 | edje_suite_build(int argc, const char **argv) | ||
49 | { | ||
50 | TCase *tc; | ||
51 | Suite *s; | ||
52 | int i; | ||
53 | |||
54 | s = suite_create("Edje"); | ||
55 | |||
56 | for (i = 0; etc[i].test_case; ++i) | ||
57 | { | ||
58 | if (!_use_test(argc, argv, etc[i].test_case)) continue; | ||
59 | tc = tcase_create(etc[i].test_case); | ||
60 | |||
61 | etc[i].build(tc); | ||
62 | |||
63 | suite_add_tcase(s, tc); | ||
64 | tcase_set_timeout(tc, 0); | ||
65 | } | ||
66 | |||
67 | return s; | ||
68 | } | ||
69 | |||
70 | int | ||
71 | main(int argc, char **argv) | ||
72 | { | ||
73 | Suite *s; | ||
74 | SRunner *sr; | ||
75 | int i, failed_count; | ||
76 | |||
77 | for (i = 1; i < argc; i++) | ||
78 | if ((strcmp(argv[i], "-h") == 0) || | ||
79 | (strcmp(argv[i], "--help") == 0)) | ||
80 | { | ||
81 | fprintf(stderr, "Usage:\n\t%s [test_case1 .. [test_caseN]]\n", | ||
82 | argv[0]); | ||
83 | _list_tests(); | ||
84 | return 0; | ||
85 | } | ||
86 | else if ((strcmp(argv[i], "-l") == 0) || | ||
87 | (strcmp(argv[i], "--list") == 0)) | ||
88 | { | ||
89 | _list_tests(); | ||
90 | return 0; | ||
91 | } | ||
92 | |||
93 | s = edje_suite_build(argc - 1, (const char **)argv + 1); | ||
94 | sr = srunner_create(s); | ||
95 | |||
96 | srunner_run_all(sr, CK_ENV); | ||
97 | failed_count = srunner_ntests_failed(sr); | ||
98 | srunner_free(sr); | ||
99 | |||
100 | return (failed_count == 0) ? 0 : 255; | ||
101 | } | ||
diff --git a/libraries/edje/src/tests/edje_suite.h b/libraries/edje/src/tests/edje_suite.h new file mode 100644 index 0000000..35ab20d --- /dev/null +++ b/libraries/edje/src/tests/edje_suite.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef _EDJE_SUITE_H | ||
2 | #define _EDJE_SUITE_H | ||
3 | |||
4 | #include <check.h> | ||
5 | |||
6 | void edje_test_edje(TCase *tc); | ||
7 | |||
8 | |||
9 | #endif /* _EDJE_SUITE_H */ | ||
diff --git a/libraries/edje/src/tests/edje_test_edje.c b/libraries/edje/src/tests/edje_test_edje.c new file mode 100644 index 0000000..ad92c63 --- /dev/null +++ b/libraries/edje/src/tests/edje_test_edje.c | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <unistd.h> | ||
6 | #include <stdio.h> | ||
7 | |||
8 | #include <Eina.h> | ||
9 | #include <Edje.h> | ||
10 | |||
11 | #include "edje_suite.h" | ||
12 | |||
13 | START_TEST(edje_test_edje_init) | ||
14 | { | ||
15 | int ret; | ||
16 | |||
17 | ret = edje_init(); | ||
18 | fail_if(ret != 1); | ||
19 | |||
20 | ret = edje_shutdown(); | ||
21 | fail_if(ret != 0); | ||
22 | } | ||
23 | END_TEST | ||
24 | |||
25 | void edje_test_edje(TCase *tc) | ||
26 | { | ||
27 | tcase_add_test(tc, edje_test_edje_init); | ||
28 | } | ||