Eo: add autotools tests. I have plenty of errors with the unit tests on Windows
authorVincent Torri <vincent.torri@gmail.com>
Fri, 7 Sep 2012 21:56:44 +0000 (21:56 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Fri, 7 Sep 2012 21:56:44 +0000 (21:56 +0000)
SVN revision: 76323

78 files changed:
legacy/eobj/Makefile.am
legacy/eobj/configure.ac
legacy/eobj/m4/efl_tests.m4
legacy/eobj/src/Makefile.am
legacy/eobj/src/tests/Makefile.am [new file with mode: 0644]
legacy/eobj/src/tests/access/Makefile.am [new file with mode: 0644]
legacy/eobj/src/tests/access/inherit.c
legacy/eobj/src/tests/access/inherit.h
legacy/eobj/src/tests/access/main.c
legacy/eobj/src/tests/access/simple.c
legacy/eobj/src/tests/access/simple.h
legacy/eobj/src/tests/access/simple_protected.h
legacy/eobj/src/tests/composite_objects/Makefile.am [new file with mode: 0644]
legacy/eobj/src/tests/composite_objects/comp.c
legacy/eobj/src/tests/composite_objects/comp.h
legacy/eobj/src/tests/composite_objects/main.c
legacy/eobj/src/tests/composite_objects/simple.c
legacy/eobj/src/tests/composite_objects/simple.h
legacy/eobj/src/tests/constructors/Makefile.am [new file with mode: 0644]
legacy/eobj/src/tests/constructors/main.c
legacy/eobj/src/tests/constructors/mixin.c
legacy/eobj/src/tests/constructors/mixin.h
legacy/eobj/src/tests/constructors/simple.c
legacy/eobj/src/tests/constructors/simple.h
legacy/eobj/src/tests/constructors/simple2.c
legacy/eobj/src/tests/constructors/simple2.h
legacy/eobj/src/tests/constructors/simple3.c
legacy/eobj/src/tests/constructors/simple3.h
legacy/eobj/src/tests/constructors/simple4.c
legacy/eobj/src/tests/constructors/simple4.h
legacy/eobj/src/tests/constructors/simple5.c
legacy/eobj/src/tests/constructors/simple5.h
legacy/eobj/src/tests/constructors/simple6.c
legacy/eobj/src/tests/constructors/simple6.h
legacy/eobj/src/tests/constructors/simple7.c
legacy/eobj/src/tests/constructors/simple7.h
legacy/eobj/src/tests/eo_suite/class_simple.c
legacy/eobj/src/tests/eo_suite/class_simple.h
legacy/eobj/src/tests/eo_suite/eo_suite.c
legacy/eobj/src/tests/eo_suite/eo_test_class_errors.c
legacy/eobj/src/tests/eo_suite/eo_test_general.c
legacy/eobj/src/tests/eo_suite/eo_test_init.c
legacy/eobj/src/tests/function_overrides/Makefile.am [new file with mode: 0644]
legacy/eobj/src/tests/function_overrides/inherit.c
legacy/eobj/src/tests/function_overrides/inherit.h
legacy/eobj/src/tests/function_overrides/inherit2.c
legacy/eobj/src/tests/function_overrides/inherit2.h
legacy/eobj/src/tests/function_overrides/inherit3.c
legacy/eobj/src/tests/function_overrides/inherit3.h
legacy/eobj/src/tests/function_overrides/main.c
legacy/eobj/src/tests/function_overrides/simple.c
legacy/eobj/src/tests/function_overrides/simple.h
legacy/eobj/src/tests/interface/Makefile.am [new file with mode: 0644]
legacy/eobj/src/tests/interface/interface.c
legacy/eobj/src/tests/interface/interface.h
legacy/eobj/src/tests/interface/interface2.c
legacy/eobj/src/tests/interface/interface2.h
legacy/eobj/src/tests/interface/main.c
legacy/eobj/src/tests/interface/simple.c
legacy/eobj/src/tests/interface/simple.h
legacy/eobj/src/tests/mixin/Makefile.am [new file with mode: 0644]
legacy/eobj/src/tests/mixin/inherit.c
legacy/eobj/src/tests/mixin/inherit.h
legacy/eobj/src/tests/mixin/main.c
legacy/eobj/src/tests/mixin/mixin.c
legacy/eobj/src/tests/mixin/mixin.h
legacy/eobj/src/tests/mixin/mixin2.c
legacy/eobj/src/tests/mixin/mixin2.h
legacy/eobj/src/tests/mixin/mixin3.c
legacy/eobj/src/tests/mixin/mixin3.h
legacy/eobj/src/tests/mixin/mixin4.c
legacy/eobj/src/tests/mixin/mixin4.h
legacy/eobj/src/tests/mixin/simple.c
legacy/eobj/src/tests/mixin/simple.h
legacy/eobj/src/tests/signals/Makefile.am [new file with mode: 0644]
legacy/eobj/src/tests/signals/main.c
legacy/eobj/src/tests/signals/simple.c
legacy/eobj/src/tests/signals/simple.h

index b0afe91..8455c91 100644 (file)
@@ -52,6 +52,7 @@ doc:
 \r
 if EFL_ENABLE_TESTS\r
 \r
+\r
 lcov-reset:\r
        @rm -rf $(top_builddir)/coverage\r
        @find $(top_builddir) -name "*.gcda" -delete\r
@@ -65,9 +66,13 @@ lcov-report:
        @echo "Coverage Report at $(top_builddir)/coverage/html"\r
 \r
 check-local:\r
+if EFL_ENABLE_COVERAGE\r
        @$(MAKE) lcov-reset\r
-       @./src/tests/eina_suite\r
+endif\r
+       @./src/tests/eo_suite/eo_suite\r
+if EFL_ENABLE_COVERAGE\r
        @$(MAKE) lcov-report\r
+endif\r
 \r
 else\r
 \r
@@ -87,7 +92,7 @@ if EFL_ENABLE_BENCHMARK
 benchmark:\r
        @cd src && $(MAKE) benchmark\r
        @mkdir result || true\r
-       @cd result && ../src/tests/eina_bench `date +%F_%s`\r
+       @cd result && ../src/tests/eo_bench `date +%F_%s`\r
 \r
 else\r
 \r
index 1c463cd..0bdd0c8 100644 (file)
@@ -158,6 +158,15 @@ src/examples/eo_isa/Makefile
 src/examples/evas/Makefile\r
 src/examples/simple/Makefile\r
 src/lib/Makefile\r
+src/tests/Makefile\r
+src/tests/access/Makefile\r
+src/tests/composite_objects/Makefile\r
+src/tests/constructors/Makefile\r
+src/tests/eo_suite/Makefile\r
+src/tests/function_overrides/Makefile\r
+src/tests/interface/Makefile\r
+src/tests/mixin/Makefile\r
+src/tests/signals/Makefile\r
 ])\r
 \r
 AC_OUTPUT\r
