summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-08-12 15:26:29 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-10-02 17:22:50 +0200
commit46d464e5bfc10398461a33a2256c1c58d509dd1a (patch)
tree8c1a9272c05f14033a4430bc122632461bd73608 /src/tests/eo
parent70ecf1056bb4be5a68b63044f938ccc2fe0a58c0 (diff)
here comes meson
a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/access/meson.build20
-rw-r--r--src/tests/eo/children/meson.build17
-rw-r--r--src/tests/eo/composite_objects/meson.build19
-rw-r--r--src/tests/eo/constructors/meson.build31
-rw-r--r--src/tests/eo/function_overrides/meson.build23
-rw-r--r--src/tests/eo/interface/meson.build21
-rw-r--r--src/tests/eo/meson.build9
-rw-r--r--src/tests/eo/mixin/meson.build27
-rw-r--r--src/tests/eo/signals/meson.build17
-rw-r--r--src/tests/eo/suite/meson.build33
10 files changed, 217 insertions, 0 deletions
diff --git a/src/tests/eo/access/meson.build b/src/tests/eo/access/meson.build
new file mode 100644
index 0000000000..79bc65f982
--- /dev/null
+++ b/src/tests/eo/access/meson.build
@@ -0,0 +1,20 @@
1eo_access_src = [
2 'access_inherit.c',
3 'access_inherit.h',
4 'access_main.c',
5 'access_simple.c',
6 'access_simple.h',
7 'access_simple_protected.h'
8]
9
10eo_access = executable('eo_access',
11 eo_access_src,
12 dependencies: [eo],
13 c_args : [
14 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
15 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
16)
17
18test('eo-access', eo_access,
19 env : test_env
20)
diff --git a/src/tests/eo/children/meson.build b/src/tests/eo/children/meson.build
new file mode 100644
index 0000000000..e740b5cc9b
--- /dev/null
+++ b/src/tests/eo/children/meson.build
@@ -0,0 +1,17 @@
1eo_children_src = [
2 'children_main.c',
3 'children_simple.c',
4 'children_simple.h'
5]
6
7eo_children = executable('eo_children',
8 eo_children_src,
9 dependencies: [eo],
10 c_args : [
11 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
12 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
13)
14
15test('eo-children', eo_children,
16 env : test_env
17)
diff --git a/src/tests/eo/composite_objects/meson.build b/src/tests/eo/composite_objects/meson.build
new file mode 100644
index 0000000000..578d4fabbc
--- /dev/null
+++ b/src/tests/eo/composite_objects/meson.build
@@ -0,0 +1,19 @@
1eo_composite_objects_src = [
2 'composite_objects_comp.c',
3 'composite_objects_comp.h',
4 'composite_objects_main.c',
5 'composite_objects_simple.c',
6 'composite_objects_simple.h'
7]
8
9eo_composite_objects = executable('eo_composite_objects',
10 eo_composite_objects_src,
11 dependencies: [eo],
12 c_args : [
13 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
14 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
15)
16
17test('eo-composite-objects', eo_composite_objects,
18 env : test_env
19)
diff --git a/src/tests/eo/constructors/meson.build b/src/tests/eo/constructors/meson.build
new file mode 100644
index 0000000000..612c7be3ec
--- /dev/null
+++ b/src/tests/eo/constructors/meson.build
@@ -0,0 +1,31 @@
1eo_constructors_src = [
2 'constructors_main.c',
3 'constructors_mixin.c',
4 'constructors_mixin.h',
5 'constructors_simple.c',
6 'constructors_simple.h',
7 'constructors_simple2.c',
8 'constructors_simple2.h',
9 'constructors_simple3.c',
10 'constructors_simple3.h',
11 'constructors_simple4.c',
12 'constructors_simple4.h',
13 'constructors_simple5.c',
14 'constructors_simple5.h',
15 'constructors_simple6.c',
16 'constructors_simple6.h',
17 'constructors_simple7.c',
18 'constructors_simple7.h'
19]
20
21eo_constructors = executable('eo_constructors',
22 eo_constructors_src,
23 dependencies: [eo],
24 c_args : [
25 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
26 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
27)
28
29test('eo-constructors', eo_constructors,
30 env : test_env
31)
diff --git a/src/tests/eo/function_overrides/meson.build b/src/tests/eo/function_overrides/meson.build
new file mode 100644
index 0000000000..fb2b8dcadb
--- /dev/null
+++ b/src/tests/eo/function_overrides/meson.build
@@ -0,0 +1,23 @@
1eo_function_overrides_src = [
2 'function_overrides_inherit.c',
3 'function_overrides_inherit.h',
4 'function_overrides_inherit2.c',
5 'function_overrides_inherit2.h',
6 'function_overrides_inherit3.c',
7 'function_overrides_inherit3.h',
8 'function_overrides_main.c',
9 'function_overrides_simple.c',
10 'function_overrides_simple.h'
11]
12
13eo_function_overrides = executable('eo_function_overrides',
14 eo_function_overrides_src,
15 dependencies: [eo],
16 c_args : [
17 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
18 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
19)
20
21test('eo-function-overrides', eo_interface,
22 env : test_env
23)
diff --git a/src/tests/eo/interface/meson.build b/src/tests/eo/interface/meson.build
new file mode 100644
index 0000000000..77f725734b
--- /dev/null
+++ b/src/tests/eo/interface/meson.build
@@ -0,0 +1,21 @@
1eo_interface_src = [
2 'interface_interface.c',
3 'interface_interface.h',
4 'interface_interface2.c',
5 'interface_interface2.h',
6 'interface_main.c',
7 'interface_simple.c',
8 'interface_simple.h'
9]
10
11eo_interface = executable('eo_interface',
12 eo_interface_src,
13 dependencies: [eo],
14 c_args : [
15 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
16 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
17)
18
19test('eo-interface', eo_interface,
20 env : test_env
21)
diff --git a/src/tests/eo/meson.build b/src/tests/eo/meson.build
new file mode 100644
index 0000000000..da4a899da7
--- /dev/null
+++ b/src/tests/eo/meson.build
@@ -0,0 +1,9 @@
1subdir('suite')
2subdir('signals')
3subdir('mixin')
4subdir('interface')
5subdir('function_overrides')
6subdir('constructors')
7subdir('composite_objects')
8subdir('children')
9subdir('access')
diff --git a/src/tests/eo/mixin/meson.build b/src/tests/eo/mixin/meson.build
new file mode 100644
index 0000000000..5ae83a9672
--- /dev/null
+++ b/src/tests/eo/mixin/meson.build
@@ -0,0 +1,27 @@
1eo_mixin_src = [
2 'mixin_inherit.c',
3 'mixin_inherit.h',
4 'mixin_main.c',
5 'mixin_mixin.c',
6 'mixin_mixin.h',
7 'mixin_mixin2.c',
8 'mixin_mixin2.h',
9 'mixin_mixin3.c',
10 'mixin_mixin3.h',
11 'mixin_mixin4.c',
12 'mixin_mixin4.h',
13 'mixin_simple.c',
14 'mixin_simple.h'
15]
16
17eo_mixin = executable('eo_mixin',
18 eo_mixin_src,
19 dependencies: [eo],
20 c_args : [
21 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
22 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
23)
24
25test('eo-mixins', eo_mixin,
26 env : test_env
27)
diff --git a/src/tests/eo/signals/meson.build b/src/tests/eo/signals/meson.build
new file mode 100644
index 0000000000..37006ac3fc
--- /dev/null
+++ b/src/tests/eo/signals/meson.build
@@ -0,0 +1,17 @@
1eo_signals_src = [
2 'signals_main.c',
3 'signals_simple.c',
4 'signals_simple.h'
5]
6
7eo_signals = executable('eo_signals',
8 eo_signals_src,
9 dependencies: [eo],
10 c_args : [
11 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
12 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
13)
14
15test('eo-signals', eo_signals,
16 env : test_env
17)
diff --git a/src/tests/eo/suite/meson.build b/src/tests/eo/suite/meson.build
new file mode 100644
index 0000000000..6e7f4ba6f7
--- /dev/null
+++ b/src/tests/eo/suite/meson.build
@@ -0,0 +1,33 @@
1eo_suite_src = [
2 'eo_test_class_simple.c',
3 'eo_test_class_simple.h',
4 'eo_test_class_singleton.c',
5 'eo_test_class_singleton.h',
6 'eo_test_domain.c',
7 'eo_test_domain.h',
8 'eo_suite.c',
9 'eo_suite.h',
10 'eo_error_msgs.h',
11 'eo_error_msgs.c',
12 'eo_test_class_errors.c',
13 'eo_test_class_behaviour_errors.c',
14 'eo_test_call_errors.c',
15 'eo_test_general.c',
16 'eo_test_value.c',
17 'eo_test_event.c',
18 'eo_test_threaded_calls.c',
19 'eo_test_init.c',
20 'eo_test_lifecycle.c'
21]
22
23eo_suite = executable('eo_suite',
24 eo_suite_src,
25 dependencies: [eo, check, valgrind],
26 c_args : [
27 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
28 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
29)
30
31test('eo-suite', eo_suite,
32 env : test_env
33)