summaryrefslogtreecommitdiff
path: root/legacy/eobj/src/tests/mixin
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-09-07 21:56:44 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-09-07 21:56:44 +0000
commit312066e91b9064f529f297d8d34e1924f92f6656 (patch)
tree84a85f7d46d92c6627eee247c85934554d56307c /legacy/eobj/src/tests/mixin
parentaf81f7b38c158a850fc03f4236aff0f9ae8471a3 (diff)
Eo: add autotools tests. I have plenty of errors with the unit tests on Windows
SVN revision: 76323
Diffstat (limited to 'legacy/eobj/src/tests/mixin')
-rw-r--r--legacy/eobj/src/tests/mixin/Makefile.am27
-rw-r--r--legacy/eobj/src/tests/mixin/inherit.c8
-rw-r--r--legacy/eobj/src/tests/mixin/inherit.h4
-rw-r--r--legacy/eobj/src/tests/mixin/main.c4
-rw-r--r--legacy/eobj/src/tests/mixin/mixin.c6
-rw-r--r--legacy/eobj/src/tests/mixin/mixin.h2
-rw-r--r--legacy/eobj/src/tests/mixin/mixin2.c6
-rw-r--r--legacy/eobj/src/tests/mixin/mixin2.h2
-rw-r--r--legacy/eobj/src/tests/mixin/mixin3.c6
-rw-r--r--legacy/eobj/src/tests/mixin/mixin3.h2
-rw-r--r--legacy/eobj/src/tests/mixin/mixin4.c6
-rw-r--r--legacy/eobj/src/tests/mixin/mixin4.h2
-rw-r--r--legacy/eobj/src/tests/mixin/simple.c6
-rw-r--r--legacy/eobj/src/tests/mixin/simple.h2
14 files changed, 57 insertions, 26 deletions
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 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I$(top_srcdir)/src/lib \
6-I$(top_builddir)/src/lib \
7@EFL_EO_BUILD@ \
8@EO_CFLAGS@
9
10noinst_PROGRAMS = mixin
11
12mixin_SOURCES = \
13inherit.c \
14inherit.h \
15main.c \
16mixin.c \
17mixin.h \
18mixin2.c \
19mixin2.h \
20mixin3.c \
21mixin3.h \
22mixin4.c \
23mixin4.h \
24simple.c \
25simple.h
26
27mixin_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,8 +1,12 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
1#include "Eo.h" 5#include "Eo.h"
6#include "simple.h"
7#include "mixin4.h"
2#include "inherit.h" 8#include "inherit.h"
3 9
4#include "config.h"
5
6#define MY_CLASS INHERIT_CLASS 10#define MY_CLASS INHERIT_CLASS
7 11
8static void 12static void
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 @@
1#ifndef INHERIT_H 1#ifndef INHERIT_H
2#define INHERIT_H 2#define INHERIT_H
3 3
4#include "Eo.h"
5#include "simple.h"
6#include "mixin4.h"
7
8#define INHERIT_CLASS inherit_class_get() 4#define INHERIT_CLASS inherit_class_get()
9const Eo_Class *inherit_class_get(void); 5const Eo_Class *inherit_class_get(void);
10 6
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 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
1#include "Eo.h" 5#include "Eo.h"
2#include "simple.h" 6#include "simple.h"
3#include "inherit.h" 7#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 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
1#include "Eo.h" 5#include "Eo.h"
2#include "mixin.h" 6#include "mixin.h"
3#include "simple.h" 7#include "simple.h"
4 8
5#include "config.h"
6
7EAPI Eo_Op MIXIN_BASE_ID = 0; 9EAPI Eo_Op MIXIN_BASE_ID = 0;
8 10
9#define MY_CLASS MIXIN_CLASS 11#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 @@
1#ifndef MIXIN_H 1#ifndef MIXIN_H
2#define MIXIN_H 2#define MIXIN_H
3 3
4#include "Eo.h"
5
6extern EAPI Eo_Op MIXIN_BASE_ID; 4extern EAPI Eo_Op MIXIN_BASE_ID;
7 5
8enum { 6enum {
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 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
1#include "Eo.h" 5#include "Eo.h"
2#include "mixin.h" 6#include "mixin.h"
3#include "mixin2.h" 7#include "mixin2.h"
4#include "simple.h" 8#include "simple.h"
5 9
6#include "config.h"
7
8#include "../eunit_tests.h" 10#include "../eunit_tests.h"
9 11
10#define MY_CLASS MIXIN2_CLASS 12#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 @@
1#ifndef MIXIN2_H 1#ifndef MIXIN2_H
2#define MIXIN2_H 2#define MIXIN2_H
3 3
4#include "Eo.h"
5
6typedef struct 4typedef struct
7{ 5{
8 int count; 6 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 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
1#include "Eo.h" 5#include "Eo.h"
2#include "mixin.h" 6#include "mixin.h"
3#include "mixin3.h" 7#include "mixin3.h"
4#include "simple.h" 8#include "simple.h"
5 9
6#include "config.h"
7
8#include "../eunit_tests.h" 10#include "../eunit_tests.h"
9 11
10#define MY_CLASS MIXIN3_CLASS 12#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 @@
1#ifndef MIXIN3_H 1#ifndef MIXIN3_H
2#define MIXIN3_H 2#define MIXIN3_H
3 3
4#include "Eo.h"
5
6typedef struct 4typedef struct
7{ 5{
8 int count; 6 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 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
1#include "Eo.h" 5#include "Eo.h"
2#include "mixin.h" 6#include "mixin.h"
3#include "mixin4.h" 7#include "mixin4.h"
4#include "simple.h" 8#include "simple.h"
5 9
6#include "config.h"
7
8#include "../eunit_tests.h" 10#include "../eunit_tests.h"
9 11
10#define MY_CLASS MIXIN4_CLASS 12#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 @@
1#ifndef MIXIN4_H 1#ifndef MIXIN4_H
2#define MIXIN4_H 2#define MIXIN4_H
3 3
4#include "Eo.h"
5
6#define MIXIN4_CLASS mixin4_class_get() 4#define MIXIN4_CLASS mixin4_class_get()
7const Eo_Class *mixin4_class_get(void); 5const Eo_Class *mixin4_class_get(void);
8 6
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 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
1#include "Eo.h" 5#include "Eo.h"
2#include "mixin.h" 6#include "mixin.h"
3#include "mixin2.h" 7#include "mixin2.h"
4#include "mixin3.h" 8#include "mixin3.h"
5#include "simple.h" 9#include "simple.h"
6 10
7#include "config.h"
8
9EAPI Eo_Op SIMPLE_BASE_ID = 0; 11EAPI Eo_Op SIMPLE_BASE_ID = 0;
10 12
11typedef struct 13typedef 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 @@
1#ifndef SIMPLE_H 1#ifndef SIMPLE_H
2#define SIMPLE_H 2#define SIMPLE_H
3 3
4#include "Eo.h"
5
6extern EAPI Eo_Op SIMPLE_BASE_ID; 4extern EAPI Eo_Op SIMPLE_BASE_ID;
7 5
8enum { 6enum {