@@ -176,7 +185,7 @@ echo
 echo "Configuration Options Summary:"\r
 echo\r
 echo "  Documentation........: ${build_doc}"\r
-echo "  Tests................: ${enable_tests} (Coverage: ${efl_enable_coverage})"\r
+echo "  Unit Tests...........: ${enable_tests} (Coverage: ${efl_enable_coverage})"\r
 echo "  Examples.............: ${enable_build_examples}"\r
 echo "  Benchmark............: ${enable_benchmark}"\r
 echo\r
index d8554e1..4f87559 100644 (file)
@@ -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])
 
index cb86447..849ab41 100644 (file)
@@ -1,7 +1,7 @@
 \r
 MAINTAINERCLEANFILES = Makefile.in\r
 \r
-SUBDIRS = lib benchmarks examples\r
+SUBDIRS = lib benchmarks examples tests\r
 \r
 .PHONY: benchmark\r
 \r
diff --git a/legacy/eobj/src/tests/Makefile.am b/legacy/eobj/src/tests/Makefile.am
new file mode 100644 (file)
index 0000000..0afd2fa
--- /dev/null
@@ -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 (file)
index 0000000..a6d1475
--- /dev/null
@@ -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@
index 8f3fe4b..2c7d4f0 100644 (file)
@@ -1,11 +1,13 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index 26fa9d9..f701dae 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef INHERIT_H
 #define INHERIT_H
 
