\r
if EFL_ENABLE_TESTS\r
\r
+\r
lcov-reset:\r
@rm -rf $(top_builddir)/coverage\r
@find $(top_builddir) -name "*.gcda" -delete\r
@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
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
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
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
[_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
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])
\r
MAINTAINERCLEANFILES = Makefile.in\r
\r
-SUBDIRS = lib benchmarks examples\r
+SUBDIRS = lib benchmarks examples tests\r
\r
.PHONY: benchmark\r
\r
--- /dev/null
+
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = access composite_objects constructors eo_suite function_overrides interface mixin signals
+
+EXTRA_DIST = eunit_tests.h
--- /dev/null
+
+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@
+#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
#ifndef INHERIT_H
#define INHERIT_H
-#include "Eo.h"
-
extern EAPI Eo_Op INHERIT_BASE_ID;
enum {
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "simple.h"
#include "inherit.h"
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "simple.h"
#include "simple_protected.h"
#ifndef SIMPLE_H
#define SIMPLE_H
-#include "Eo.h"
-
extern EAPI Eo_Op SIMPLE_BASE_ID;
enum {
#ifndef SIMPLE_PROTECTED_H
#define SIMPLE_PROTECTED_H
-#include "simple.h"
-
typedef struct
{
Simple_Public_Data public;
--- /dev/null
+
+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@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "simple.h"
-
#include "comp.h"
-#include "config.h"
#include "../eunit_tests.h"
#ifndef COMP_H
#define COMP_H
-#include "Eo.h"
-
#define COMP_CLASS comp_class_get()
const Eo_Class *comp_class_get(void);
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "simple.h"
#include "comp.h"
+#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 =
#ifndef SIMPLE_H
#define SIMPLE_H
-#include "Eo.h"
-
extern EAPI Eo_Op SIMPLE_BASE_ID;
enum {
--- /dev/null
+
+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@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "simple.h"
#include "simple2.h"
+#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
#ifndef MIXIN_H
#define MIXIN_H
-#include "Eo.h"
-
extern EAPI Eo_Op MIXIN_BASE_ID;
enum {
+#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
#ifndef SIMPLE_H
#define SIMPLE_H
-#include "Eo.h"
-
extern EAPI Eo_Op SIMPLE_BASE_ID;
enum {
+#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
#ifndef SIMPLE2_H
#define SIMPLE2_H
-#include "Eo.h"
-
#define SIMPLE2_CLASS simple2_class_get()
const Eo_Class *simple2_class_get(void);
+#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
#ifndef SIMPLE3_H
#define SIMPLE3_H
-#include "Eo.h"
-
#define SIMPLE3_CLASS simple3_class_get()
const Eo_Class *simple3_class_get(void);
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "mixin.h"
#include "simple.h"
#ifndef SIMPLE4_H
#define SIMPLE4_H
-#include "Eo.h"
-
#define SIMPLE4_CLASS simple4_class_get()
const Eo_Class *simple4_class_get(void);
+#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
#ifndef SIMPLE5_H
#define SIMPLE5_H
-#include "Eo.h"
-
#define SIMPLE5_CLASS simple5_class_get()
const Eo_Class *simple5_class_get(void);
+#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
#ifndef SIMPLE6_H
#define SIMPLE6_H
-#include "Eo.h"
-
#define SIMPLE6_CLASS simple6_class_get()
const Eo_Class *simple6_class_get(void);
+#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
#ifndef SIMPLE7_H
#define SIMPLE7_H
-#include "Eo.h"
-
#define SIMPLE7_CLASS simple7_class_get()
const Eo_Class *simple7_class_get(void);
+#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;
#ifndef SIMPLE_H
#define SIMPLE_H
-#include "Eo.h"
-
extern EAPI Eo_Op SIMPLE_BASE_ID;
enum {
#include <stdio.h>
#include "Eo.h"
-
#include "eo_suite.h"
typedef struct _Eo_Test_Case Eo_Test_Case;
-#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)
#include <stdio.h>
-#include "eo_suite.h"
#include "Eo.h"
-
+#include "eo_suite.h"
#include "class_simple.h"
START_TEST(eo_simple)
#include <stdio.h>
-#include "eo_suite.h"
#include "Eo.h"
+#include "eo_suite.h"
START_TEST(eo_simple)
{
--- /dev/null
+
+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@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "simple.h"
-
#include "inherit.h"
#define MY_CLASS INHERIT_CLASS
#ifndef INHERIT_H
#define INHERIT_H
-#include "Eo.h"
-
#define INHERIT_CLASS inherit_class_get()
const Eo_Class *inherit_class_get(void);
+#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;
#ifndef INHERIT2_H
#define INHERIT2_H
-#include "Eo.h"
-
extern EAPI Eo_Op INHERIT2_BASE_ID;
enum {
+#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
#ifndef INHERIT3_H
#define INHERIT3_H
-#include "Eo.h"
-
#define INHERIT3_CLASS inherit3_class_get()
const Eo_Class *inherit3_class_get(void);
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "simple.h"
#include "inherit.h"
+#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;
#ifndef SIMPLE_H
#define SIMPLE_H
-#include "Eo.h"
-
extern EAPI Eo_Op SIMPLE_BASE_ID;
enum {
--- /dev/null
+
+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@
+#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
#ifndef INTERFACE_H
#define INTERFACE_H
-#include "Eo.h"
-
extern EAPI Eo_Op INTERFACE_BASE_ID;
enum {
+#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
#ifndef INTERFACE2_H
#define INTERFACE2_H
-#include "Eo.h"
-
extern EAPI Eo_Op INTERFACE2_BASE_ID;
enum {
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "simple.h"
#include "interface.h"
+#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
#ifndef SIMPLE_H
#define SIMPLE_H
-#include "Eo.h"
-
extern EAPI Eo_Op SIMPLE_BASE_ID;
enum {
--- /dev/null
+
+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@
+#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
#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);
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "simple.h"
#include "inherit.h"
+#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
#ifndef MIXIN_H
#define MIXIN_H
-#include "Eo.h"
-
extern EAPI Eo_Op MIXIN_BASE_ID;
enum {
+#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
#ifndef MIXIN2_H
#define MIXIN2_H
-#include "Eo.h"
-
typedef struct
{
int count;
+#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
#ifndef MIXIN3_H
#define MIXIN3_H
-#include "Eo.h"
-
typedef struct
{
int count;
+#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
#ifndef MIXIN4_H
#define MIXIN4_H
-#include "Eo.h"
-
#define MIXIN4_CLASS mixin4_class_get()
const Eo_Class *mixin4_class_get(void);
+#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
#ifndef SIMPLE_H
#define SIMPLE_H
-#include "Eo.h"
-
extern EAPI Eo_Op SIMPLE_BASE_ID;
enum {
--- /dev/null
+
+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@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Eo.h"
#include "simple.h"
+#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
#ifndef SIMPLE_H
#define SIMPLE_H
-#include "Eo.h"
-
extern EAPI Eo_Op SIMPLE_BASE_ID;
enum {