diff --git a/legacy/eobj/Makefile.am b/legacy/eobj/Makefile.am index b0afe91904..8455c91649 100644 --- a/legacy/eobj/Makefile.am +++ b/legacy/eobj/Makefile.am @@ -52,6 +52,7 @@ doc: if EFL_ENABLE_TESTS + lcov-reset: @rm -rf $(top_builddir)/coverage @find $(top_builddir) -name "*.gcda" -delete @@ -65,9 +66,13 @@ lcov-report: @echo "Coverage Report at $(top_builddir)/coverage/html" check-local: +if EFL_ENABLE_COVERAGE @$(MAKE) lcov-reset - @./src/tests/eina_suite +endif + @./src/tests/eo_suite/eo_suite +if EFL_ENABLE_COVERAGE @$(MAKE) lcov-report +endif else @@ -87,7 +92,7 @@ if EFL_ENABLE_BENCHMARK benchmark: @cd src && $(MAKE) benchmark @mkdir result || true - @cd result && ../src/tests/eina_bench `date +%F_%s` + @cd result && ../src/tests/eo_bench `date +%F_%s` else diff --git a/legacy/eobj/configure.ac b/legacy/eobj/configure.ac index 1c463cdcca..0bdd0c8274 100644 --- a/legacy/eobj/configure.ac +++ b/legacy/eobj/configure.ac @@ -158,6 +158,15 @@ src/examples/eo_isa/Makefile src/examples/evas/Makefile src/examples/simple/Makefile src/lib/Makefile +src/tests/Makefile +src/tests/access/Makefile +src/tests/composite_objects/Makefile +src/tests/constructors/Makefile +src/tests/eo_suite/Makefile +src/tests/function_overrides/Makefile +src/tests/interface/Makefile +src/tests/mixin/Makefile +src/tests/signals/Makefile ]) AC_OUTPUT @@ -176,7 +185,7 @@ echo echo "Configuration Options Summary:" echo echo " Documentation........: ${build_doc}" -echo " Tests................: ${enable_tests} (Coverage: ${efl_enable_coverage})" +echo " Unit Tests...........: ${enable_tests} (Coverage: ${efl_enable_coverage})" echo " Examples.............: ${enable_build_examples}" echo " Benchmark............: ${enable_benchmark}" echo diff --git a/legacy/eobj/m4/efl_tests.m4 b/legacy/eobj/m4/efl_tests.m4 index d8554e1539..4f87559982 100644 --- a/legacy/eobj/m4/efl_tests.m4 +++ b/legacy/eobj/m4/efl_tests.m4 @@ -37,7 +37,7 @@ if test "x${_efl_enable_tests}" = "xyes" ; then [_efl_enable_tests="no"]) fi -efl_enable_coverage="no" +_efl_enable_coverage="no" if test "x${_efl_enable_tests}" = "xyes" ; then AC_CHECK_PROG(have_lcov, [lcov], [yes], [no]) if test "x$have_lcov" = "xyes" ; then @@ -49,13 +49,14 @@ if test "x${_efl_enable_tests}" = "xyes" ; then else m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -g -O0 -DDEBUG" fi - efl_enable_coverage="yes" + _efl_enable_coverage="yes" else AC_MSG_WARN([lcov is not found, disable profiling instrumentation]) fi fi AM_CONDITIONAL(EFL_ENABLE_TESTS, test "x${_efl_enable_tests}" = "xyes") +AM_CONDITIONAL(EFL_ENABLE_COVERAGE, test "x${_efl_enable_coverage}" = "xyes") AS_IF([test "x$_efl_enable_tests" = "xyes"], [$2], [$3]) diff --git a/legacy/eobj/src/Makefile.am b/legacy/eobj/src/Makefile.am index cb86447f7b..849ab4182c 100644 --- a/legacy/eobj/src/Makefile.am +++ b/legacy/eobj/src/Makefile.am @@ -1,7 +1,7 @@ MAINTAINERCLEANFILES = Makefile.in -SUBDIRS = lib benchmarks examples +SUBDIRS = lib benchmarks examples tests .PHONY: benchmark diff --git a/legacy/eobj/src/tests/Makefile.am b/legacy/eobj/src/tests/Makefile.am new file mode 100644 index 0000000000..0afd2fa4ba --- /dev/null +++ b/legacy/eobj/src/tests/Makefile.am @@ -0,0 +1,6 @@ + +MAINTAINERCLEANFILES = Makefile.in + +SUBDIRS = access composite_objects constructors eo_suite function_overrides interface mixin signals + +EXTRA_DIST = eunit_tests.h diff --git a/legacy/eobj/src/tests/access/Makefile.am b/legacy/eobj/src/tests/access/Makefile.am new file mode 100644 index 0000000000..a6d1475640 --- /dev/null +++ b/legacy/eobj/src/tests/access/Makefile.am @@ -0,0 +1,20 @@ + +MAINTAINERCLEANFILES = Makefile.in + +AM_CPPFLAGS = \ +-I$(top_srcdir)/src/lib \ +-I$(top_builddir)/src/lib \ +@EFL_EO_BUILD@ \ +@EO_CFLAGS@ + +noinst_PROGRAMS = access + +access_SOURCES = \ +inherit.c \ +inherit.h \ +main.c \ +simple.c \ +simple.h \ +simple_protected.h + +access_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ diff --git a/legacy/eobj/src/tests/access/inherit.c b/legacy/eobj/src/tests/access/inherit.c index 8f3fe4b862..2c7d4f0849 100644 --- a/legacy/eobj/src/tests/access/inherit.c +++ b/legacy/eobj/src/tests/access/inherit.c @@ -1,11 +1,13 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" #include "simple_protected.h" #include "inherit.h" -#include "config.h" - EAPI Eo_Op INHERIT_BASE_ID = 0; #define MY_CLASS INHERIT_CLASS diff --git a/legacy/eobj/src/tests/access/inherit.h b/legacy/eobj/src/tests/access/inherit.h index 26fa9d97ae..f701dae484 100644 --- a/legacy/eobj/src/tests/access/inherit.h +++ b/legacy/eobj/src/tests/access/inherit.h @@ -1,8 +1,6 @@ #ifndef INHERIT_H #define INHERIT_H -#include "Eo.h" - extern EAPI Eo_Op INHERIT_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/access/main.c b/legacy/eobj/src/tests/access/main.c index 0cd352ec5f..c211698d83 100644 --- a/legacy/eobj/src/tests/access/main.c +++ b/legacy/eobj/src/tests/access/main.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" #include "inherit.h" diff --git a/legacy/eobj/src/tests/access/simple.c b/legacy/eobj/src/tests/access/simple.c index 64484be203..ffa66ccb08 100644 --- a/legacy/eobj/src/tests/access/simple.c +++ b/legacy/eobj/src/tests/access/simple.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" #include "simple_protected.h" diff --git a/legacy/eobj/src/tests/access/simple.h b/legacy/eobj/src/tests/access/simple.h index 902d89cabd..11624b7d20 100644 --- a/legacy/eobj/src/tests/access/simple.h +++ b/legacy/eobj/src/tests/access/simple.h @@ -1,8 +1,6 @@ #ifndef SIMPLE_H #define SIMPLE_H -#include "Eo.h" - extern EAPI Eo_Op SIMPLE_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/access/simple_protected.h b/legacy/eobj/src/tests/access/simple_protected.h index ff2fb7e93f..3cabcd804b 100644 --- a/legacy/eobj/src/tests/access/simple_protected.h +++ b/legacy/eobj/src/tests/access/simple_protected.h @@ -1,8 +1,6 @@ #ifndef SIMPLE_PROTECTED_H #define SIMPLE_PROTECTED_H -#include "simple.h" - typedef struct { Simple_Public_Data public; diff --git a/legacy/eobj/src/tests/composite_objects/Makefile.am b/legacy/eobj/src/tests/composite_objects/Makefile.am new file mode 100644 index 0000000000..0b37eabc6d --- /dev/null +++ b/legacy/eobj/src/tests/composite_objects/Makefile.am @@ -0,0 +1,19 @@ + +MAINTAINERCLEANFILES = Makefile.in + +AM_CPPFLAGS = \ +-I$(top_srcdir)/src/lib \ +-I$(top_builddir)/src/lib \ +@EFL_EO_BUILD@ \ +@EO_CFLAGS@ + +noinst_PROGRAMS = composite_objects + +composite_objects_SOURCES = \ +comp.c \ +comp.h \ +main.c \ +simple.c \ +simple.h + +composite_objects_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ diff --git a/legacy/eobj/src/tests/composite_objects/comp.c b/legacy/eobj/src/tests/composite_objects/comp.c index 2c27576c68..f0e5964bfb 100644 --- a/legacy/eobj/src/tests/composite_objects/comp.c +++ b/legacy/eobj/src/tests/composite_objects/comp.c @@ -1,8 +1,10 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" - #include "comp.h" -#include "config.h" #include "../eunit_tests.h" diff --git a/legacy/eobj/src/tests/composite_objects/comp.h b/legacy/eobj/src/tests/composite_objects/comp.h index 87f61f7488..95001b7020 100644 --- a/legacy/eobj/src/tests/composite_objects/comp.h +++ b/legacy/eobj/src/tests/composite_objects/comp.h @@ -1,8 +1,6 @@ #ifndef COMP_H #define COMP_H -#include "Eo.h" - #define COMP_CLASS comp_class_get() const Eo_Class *comp_class_get(void); diff --git a/legacy/eobj/src/tests/composite_objects/main.c b/legacy/eobj/src/tests/composite_objects/main.c index 453f6d2b90..ae5dc5d2f0 100644 --- a/legacy/eobj/src/tests/composite_objects/main.c +++ b/legacy/eobj/src/tests/composite_objects/main.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" #include "comp.h" diff --git a/legacy/eobj/src/tests/composite_objects/simple.c b/legacy/eobj/src/tests/composite_objects/simple.c index 2bd3259f08..070b837b22 100644 --- a/legacy/eobj/src/tests/composite_objects/simple.c +++ b/legacy/eobj/src/tests/composite_objects/simple.c @@ -1,8 +1,10 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" -#include "config.h" - EAPI Eo_Op SIMPLE_BASE_ID = 0; EAPI const Eo_Event_Description _EV_A_CHANGED = diff --git a/legacy/eobj/src/tests/composite_objects/simple.h b/legacy/eobj/src/tests/composite_objects/simple.h index 5d49b59ee1..32a62465b8 100644 --- a/legacy/eobj/src/tests/composite_objects/simple.h +++ b/legacy/eobj/src/tests/composite_objects/simple.h @@ -1,8 +1,6 @@ #ifndef SIMPLE_H #define SIMPLE_H -#include "Eo.h" - extern EAPI Eo_Op SIMPLE_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/constructors/Makefile.am b/legacy/eobj/src/tests/constructors/Makefile.am new file mode 100644 index 0000000000..0d37c60de3 --- /dev/null +++ b/legacy/eobj/src/tests/constructors/Makefile.am @@ -0,0 +1,31 @@ + +MAINTAINERCLEANFILES = Makefile.in + +AM_CPPFLAGS = \ +-I$(top_srcdir)/src/lib \ +-I$(top_builddir)/src/lib \ +@EFL_EO_BUILD@ \ +@EO_CFLAGS@ + +noinst_PROGRAMS = constructors + +constructors_SOURCES = \ +main.c \ +mixin.c \ +mixin.h \ +simple.c \ +simple.h \ +simple2.c \ +simple2.h \ +simple3.c \ +simple3.h \ +simple4.c \ +simple4.h \ +simple5.c \ +simple5.h \ +simple6.c \ +simple6.h \ +simple7.c \ +simple7.h + +constructors_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ diff --git a/legacy/eobj/src/tests/constructors/main.c b/legacy/eobj/src/tests/constructors/main.c index 04d888803f..21bf4b449c 100644 --- a/legacy/eobj/src/tests/constructors/main.c +++ b/legacy/eobj/src/tests/constructors/main.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" #include "simple2.h" diff --git a/legacy/eobj/src/tests/constructors/mixin.c b/legacy/eobj/src/tests/constructors/mixin.c index 859032928b..9dc1c302a9 100644 --- a/legacy/eobj/src/tests/constructors/mixin.c +++ b/legacy/eobj/src/tests/constructors/mixin.c @@ -1,9 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "simple.h" -#include "config.h" - EAPI Eo_Op MIXIN_BASE_ID = 0; #define MY_CLASS MIXIN_CLASS diff --git a/legacy/eobj/src/tests/constructors/mixin.h b/legacy/eobj/src/tests/constructors/mixin.h index 04f587e5ac..9998b274f4 100644 --- a/legacy/eobj/src/tests/constructors/mixin.h +++ b/legacy/eobj/src/tests/constructors/mixin.h @@ -1,8 +1,6 @@ #ifndef MIXIN_H #define MIXIN_H -#include "Eo.h" - extern EAPI Eo_Op MIXIN_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/constructors/simple.c b/legacy/eobj/src/tests/constructors/simple.c index 5712534907..f56828c5b6 100644 --- a/legacy/eobj/src/tests/constructors/simple.c +++ b/legacy/eobj/src/tests/constructors/simple.c @@ -1,9 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "simple.h" -#include "config.h" - EAPI Eo_Op SIMPLE_BASE_ID = 0; typedef struct diff --git a/legacy/eobj/src/tests/constructors/simple.h b/legacy/eobj/src/tests/constructors/simple.h index ac3e287bbd..7342d3402e 100644 --- a/legacy/eobj/src/tests/constructors/simple.h +++ b/legacy/eobj/src/tests/constructors/simple.h @@ -1,8 +1,6 @@ #ifndef SIMPLE_H #define SIMPLE_H -#include "Eo.h" - extern EAPI Eo_Op SIMPLE_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/constructors/simple2.c b/legacy/eobj/src/tests/constructors/simple2.c index 65c9252585..86c1aeafda 100644 --- a/legacy/eobj/src/tests/constructors/simple2.c +++ b/legacy/eobj/src/tests/constructors/simple2.c @@ -1,9 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "simple2.h" -#include "config.h" - #define MY_CLASS SIMPLE2_CLASS static void diff --git a/legacy/eobj/src/tests/constructors/simple2.h b/legacy/eobj/src/tests/constructors/simple2.h index 0857c45a71..e6549f3d2a 100644 --- a/legacy/eobj/src/tests/constructors/simple2.h +++ b/legacy/eobj/src/tests/constructors/simple2.h @@ -1,8 +1,6 @@ #ifndef SIMPLE2_H #define SIMPLE2_H -#include "Eo.h" - #define SIMPLE2_CLASS simple2_class_get() const Eo_Class *simple2_class_get(void); diff --git a/legacy/eobj/src/tests/constructors/simple3.c b/legacy/eobj/src/tests/constructors/simple3.c index f199cc6ad9..f671b4b24c 100644 --- a/legacy/eobj/src/tests/constructors/simple3.c +++ b/legacy/eobj/src/tests/constructors/simple3.c @@ -1,9 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "simple3.h" -#include "config.h" - #define MY_CLASS SIMPLE3_CLASS static void diff --git a/legacy/eobj/src/tests/constructors/simple3.h b/legacy/eobj/src/tests/constructors/simple3.h index dbb3841cc7..e27f8f1ce4 100644 --- a/legacy/eobj/src/tests/constructors/simple3.h +++ b/legacy/eobj/src/tests/constructors/simple3.h @@ -1,8 +1,6 @@ #ifndef SIMPLE3_H #define SIMPLE3_H -#include "Eo.h" - #define SIMPLE3_CLASS simple3_class_get() const Eo_Class *simple3_class_get(void); diff --git a/legacy/eobj/src/tests/constructors/simple4.c b/legacy/eobj/src/tests/constructors/simple4.c index d2a3dbfa11..95cfa73003 100644 --- a/legacy/eobj/src/tests/constructors/simple4.c +++ b/legacy/eobj/src/tests/constructors/simple4.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "simple.h" diff --git a/legacy/eobj/src/tests/constructors/simple4.h b/legacy/eobj/src/tests/constructors/simple4.h index 3e6d1a8d78..fe8e862e6d 100644 --- a/legacy/eobj/src/tests/constructors/simple4.h +++ b/legacy/eobj/src/tests/constructors/simple4.h @@ -1,8 +1,6 @@ #ifndef SIMPLE4_H #define SIMPLE4_H -#include "Eo.h" - #define SIMPLE4_CLASS simple4_class_get() const Eo_Class *simple4_class_get(void); diff --git a/legacy/eobj/src/tests/constructors/simple5.c b/legacy/eobj/src/tests/constructors/simple5.c index 5fc83782c7..9ff6d49468 100644 --- a/legacy/eobj/src/tests/constructors/simple5.c +++ b/legacy/eobj/src/tests/constructors/simple5.c @@ -1,9 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "simple5.h" -#include "config.h" - #define MY_CLASS SIMPLE5_CLASS static void diff --git a/legacy/eobj/src/tests/constructors/simple5.h b/legacy/eobj/src/tests/constructors/simple5.h index 8ae62153a4..9b262d4463 100644 --- a/legacy/eobj/src/tests/constructors/simple5.h +++ b/legacy/eobj/src/tests/constructors/simple5.h @@ -1,8 +1,6 @@ #ifndef SIMPLE5_H #define SIMPLE5_H -#include "Eo.h" - #define SIMPLE5_CLASS simple5_class_get() const Eo_Class *simple5_class_get(void); diff --git a/legacy/eobj/src/tests/constructors/simple6.c b/legacy/eobj/src/tests/constructors/simple6.c index 2749a8a8d4..7c224d75f2 100644 --- a/legacy/eobj/src/tests/constructors/simple6.c +++ b/legacy/eobj/src/tests/constructors/simple6.c @@ -1,9 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "simple6.h" -#include "config.h" - #define MY_CLASS SIMPLE6_CLASS static void diff --git a/legacy/eobj/src/tests/constructors/simple6.h b/legacy/eobj/src/tests/constructors/simple6.h index 32ee3cb01a..97e7b5e360 100644 --- a/legacy/eobj/src/tests/constructors/simple6.h +++ b/legacy/eobj/src/tests/constructors/simple6.h @@ -1,8 +1,6 @@ #ifndef SIMPLE6_H #define SIMPLE6_H -#include "Eo.h" - #define SIMPLE6_CLASS simple6_class_get() const Eo_Class *simple6_class_get(void); diff --git a/legacy/eobj/src/tests/constructors/simple7.c b/legacy/eobj/src/tests/constructors/simple7.c index ba86e2b478..42af6cf8c2 100644 --- a/legacy/eobj/src/tests/constructors/simple7.c +++ b/legacy/eobj/src/tests/constructors/simple7.c @@ -1,9 +1,12 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "simple7.h" #include "simple2.h" -#include "config.h" #include "../eunit_tests.h" #define MY_CLASS SIMPLE7_CLASS diff --git a/legacy/eobj/src/tests/constructors/simple7.h b/legacy/eobj/src/tests/constructors/simple7.h index 3710b62c14..a9a201e447 100644 --- a/legacy/eobj/src/tests/constructors/simple7.h +++ b/legacy/eobj/src/tests/constructors/simple7.h @@ -1,8 +1,6 @@ #ifndef SIMPLE7_H #define SIMPLE7_H -#include "Eo.h" - #define SIMPLE7_CLASS simple7_class_get() const Eo_Class *simple7_class_get(void); diff --git a/legacy/eobj/src/tests/eo_suite/class_simple.c b/legacy/eobj/src/tests/eo_suite/class_simple.c index e0db709449..bf60a9f149 100644 --- a/legacy/eobj/src/tests/eo_suite/class_simple.c +++ b/legacy/eobj/src/tests/eo_suite/class_simple.c @@ -1,8 +1,10 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "class_simple.h" -#include "config.h" - #define MY_CLASS SIMPLE_CLASS EAPI Eo_Op SIMPLE_BASE_ID = 0; diff --git a/legacy/eobj/src/tests/eo_suite/class_simple.h b/legacy/eobj/src/tests/eo_suite/class_simple.h index eb58f6d93c..9980b7b93a 100644 --- a/legacy/eobj/src/tests/eo_suite/class_simple.h +++ b/legacy/eobj/src/tests/eo_suite/class_simple.h @@ -1,8 +1,6 @@ #ifndef SIMPLE_H #define SIMPLE_H -#include "Eo.h" - extern EAPI Eo_Op SIMPLE_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/eo_suite/eo_suite.c b/legacy/eobj/src/tests/eo_suite/eo_suite.c index 69c3ad7446..0494136cef 100644 --- a/legacy/eobj/src/tests/eo_suite/eo_suite.c +++ b/legacy/eobj/src/tests/eo_suite/eo_suite.c @@ -6,7 +6,6 @@ #include #include "Eo.h" - #include "eo_suite.h" typedef struct _Eo_Test_Case Eo_Test_Case; diff --git a/legacy/eobj/src/tests/eo_suite/eo_test_class_errors.c b/legacy/eobj/src/tests/eo_suite/eo_test_class_errors.c index 269c87a7a5..428359f9c3 100644 --- a/legacy/eobj/src/tests/eo_suite/eo_test_class_errors.c +++ b/legacy/eobj/src/tests/eo_suite/eo_test_class_errors.c @@ -1,10 +1,11 @@ -#include "config.h" +#ifdef HAVE_CONFIG_H +# include +#endif #include -#include "eo_suite.h" #include "Eo.h" - +#include "eo_suite.h" #include "class_simple.h" START_TEST(eo_incomplete_desc) diff --git a/legacy/eobj/src/tests/eo_suite/eo_test_general.c b/legacy/eobj/src/tests/eo_suite/eo_test_general.c index b1151eb61e..0de71dc0a0 100644 --- a/legacy/eobj/src/tests/eo_suite/eo_test_general.c +++ b/legacy/eobj/src/tests/eo_suite/eo_test_general.c @@ -4,9 +4,8 @@ #include -#include "eo_suite.h" #include "Eo.h" - +#include "eo_suite.h" #include "class_simple.h" START_TEST(eo_simple) diff --git a/legacy/eobj/src/tests/eo_suite/eo_test_init.c b/legacy/eobj/src/tests/eo_suite/eo_test_init.c index 851b857f1a..3bf4b49cb7 100644 --- a/legacy/eobj/src/tests/eo_suite/eo_test_init.c +++ b/legacy/eobj/src/tests/eo_suite/eo_test_init.c @@ -4,8 +4,8 @@ #include -#include "eo_suite.h" #include "Eo.h" +#include "eo_suite.h" START_TEST(eo_simple) { diff --git a/legacy/eobj/src/tests/function_overrides/Makefile.am b/legacy/eobj/src/tests/function_overrides/Makefile.am new file mode 100644 index 0000000000..90c9582b04 --- /dev/null +++ b/legacy/eobj/src/tests/function_overrides/Makefile.am @@ -0,0 +1,23 @@ + +MAINTAINERCLEANFILES = Makefile.in + +AM_CPPFLAGS = \ +-I$(top_srcdir)/src/lib \ +-I$(top_builddir)/src/lib \ +@EFL_EO_BUILD@ \ +@EO_CFLAGS@ + +noinst_PROGRAMS = function_overrides + +function_overrides_SOURCES = \ +inherit.c \ +inherit.h \ +inherit2.c \ +inherit2.h \ +inherit3.c \ +inherit3.h \ +main.c \ +simple.c \ +simple.h + +function_overrides_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ diff --git a/legacy/eobj/src/tests/function_overrides/inherit.c b/legacy/eobj/src/tests/function_overrides/inherit.c index a3cd3c9c95..2b3ad489c3 100644 --- a/legacy/eobj/src/tests/function_overrides/inherit.c +++ b/legacy/eobj/src/tests/function_overrides/inherit.c @@ -1,6 +1,9 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" - #include "inherit.h" #define MY_CLASS INHERIT_CLASS diff --git a/legacy/eobj/src/tests/function_overrides/inherit.h b/legacy/eobj/src/tests/function_overrides/inherit.h index d72c73a283..2f33647958 100644 --- a/legacy/eobj/src/tests/function_overrides/inherit.h +++ b/legacy/eobj/src/tests/function_overrides/inherit.h @@ -1,8 +1,6 @@ #ifndef INHERIT_H #define INHERIT_H -#include "Eo.h" - #define INHERIT_CLASS inherit_class_get() const Eo_Class *inherit_class_get(void); diff --git a/legacy/eobj/src/tests/function_overrides/inherit2.c b/legacy/eobj/src/tests/function_overrides/inherit2.c index 6814a34a4d..484b6d0444 100644 --- a/legacy/eobj/src/tests/function_overrides/inherit2.c +++ b/legacy/eobj/src/tests/function_overrides/inherit2.c @@ -1,11 +1,12 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" - #include "inherit.h" #include "inherit2.h" -#include "config.h" - #include "../eunit_tests.h" EAPI Eo_Op INHERIT2_BASE_ID = 0; diff --git a/legacy/eobj/src/tests/function_overrides/inherit2.h b/legacy/eobj/src/tests/function_overrides/inherit2.h index 2bf7db997d..2bc0b0d36a 100644 --- a/legacy/eobj/src/tests/function_overrides/inherit2.h +++ b/legacy/eobj/src/tests/function_overrides/inherit2.h @@ -1,8 +1,6 @@ #ifndef INHERIT2_H #define INHERIT2_H -#include "Eo.h" - extern EAPI Eo_Op INHERIT2_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/function_overrides/inherit3.c b/legacy/eobj/src/tests/function_overrides/inherit3.c index e36ab77233..66f31fe5e5 100644 --- a/legacy/eobj/src/tests/function_overrides/inherit3.c +++ b/legacy/eobj/src/tests/function_overrides/inherit3.c @@ -1,11 +1,12 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" - #include "inherit2.h" #include "inherit3.h" -#include "config.h" - #define MY_CLASS INHERIT3_CLASS static void diff --git a/legacy/eobj/src/tests/function_overrides/inherit3.h b/legacy/eobj/src/tests/function_overrides/inherit3.h index 47d5d1cf82..73436ba239 100644 --- a/legacy/eobj/src/tests/function_overrides/inherit3.h +++ b/legacy/eobj/src/tests/function_overrides/inherit3.h @@ -1,8 +1,6 @@ #ifndef INHERIT3_H #define INHERIT3_H -#include "Eo.h" - #define INHERIT3_CLASS inherit3_class_get() const Eo_Class *inherit3_class_get(void); diff --git a/legacy/eobj/src/tests/function_overrides/main.c b/legacy/eobj/src/tests/function_overrides/main.c index af39c67265..c45cfe5908 100644 --- a/legacy/eobj/src/tests/function_overrides/main.c +++ b/legacy/eobj/src/tests/function_overrides/main.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" #include "inherit.h" diff --git a/legacy/eobj/src/tests/function_overrides/simple.c b/legacy/eobj/src/tests/function_overrides/simple.c index bc3692cf22..378189072f 100644 --- a/legacy/eobj/src/tests/function_overrides/simple.c +++ b/legacy/eobj/src/tests/function_overrides/simple.c @@ -1,7 +1,10 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" -#include "config.h" #include "../eunit_tests.h" EAPI Eo_Op SIMPLE_BASE_ID = 0; diff --git a/legacy/eobj/src/tests/function_overrides/simple.h b/legacy/eobj/src/tests/function_overrides/simple.h index a447d8cc5c..3a620fa611 100644 --- a/legacy/eobj/src/tests/function_overrides/simple.h +++ b/legacy/eobj/src/tests/function_overrides/simple.h @@ -1,8 +1,6 @@ #ifndef SIMPLE_H #define SIMPLE_H -#include "Eo.h" - extern EAPI Eo_Op SIMPLE_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/interface/Makefile.am b/legacy/eobj/src/tests/interface/Makefile.am new file mode 100644 index 0000000000..fa927fb1bf --- /dev/null +++ b/legacy/eobj/src/tests/interface/Makefile.am @@ -0,0 +1,21 @@ + +MAINTAINERCLEANFILES = Makefile.in + +AM_CPPFLAGS = \ +-I$(top_srcdir)/src/lib \ +-I$(top_builddir)/src/lib \ +@EFL_EO_BUILD@ \ +@EO_CFLAGS@ + +noinst_PROGRAMS = interface + +interface_SOURCES = \ +interface.c \ +interface.h \ +interface2.c \ +interface2.h \ +main.c \ +simple.c \ +simple.h + +interface_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ diff --git a/legacy/eobj/src/tests/interface/interface.c b/legacy/eobj/src/tests/interface/interface.c index 16659d507c..27a986bc17 100644 --- a/legacy/eobj/src/tests/interface/interface.c +++ b/legacy/eobj/src/tests/interface/interface.c @@ -1,9 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "interface.h" #include "simple.h" -#include "config.h" - EAPI Eo_Op INTERFACE_BASE_ID = 0; #define MY_CLASS INTERFACE_CLASS diff --git a/legacy/eobj/src/tests/interface/interface.h b/legacy/eobj/src/tests/interface/interface.h index 9a1c5fd07d..4e161b8488 100644 --- a/legacy/eobj/src/tests/interface/interface.h +++ b/legacy/eobj/src/tests/interface/interface.h @@ -1,8 +1,6 @@ #ifndef INTERFACE_H #define INTERFACE_H -#include "Eo.h" - extern EAPI Eo_Op INTERFACE_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/interface/interface2.c b/legacy/eobj/src/tests/interface/interface2.c index 2ccd83215d..74619dbdbd 100644 --- a/legacy/eobj/src/tests/interface/interface2.c +++ b/legacy/eobj/src/tests/interface/interface2.c @@ -1,10 +1,12 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "interface.h" #include "interface2.h" #include "simple.h" -#include "config.h" - EAPI Eo_Op INTERFACE2_BASE_ID = 0; #define MY_CLASS INTERFACE2_CLASS diff --git a/legacy/eobj/src/tests/interface/interface2.h b/legacy/eobj/src/tests/interface/interface2.h index 205b9b3ccd..5aa91f4fdc 100644 --- a/legacy/eobj/src/tests/interface/interface2.h +++ b/legacy/eobj/src/tests/interface/interface2.h @@ -1,8 +1,6 @@ #ifndef INTERFACE2_H #define INTERFACE2_H -#include "Eo.h" - extern EAPI Eo_Op INTERFACE2_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/interface/main.c b/legacy/eobj/src/tests/interface/main.c index e83ced9248..0abe495456 100644 --- a/legacy/eobj/src/tests/interface/main.c +++ b/legacy/eobj/src/tests/interface/main.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" #include "interface.h" diff --git a/legacy/eobj/src/tests/interface/simple.c b/legacy/eobj/src/tests/interface/simple.c index c76315afaf..d19ecad82f 100644 --- a/legacy/eobj/src/tests/interface/simple.c +++ b/legacy/eobj/src/tests/interface/simple.c @@ -1,10 +1,12 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "interface.h" #include "interface2.h" #include "simple.h" -#include "config.h" - EAPI Eo_Op SIMPLE_BASE_ID = 0; typedef struct diff --git a/legacy/eobj/src/tests/interface/simple.h b/legacy/eobj/src/tests/interface/simple.h index 61fa2f086a..8df8131278 100644 --- a/legacy/eobj/src/tests/interface/simple.h +++ b/legacy/eobj/src/tests/interface/simple.h @@ -1,8 +1,6 @@ #ifndef SIMPLE_H #define SIMPLE_H -#include "Eo.h" - extern EAPI Eo_Op SIMPLE_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/mixin/Makefile.am b/legacy/eobj/src/tests/mixin/Makefile.am new file mode 100644 index 0000000000..fd034916d0 --- /dev/null +++ b/legacy/eobj/src/tests/mixin/Makefile.am @@ -0,0 +1,27 @@ + +MAINTAINERCLEANFILES = Makefile.in + +AM_CPPFLAGS = \ +-I$(top_srcdir)/src/lib \ +-I$(top_builddir)/src/lib \ +@EFL_EO_BUILD@ \ +@EO_CFLAGS@ + +noinst_PROGRAMS = mixin + +mixin_SOURCES = \ +inherit.c \ +inherit.h \ +main.c \ +mixin.c \ +mixin.h \ +mixin2.c \ +mixin2.h \ +mixin3.c \ +mixin3.h \ +mixin4.c \ +mixin4.h \ +simple.c \ +simple.h + +mixin_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ diff --git a/legacy/eobj/src/tests/mixin/inherit.c b/legacy/eobj/src/tests/mixin/inherit.c index 53c8826953..f23ec41e22 100644 --- a/legacy/eobj/src/tests/mixin/inherit.c +++ b/legacy/eobj/src/tests/mixin/inherit.c @@ -1,7 +1,11 @@ -#include "Eo.h" -#include "inherit.h" +#ifdef HAVE_CONFIG_H +# include +#endif -#include "config.h" +#include "Eo.h" +#include "simple.h" +#include "mixin4.h" +#include "inherit.h" #define MY_CLASS INHERIT_CLASS diff --git a/legacy/eobj/src/tests/mixin/inherit.h b/legacy/eobj/src/tests/mixin/inherit.h index b6d78fbf0b..2f33647958 100644 --- a/legacy/eobj/src/tests/mixin/inherit.h +++ b/legacy/eobj/src/tests/mixin/inherit.h @@ -1,10 +1,6 @@ #ifndef INHERIT_H #define INHERIT_H -#include "Eo.h" -#include "simple.h" -#include "mixin4.h" - #define INHERIT_CLASS inherit_class_get() const Eo_Class *inherit_class_get(void); diff --git a/legacy/eobj/src/tests/mixin/main.c b/legacy/eobj/src/tests/mixin/main.c index c69754da78..bd0c289617 100644 --- a/legacy/eobj/src/tests/mixin/main.c +++ b/legacy/eobj/src/tests/mixin/main.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" #include "inherit.h" diff --git a/legacy/eobj/src/tests/mixin/mixin.c b/legacy/eobj/src/tests/mixin/mixin.c index e9381e91d3..3be53ce397 100644 --- a/legacy/eobj/src/tests/mixin/mixin.c +++ b/legacy/eobj/src/tests/mixin/mixin.c @@ -1,9 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "simple.h" -#include "config.h" - EAPI Eo_Op MIXIN_BASE_ID = 0; #define MY_CLASS MIXIN_CLASS diff --git a/legacy/eobj/src/tests/mixin/mixin.h b/legacy/eobj/src/tests/mixin/mixin.h index 2fa0c2248a..745e5c4683 100644 --- a/legacy/eobj/src/tests/mixin/mixin.h +++ b/legacy/eobj/src/tests/mixin/mixin.h @@ -1,8 +1,6 @@ #ifndef MIXIN_H #define MIXIN_H -#include "Eo.h" - extern EAPI Eo_Op MIXIN_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/mixin/mixin2.c b/legacy/eobj/src/tests/mixin/mixin2.c index c17dea60c0..a6eb82db53 100644 --- a/legacy/eobj/src/tests/mixin/mixin2.c +++ b/legacy/eobj/src/tests/mixin/mixin2.c @@ -1,10 +1,12 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "mixin2.h" #include "simple.h" -#include "config.h" - #include "../eunit_tests.h" #define MY_CLASS MIXIN2_CLASS diff --git a/legacy/eobj/src/tests/mixin/mixin2.h b/legacy/eobj/src/tests/mixin/mixin2.h index 324afaf0ce..6e4b692d41 100644 --- a/legacy/eobj/src/tests/mixin/mixin2.h +++ b/legacy/eobj/src/tests/mixin/mixin2.h @@ -1,8 +1,6 @@ #ifndef MIXIN2_H #define MIXIN2_H -#include "Eo.h" - typedef struct { int count; diff --git a/legacy/eobj/src/tests/mixin/mixin3.c b/legacy/eobj/src/tests/mixin/mixin3.c index 94253b613b..62468afef0 100644 --- a/legacy/eobj/src/tests/mixin/mixin3.c +++ b/legacy/eobj/src/tests/mixin/mixin3.c @@ -1,10 +1,12 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "mixin3.h" #include "simple.h" -#include "config.h" - #include "../eunit_tests.h" #define MY_CLASS MIXIN3_CLASS diff --git a/legacy/eobj/src/tests/mixin/mixin3.h b/legacy/eobj/src/tests/mixin/mixin3.h index a05c2ec541..36b32c0aa8 100644 --- a/legacy/eobj/src/tests/mixin/mixin3.h +++ b/legacy/eobj/src/tests/mixin/mixin3.h @@ -1,8 +1,6 @@ #ifndef MIXIN3_H #define MIXIN3_H -#include "Eo.h" - typedef struct { int count; diff --git a/legacy/eobj/src/tests/mixin/mixin4.c b/legacy/eobj/src/tests/mixin/mixin4.c index 17944bc901..185884156b 100644 --- a/legacy/eobj/src/tests/mixin/mixin4.c +++ b/legacy/eobj/src/tests/mixin/mixin4.c @@ -1,10 +1,12 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "mixin4.h" #include "simple.h" -#include "config.h" - #include "../eunit_tests.h" #define MY_CLASS MIXIN4_CLASS diff --git a/legacy/eobj/src/tests/mixin/mixin4.h b/legacy/eobj/src/tests/mixin/mixin4.h index e924332fdc..7b520fad19 100644 --- a/legacy/eobj/src/tests/mixin/mixin4.h +++ b/legacy/eobj/src/tests/mixin/mixin4.h @@ -1,8 +1,6 @@ #ifndef MIXIN4_H #define MIXIN4_H -#include "Eo.h" - #define MIXIN4_CLASS mixin4_class_get() const Eo_Class *mixin4_class_get(void); diff --git a/legacy/eobj/src/tests/mixin/simple.c b/legacy/eobj/src/tests/mixin/simple.c index ae93708a6b..d7b95f2e85 100644 --- a/legacy/eobj/src/tests/mixin/simple.c +++ b/legacy/eobj/src/tests/mixin/simple.c @@ -1,11 +1,13 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "mixin.h" #include "mixin2.h" #include "mixin3.h" #include "simple.h" -#include "config.h" - EAPI Eo_Op SIMPLE_BASE_ID = 0; typedef struct diff --git a/legacy/eobj/src/tests/mixin/simple.h b/legacy/eobj/src/tests/mixin/simple.h index 61fa2f086a..8df8131278 100644 --- a/legacy/eobj/src/tests/mixin/simple.h +++ b/legacy/eobj/src/tests/mixin/simple.h @@ -1,8 +1,6 @@ #ifndef SIMPLE_H #define SIMPLE_H -#include "Eo.h" - extern EAPI Eo_Op SIMPLE_BASE_ID; enum { diff --git a/legacy/eobj/src/tests/signals/Makefile.am b/legacy/eobj/src/tests/signals/Makefile.am new file mode 100644 index 0000000000..895e114b83 --- /dev/null +++ b/legacy/eobj/src/tests/signals/Makefile.am @@ -0,0 +1,17 @@ + +MAINTAINERCLEANFILES = Makefile.in + +AM_CPPFLAGS = \ +-I$(top_srcdir)/src/lib \ +-I$(top_builddir)/src/lib \ +@EFL_EO_BUILD@ \ +@EO_CFLAGS@ + +noinst_PROGRAMS = signals + +signals_SOURCES = \ +main.c \ +simple.c \ +simple.h + +signals_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ diff --git a/legacy/eobj/src/tests/signals/main.c b/legacy/eobj/src/tests/signals/main.c index 26ac85371d..69e25b06a1 100644 --- a/legacy/eobj/src/tests/signals/main.c +++ b/legacy/eobj/src/tests/signals/main.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" diff --git a/legacy/eobj/src/tests/signals/simple.c b/legacy/eobj/src/tests/signals/simple.c index 08210ead3d..168761c0b9 100644 --- a/legacy/eobj/src/tests/signals/simple.c +++ b/legacy/eobj/src/tests/signals/simple.c @@ -1,8 +1,10 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eo.h" #include "simple.h" -#include "config.h" - EAPI Eo_Op SIMPLE_BASE_ID = 0; typedef struct diff --git a/legacy/eobj/src/tests/signals/simple.h b/legacy/eobj/src/tests/signals/simple.h index e54cf2aa8f..d1f63bdd06 100644 --- a/legacy/eobj/src/tests/signals/simple.h +++ b/legacy/eobj/src/tests/signals/simple.h @@ -1,8 +1,6 @@ #ifndef SIMPLE_H #define SIMPLE_H -#include "Eo.h" - extern EAPI Eo_Op SIMPLE_BASE_ID; enum {