-#include "Eo.h"
-
 extern EAPI Eo_Op INHERIT_BASE_ID;
 
 enum {
index 0cd352e..c211698 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 #include "inherit.h"
index 64484be..ffa66cc 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 #include "simple_protected.h"
index 902d89c..11624b7 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef SIMPLE_H
 #define SIMPLE_H
 
-#include "Eo.h"
-
 extern EAPI Eo_Op SIMPLE_BASE_ID;
 
 enum {
index ff2fb7e..3cabcd8 100644 (file)
@@ -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 (file)
index 0000000..0b37eab
--- /dev/null
@@ -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@
index 2c27576..f0e5964 100644 (file)
@@ -1,8 +1,10 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
-
 #include "comp.h"
-#include "config.h"
 
 #include "../eunit_tests.h"
 
index 87f61f7..95001b7 100644 (file)
@@ -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);
 
index 453f6d2..ae5dc5d 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 #include "comp.h"
index 2bd3259..070b837 100644 (file)
@@ -1,8 +1,10 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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 =
index 5d49b59..32a6246 100644 (file)
@@ -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 (file)
index 0000000..0d37c60
--- /dev/null
@@ -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@
index 04d8888..21bf4b4 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 #include "simple2.h"
index 8590329..9dc1c30 100644 (file)
@@ -1,9 +1,11 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index 04f587e..9998b27 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef MIXIN_H
 #define MIXIN_H
 
-#include "Eo.h"
-
 extern EAPI Eo_Op MIXIN_BASE_ID;
 
 enum {
index 5712534..f56828c 100644 (file)
@@ -1,9 +1,11 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "mixin.h"
 #include "simple.h"
 
-#include "config.h"
-
 EAPI Eo_Op SIMPLE_BASE_ID = 0;
 
 typedef struct
index ac3e287..7342d34 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef SIMPLE_H
 #define SIMPLE_H
 
-#include "Eo.h"
-
 extern EAPI Eo_Op SIMPLE_BASE_ID;
 
 enum {
index 65c9252..86c1aea 100644 (file)
@@ -1,9 +1,11 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "mixin.h"
 #include "simple2.h"
 
-#include "config.h"
-
 #define MY_CLASS SIMPLE2_CLASS
 
 static void
index 0857c45..e6549f3 100644 (file)
@@ -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);
 
index f199cc6..f671b4b 100644 (file)
@@ -1,9 +1,11 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "mixin.h"
 #include "simple3.h"
 
-#include "config.h"
-
 #define MY_CLASS SIMPLE3_CLASS
 
 static void
index dbb3841..e27f8f1 100644 (file)
@@ -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);
 
index d2a3dbf..95cfa73 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "mixin.h"
 #include "simple.h"
index 3e6d1a8..fe8e862 100644 (file)
@@ -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);
 
index 5fc8378..9ff6d49 100644 (file)
@@ -1,9 +1,11 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "mixin.h"
 #include "simple5.h"
 
-#include "config.h"
-
 #define MY_CLASS SIMPLE5_CLASS
 
 static void
index 8ae6215..9b262d4 100644 (file)
@@ -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);
 
index 2749a8a..7c224d7 100644 (file)
@@ -1,9 +1,11 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "mixin.h"
 #include "simple6.h"
 
-#include "config.h"
-
 #define MY_CLASS SIMPLE6_CLASS
 
 static void
index 32ee3cb..97e7b5e 100644 (file)
@@ -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);
 
index ba86e2b..42af6cf 100644 (file)
@@ -1,9 +1,12 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index 3710b62..a9a201e 100644 (file)
@@ -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);
 
index e0db709..bf60a9f 100644 (file)
@@ -1,8 +1,10 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "class_simple.h"
 
-#include "config.h"
-
 #define MY_CLASS SIMPLE_CLASS
 
 EAPI Eo_Op SIMPLE_BASE_ID = 0;
index eb58f6d..9980b7b 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef SIMPLE_H
 #define SIMPLE_H
 
-#include "Eo.h"
-
 extern EAPI Eo_Op SIMPLE_BASE_ID;
 
 enum {
index 69c3ad7..0494136 100644 (file)
@@ -6,7 +6,6 @@
 #include <stdio.h>
 
 #include "Eo.h"
-
 #include "eo_suite.h"
 
 typedef struct _Eo_Test_Case Eo_Test_Case;
index 269c87a..428359f 100644 (file)
@@ -1,10 +1,11 @@
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
 
 #include <stdio.h>
 
-#include "eo_suite.h"
 #include "Eo.h"
-
+#include "eo_suite.h"
 #include "class_simple.h"
 
 START_TEST(eo_incomplete_desc)
index b1151eb..0de71dc 100644 (file)
@@ -4,9 +4,8 @@
 
 #include <stdio.h>
 
-#include "eo_suite.h"
 #include "Eo.h"
-
+#include "eo_suite.h"
 #include "class_simple.h"
 
 START_TEST(eo_simple)
index 851b857..3bf4b49 100644 (file)
@@ -4,8 +4,8 @@
 
 #include <stdio.h>
 
-#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 (file)
index 0000000..90c9582
--- /dev/null
@@ -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@
index a3cd3c9..2b3ad48 100644 (file)
@@ -1,6 +1,9 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
-
 #include "inherit.h"
 
 #define MY_CLASS INHERIT_CLASS
index d72c73a..2f33647 100644 (file)
@@ -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);
 
index 6814a34..484b6d0 100644 (file)
@@ -1,11 +1,12 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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;
index 2bf7db9..2bc0b0d 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef INHERIT2_H
 #define INHERIT2_H
 
-#include "Eo.h"
-
 extern EAPI Eo_Op INHERIT2_BASE_ID;
 
 enum {
index e36ab77..66f31fe 100644 (file)
@@ -1,11 +1,12 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
-
 #include "inherit2.h"
 #include "inherit3.h"
 
-#include "config.h"
-
 #define MY_CLASS INHERIT3_CLASS
 
 static void
index 47d5d1c..73436ba 100644 (file)
@@ -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);
 
index af39c67..c45cfe5 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 #include "inherit.h"
index bc3692c..3781890 100644 (file)
@@ -1,7 +1,10 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 
-#include "config.h"
 #include "../eunit_tests.h"
 
 EAPI Eo_Op SIMPLE_BASE_ID = 0;
index a447d8c..3a620fa 100644 (file)
@@ -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 (file)
index 0000000..fa927fb
--- /dev/null
@@ -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@
index 16659d5..27a986b 100644 (file)
@@ -1,9 +1,11 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index 9a1c5fd..4e161b8 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef INTERFACE_H
 #define INTERFACE_H
 
-#include "Eo.h"
-
 extern EAPI Eo_Op INTERFACE_BASE_ID;
 
 enum {
index 2ccd832..74619db 100644 (file)
@@ -1,10 +1,12 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index 205b9b3..5aa91f4 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef INTERFACE2_H
 #define INTERFACE2_H
 
-#include "Eo.h"
-
 extern EAPI Eo_Op INTERFACE2_BASE_ID;
 
 enum {
index e83ced9..0abe495 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 #include "interface.h"
index c76315a..d19ecad 100644 (file)
@@ -1,10 +1,12 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index 61fa2f0..8df8131 100644 (file)
@@ -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 (file)
index 0000000..fd03491
--- /dev/null
@@ -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@
index 53c8826..f23ec41 100644 (file)
@@ -1,8 +1,12 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
+#include "simple.h"
+#include "mixin4.h"
 #include "inherit.h"
 
-#include "config.h"
-
 #define MY_CLASS INHERIT_CLASS
 
 static void
index b6d78fb..2f33647 100644 (file)
@@ -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);
 
index c69754d..bd0c289 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 #include "inherit.h"
index e9381e9..3be53ce 100644 (file)
@@ -1,9 +1,11 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index 2fa0c22..745e5c4 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef MIXIN_H
 #define MIXIN_H
 
-#include "Eo.h"
-
 extern EAPI Eo_Op MIXIN_BASE_ID;
 
 enum {
index c17dea6..a6eb82d 100644 (file)
@@ -1,10 +1,12 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index 324afaf..6e4b692 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef MIXIN2_H
 #define MIXIN2_H
 
-#include "Eo.h"
-
 typedef struct
 {
    int count;
index 94253b6..62468af 100644 (file)
@@ -1,10 +1,12 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index a05c2ec..36b32c0 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef MIXIN3_H
 #define MIXIN3_H
 
-#include "Eo.h"
-
 typedef struct
 {
    int count;
index 17944bc..1858841 100644 (file)
@@ -1,10 +1,12 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index e924332..7b520fa 100644 (file)
@@ -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);
 
index ae93708..d7b95f2 100644 (file)
@@ -1,11 +1,13 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index 61fa2f0..8df8131 100644 (file)
@@ -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 (file)
index 0000000..895e114
--- /dev/null
@@ -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@
index 26ac853..69e25b0 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 
index 08210ea..168761c 100644 (file)
@@ -1,8 +1,10 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 
-#include "config.h"
-
 EAPI Eo_Op SIMPLE_BASE_ID = 0;
 
 typedef struct
index e54cf2a..d1f63bd 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef SIMPLE_H
 #define SIMPLE_H
 
-#include "Eo.h"
-
 extern EAPI Eo_Op SIMPLE_BASE_ID;
 
 enum {