summaryrefslogtreecommitdiff
path: root/src/tests
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
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')
-rw-r--r--src/tests/ecore/meson.build56
-rw-r--r--src/tests/ecore_con/meson.build20
-rw-r--r--src/tests/ector/meson.build1
-rw-r--r--src/tests/ector/suite/meson.build18
-rw-r--r--src/tests/edje/data/meson.build37
-rw-r--r--src/tests/edje/meson.build26
-rw-r--r--src/tests/edje/tests/meson.build19
-rw-r--r--src/tests/eet/meson.build27
-rw-r--r--src/tests/eeze/meson.build20
-rw-r--r--src/tests/efl/meson.build18
-rw-r--r--src/tests/efreet/meson.build66
-rw-r--r--src/tests/eina/meson.build73
-rw-r--r--src/tests/eio/meson.build30
-rw-r--r--src/tests/eldbus/meson.build28
-rw-r--r--src/tests/elementary/meson.build122
-rw-r--r--src/tests/elput/meson.build17
-rw-r--r--src/tests/elua/meson.build31
-rw-r--r--src/tests/emile/meson.build18
-rw-r--r--src/tests/emotion/data/meson.build21
-rw-r--r--src/tests/emotion/meson.build21
-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
-rw-r--r--src/tests/eolian/meson.build38
-rw-r--r--src/tests/evas/meson.build31
-rw-r--r--src/tests/meson.build1
33 files changed, 956 insertions, 0 deletions
diff --git a/src/tests/ecore/meson.build b/src/tests/ecore/meson.build
new file mode 100644
index 0000000000..4c8351a8bc
--- /dev/null
+++ b/src/tests/ecore/meson.build
@@ -0,0 +1,56 @@
1
2ecore_suite_src = [
3 'ecore_suite.c',
4 'ecore_test_ecore.c',
5 'ecore_test_ecore_imf.c',
6 'ecore_test_idle.c',
7 'ecore_test_timer.c',
8 'ecore_test_ecore_evas.c',
9 'ecore_test_animator.c',
10 'ecore_test_ecore_thread_eina_thread_queue.c',
11 'ecore_test_ecore_input.c',
12 'ecore_test_ecore_file.c',
13 'ecore_test_job.c',
14 'ecore_test_args.c',
15 'ecore_test_pipe.c',
16 'ecore_suite.h'
17]
18
19ecore_suite_deps = [m]
20ecore_suite_deps += ecore
21ecore_suite_deps += ecore_file
22ecore_suite_deps += ecore_evas
23ecore_suite_deps += ecore_input
24ecore_suite_deps += ecore_imf
25
26if get_option('audio')
27 ecore_suite_deps += ecore_audio
28 ecore_suite_src += 'ecore_test_ecore_audio.c'
29endif
30
31if get_option('fb')
32 ecore_suite_deps += ecore_fb
33 ecore_suite_src += 'ecore_test_ecore_fb.c'
34endif
35
36if get_option('drm')
37 ecore_suite_deps += ecore_drm2
38endif
39
40if get_option('x11')
41 ecore_suite_src += 'ecore_test_ecore_x.c'
42 ecore_suite_deps += ecore_x
43endif
44
45ecore_suite = executable('ecore_suite',
46 ecore_suite_src,
47 dependencies: [ecore_suite_deps, check],
48 c_args : [
49 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
50 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
51)
52
53test('ecore-suite', ecore_suite,
54 timeout : 10*60,
55 env : test_env
56)
diff --git a/src/tests/ecore_con/meson.build b/src/tests/ecore_con/meson.build
new file mode 100644
index 0000000000..0b8bd78909
--- /dev/null
+++ b/src/tests/ecore_con/meson.build
@@ -0,0 +1,20 @@
1ecore_con_suite_src = [
2 'ecore_con_suite.c',
3 'ecore_con_test_ecore_con.c',
4 'ecore_con_test_ecore_con_url.c',
5 'ecore_con_test_ecore_con_eet.c',
6 'ecore_con_test_efl_net_ip_address.c',
7 'ecore_con_suite.h'
8]
9
10ecore_con_suite = executable('ecore_con_suite',
11 ecore_con_suite_src,
12 dependencies: [ecore_con, eet, ecore, check],
13 c_args : [
14 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
15 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
16)
17
18test('ecore_con-suite', ecore_con_suite,
19 env : test_env
20)
diff --git a/src/tests/ector/meson.build b/src/tests/ector/meson.build
new file mode 100644
index 0000000000..3bc3d6ef47
--- /dev/null
+++ b/src/tests/ector/meson.build
@@ -0,0 +1 @@
subdir('suite') \ No newline at end of file
diff --git a/src/tests/ector/suite/meson.build b/src/tests/ector/suite/meson.build
new file mode 100644
index 0000000000..23335695d9
--- /dev/null
+++ b/src/tests/ector/suite/meson.build
@@ -0,0 +1,18 @@
1ector_suite_src = [
2 'ector_suite.c',
3 'ector_suite.h',
4 'ector_test_init.c',
5]
6
7ector_suite = executable('ector_suite',
8 ector_suite_src,
9 include_directories : include_directories('..'),
10 dependencies: [eo, ector, check],
11 c_args : [
12 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
13 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
14)
15
16test('ector-suite', ector_suite,
17 env : test_env
18)
diff --git a/src/tests/edje/data/meson.build b/src/tests/edje/data/meson.build
new file mode 100644
index 0000000000..f9494ca1e7
--- /dev/null
+++ b/src/tests/edje/data/meson.build
@@ -0,0 +1,37 @@
1edc_files = [
2 'complex_layout.edc',
3 'test_box.edc',
4 'test_color_class.edc',
5 'test_combine_keywords.edc',
6 'test_filters.edc',
7 'test_layout.edc',
8 'test_masking.edc',
9 'test_messages.edc',
10 'test_parens.edc',
11 'test_signal_callback_del_full.edc',
12 'test_signals.edc',
13 'test_size_class.edc',
14 'test_snapshot.edc',
15 'test_swallows.edc',
16 'test_table.edc',
17 'test_text_cursor.edc',
18 'test_textblock.edc',
19]
20
21themes = []
22
23foreach edc_file : edc_files
24 themes += custom_target('edje_cc_' + edc_file,
25 input : edc_file,
26 output : '@BASENAME@.edj',
27 command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
28 '-id', join_paths(meson.source_root(), 'src', 'tests', 'emotion', 'data'),
29 '-fd', meson.current_source_dir(),
30 '-sd', meson.current_source_dir(),
31 '-vd', meson.current_source_dir(),
32 '-dd', meson.current_source_dir(),
33 '-md', meson.current_source_dir(),
34 '-td', meson.current_source_dir(),
35 '@INPUT@', '@OUTPUT@'],
36 depends : edje_cc)
37endforeach
diff --git a/src/tests/edje/meson.build b/src/tests/edje/meson.build
new file mode 100644
index 0000000000..54aee4f873
--- /dev/null
+++ b/src/tests/edje/meson.build
@@ -0,0 +1,26 @@
1subdir('data')
2subdir('tests')
3
4edje_suite_src = [
5 'edje_suite.c',
6 'edje_suite.h',
7 'edje_test_container.c',
8 'edje_test_edje.c',
9 'edje_test_features.c',
10 'edje_test_signal.c',
11 'edje_test_swallow.c',
12 'edje_test_text.c',
13]
14
15edje_suite = executable('edje_suite',
16 edje_suite_src, themes,
17 dependencies: [check, eina, ecore_evas, edje],
18 include_directories : config_dir,
19 c_args : [
20 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
21 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
22)
23
24test('edje-suite', edje_suite,
25 env : test_env
26)
diff --git a/src/tests/edje/tests/meson.build b/src/tests/edje/tests/meson.build
new file mode 100644
index 0000000000..4780bcaeba
--- /dev/null
+++ b/src/tests/edje/tests/meson.build
@@ -0,0 +1,19 @@
1edc_files = [
2 'edje_inherit_nearest.edc',
3]
4
5foreach edc_file : edc_files
6 themes += custom_target('edje_cc_' + edc_file,
7 input : edc_file,
8 output : '@BASENAME@.edj',
9 command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
10 '-id', join_paths(meson.source_root(), 'src', 'tests', 'emotion', 'data'),
11 '-fd', meson.current_source_dir(),
12 '-sd', meson.current_source_dir(),
13 '-vd', meson.current_source_dir(),
14 '-dd', meson.current_source_dir(),
15 '-md', meson.current_source_dir(),
16 '-td', meson.current_source_dir(),
17 '@INPUT@', '@OUTPUT@'],
18 depends : edje_cc)
19endforeach \ No newline at end of file
diff --git a/src/tests/eet/meson.build b/src/tests/eet/meson.build
new file mode 100644
index 0000000000..2e3b2808ce
--- /dev/null
+++ b/src/tests/eet/meson.build
@@ -0,0 +1,27 @@
1eet_suite_src = [
2 'eet_test_cache.c',
3 'eet_test_cipher.c',
4 'eet_test_common.c',
5 'eet_test_connection.c',
6 'eet_test_data.c',
7 'eet_test_file.c',
8 'eet_test_identity.c',
9 'eet_test_image.c',
10 'eet_test_init.c',
11 'eet_suite.c',
12 'eet_test_common.h',
13 'eet_suite.h'
14]
15
16eet_suite = executable('eet_suite',
17 eet_suite_src,
18 dependencies: [eet, check],
19 c_args : [
20 '-DTESTS_WD="`pwd`"',
21 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
22 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
23)
24
25test('eet-suite', eet_suite,
26 env : test_env
27)
diff --git a/src/tests/eeze/meson.build b/src/tests/eeze/meson.build
new file mode 100644
index 0000000000..d4e5430b96
--- /dev/null
+++ b/src/tests/eeze/meson.build
@@ -0,0 +1,20 @@
1eeze_suite_src = [
2 'eeze_suite.c',
3 'eeze_test_init.c',
4 'eeze_test_net.c',
5 'eeze_test_sensor.c',
6 'eeze_test_udev.c',
7 'eeze_suite.h'
8]
9
10eeze_suite = executable('eeze_suite',
11 eeze_suite_src,
12 dependencies: [eeze, ecore, check],
13 c_args : [
14 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
15 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
16)
17
18test('eeze-suite', eeze_suite,
19 env : test_env
20)
diff --git a/src/tests/efl/meson.build b/src/tests/efl/meson.build
new file mode 100644
index 0000000000..10b24071b8
--- /dev/null
+++ b/src/tests/efl/meson.build
@@ -0,0 +1,18 @@
1efl_suite_src = [
2 'efl_suite.c',
3 'efl_suite.h',
4 'efl_test_model_composite.c',
5 'efl_test_model_container.c'
6]
7
8efl_suite_bin = executable('efl_suite',
9 efl_suite_src,
10 dependencies: [efl, ecore, check],
11 c_args : [
12 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
13 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
14)
15
16test('efl-suite', efl_suite_bin,
17 env : test_env
18)
diff --git a/src/tests/efreet/meson.build b/src/tests/efreet/meson.build
new file mode 100644
index 0000000000..27ce1a0cc0
--- /dev/null
+++ b/src/tests/efreet/meson.build
@@ -0,0 +1,66 @@
1efreet_suite_src = [
2 'efreet_suite.c',
3 'efreet_suite.h',
4 'efreet_test_efreet.c',
5 'efreet_test_efreet_cache.c'
6]
7
8efreet_suite = executable('efreet_suite',
9 efreet_suite_src,
10 dependencies: [check, efreet],
11 include_directories : config_dir,
12 c_args : [
13 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
14 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
15)
16
17test('efreet-suite', efreet_suite,
18 env : test_env
19)
20
21efreet_test_src = [
22 'ef_data_dirs.c',
23 'ef_desktop.c',
24 'ef_icon_theme.c',
25 'ef_ini.c',
26 'ef_locale.c',
27 'ef_menu.c',
28 'ef_mime.c',
29 'ef_test.h',
30 'ef_utils.c',
31 'main.c'
32]
33
34efreet_test = executable('efreet_test',
35 efreet_test_src,
36 dependencies: [check, efreet, ecore, ecore_file, efreet_mime],
37 include_directories : config_dir,
38 c_args : [
39 package_c_args,
40 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
41 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"',
42 '-DDATA_DIR="'+dir_data+'"']
43)
44
45additional_tests = [
46 'efreet_async_test',
47 'efreet_spec_test',
48 'efreet_icon_cache_dump',
49 'efreet_user_dir',
50 join_paths('compare', 'efreet_alloc'),
51 join_paths('compare', 'efreet_menu_alloc')
52]
53
54foreach additional_test : additional_tests
55 efreet_tmp = executable(additional_test.underscorify(),
56 additional_test+'.c',
57 dependencies: [check, efreet, ecore, eet, ecore_file, efreet_mime],
58 include_directories : config_dir,
59 c_args : [
60 package_c_args,
61 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
62 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"',
63 '-DDATA_DIR="'+dir_data+'"']
64 )
65
66endforeach
diff --git a/src/tests/eina/meson.build b/src/tests/eina/meson.build
new file mode 100644
index 0000000000..f111e3a12d
--- /dev/null
+++ b/src/tests/eina/meson.build
@@ -0,0 +1,73 @@
1eina_test_src = files(
2'eina_suite.c',
3'eina_suite.h',
4'eina_test_abi.c',
5'eina_test_fp.c',
6'eina_test_ustringshare.c',
7'eina_test_ustr.c',
8'eina_test_binshare.c',
9'eina_test_binbuf.c',
10'eina_test_debug.c',
11'eina_test_inarray.c',
12'eina_test_array.c',
13'eina_test_clist.c',
14'eina_test_error.c',
15'eina_test_sched.c',
16'eina_test_log.c',
17'eina_test_magic.c',
18'eina_test_inlist.c',
19'eina_test_main.c',
20'eina_test_counter.c',
21'eina_test_lalloc.c',
22'eina_test_hash.c',
23'eina_test_iterator.c',
24'eina_test_accessor.c',
25'eina_test_module.c',
26'eina_test_convert.c',
27'eina_test_rbtree.c',
28'eina_test_file.c',
29'eina_test_benchmark.c',
30'eina_test_mempool.c',
31'eina_test_rectangle.c',
32'eina_test_list.c',
33'eina_test_matrixsparse.c',
34'eina_test_tiler.c',
35'eina_test_strbuf.c',
36'eina_test_str.c',
37'eina_test_quadtree.c',
38'eina_test_simple_xml_parser.c',
39'eina_test_value.c',
40'eina_test_cow.c',
41'eina_test_barrier.c',
42'eina_test_tmpstr.c',
43'eina_test_trash.c',
44'eina_test_lock.c',
45'eina_test_xattr.c',
46'eina_test_crc.c',
47'eina_test_quad.c',
48'eina_test_matrix.c',
49'eina_test_quaternion.c',
50'eina_test_vector.c',
51'eina_test_bezier.c',
52'eina_test_safepointer.c',
53'eina_test_slice.c',
54'eina_test_freeq.c',
55'eina_test_slstr.c',
56'eina_test_vpath.c'
57)
58
59
60eina_test_exe = executable('eina_suite',
61 include_directories : config_dir,
62 sources : eina_test_src,
63 dependencies: [m, check, eina],
64 c_args : [
65 '-DTESTS_WD="`pwd`"',
66 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
67 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
68)
69
70test('eina', eina_test_exe,
71 env : test_env,
72 timeout : 5*60
73)
diff --git a/src/tests/eio/meson.build b/src/tests/eio/meson.build
new file mode 100644
index 0000000000..09feb3769b
--- /dev/null
+++ b/src/tests/eio/meson.build
@@ -0,0 +1,30 @@
1eio_suite_src = [
2 'eio_suite.c',
3 'eio_model_test_file.c',
4 'eio_model_test_monitor_add.c',
5 'eio_test_monitor.c',
6 'eio_test_sentry.c',
7 'eio_test_file.c',
8 'eio_test_manager.c',
9 'eio_test_manager_xattr.c',
10 'eio_test_xattr.c',
11 'eio_test_common.c',
12 'eio_test_common.h',
13 'eio_test_map.c',
14 'eio_test_eet.c',
15 'eio_suite.h'
16]
17
18eio_suite = executable('eio_suite',
19 eio_suite_src,
20 include_directories : [config_dir],
21 dependencies: [eo, ecore, eina, ecore_file, eio, check, efreet],
22 c_args : [
23 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
24 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
25)
26
27test('eio-suite', eio_suite,
28 env : test_env,
29 timeout : 10*60 #10 min. can be realistic, this testsuite is slow!
30)
diff --git a/src/tests/eldbus/meson.build b/src/tests/eldbus/meson.build
new file mode 100644
index 0000000000..0b0f97a34b
--- /dev/null
+++ b/src/tests/eldbus/meson.build
@@ -0,0 +1,28 @@
1eldbus_suite_src = [
2 'eldbus_suite.c',
3 'eldbus_test_eldbus_init.c',
4 'eldbus_test_eldbus_model.h',
5 'eldbus_fake_server.h',
6 'eldbus_test_eldbus_model.c',
7 'eldbus_test_eldbus_model_connection.c',
8 'eldbus_test_eldbus_model_object.c',
9 'eldbus_test_eldbus_model_proxy.c',
10 'eldbus_test_eldbus_model_method.c',
11 'eldbus_test_eldbus_model_signal.c',
12 'eldbus_test_eldbus_object.c',
13 'eldbus_test_eldbus_message.c',
14 'eldbus_test_eldbus_signal_handler.c',
15 'eldbus_test_eldbus_proxy.c',
16 'eldbus_test_eldbus_pending_cancel.c',
17 'eldbus_test_fake_server_eldbus_model_proxy.c',
18 'eldbus_fake_server.c',
19 'eldbus_suite.h'
20]
21
22executable('eldbus_suite',
23 eldbus_suite_src,
24 dependencies: [eldbus, ecore, check],
25 c_args : [
26 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
27 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
28)
diff --git a/src/tests/elementary/meson.build b/src/tests/elementary/meson.build
new file mode 100644
index 0000000000..0f083672cd
--- /dev/null
+++ b/src/tests/elementary/meson.build
@@ -0,0 +1,122 @@
1priv_eo_files = [
2 'focus_test.eo',
3 'focus_test_sub_main.eo'
4]
5
6priv_eo_file_target = []
7foreach eo_file : priv_eo_files
8 priv_eo_file_target += custom_target('eolian_gen_' + eo_file,
9 input : eo_file,
10 output : [eo_file + '.h'],
11 command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories,
12 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
13 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
14 '-gch', '@INPUT@'])
15endforeach
16
17
18elementary_suite_src = [
19 'elm_suite.c',
20 'elm_test_atspi.c',
21 'elm_test_check.c',
22 'elm_test_colorselector.c',
23 'elm_test_entry.c',
24 'elm_test_init.c',
25 'elm_test_list.c',
26 'elm_test_button.c',
27 'elm_test_image.c',
28 'elm_test_photo.c',
29 'elm_test_actionslider.c',
30 'elm_test_box.c',
31 'elm_test_table.c',
32 'elm_test_thumb.c',
33 'elm_test_menu.c',
34 'elm_test_photocam.c',
35 'elm_test_win.c',
36 'elm_test_icon.c',
37 'elm_test_prefs.c',
38 'elm_test_map.c',
39 'elm_test_glview.c',
40 'elm_test_web.c',
41 'elm_test_toolbar.c',
42 'elm_test_grid.c',
43 'elm_test_diskselector.c',
44 'elm_test_notify.c',
45 'elm_test_mapbuf.c',
46 'elm_test_flip.c',
47 'elm_test_layout.c',
48 'elm_test_slider.c',
49 'elm_test_ctxpopup.c',
50 'elm_test_separator.c',
51 'elm_test_calendar.c',
52 'elm_test_inwin.c',
53 'elm_test_gengrid.c',
54 'elm_test_radio.c',
55 'elm_test_scroller.c',
56 'elm_test_frame.c',
57 'elm_test_datetime.c',
58 'elm_test_player.c',
59 'elm_test_bg.c',
60 'elm_test_video.c',
61 'elm_test_segmentcontrol.c',
62 'elm_test_progressbar.c',
63 'elm_test_fileselector.c',
64 'elm_test_fileselector_button.c',
65 'elm_test_fileselector_entry.c',
66 'elm_test_hoversel.c',
67 'elm_test_multibuttonentry.c',
68 'elm_test_naviframe.c',
69 'elm_test_popup.c',
70 'elm_test_bubble.c',
71 'elm_test_clock.c',
72 'elm_test_conformant.c',
73 'elm_test_dayselector.c',
74 'elm_test_flipselector.c',
75 'elm_test_genlist.c',
76 'elm_test_hover.c',
77 'elm_test_index.c',
78 'elm_test_label.c',
79 'elm_test_panel.c',
80 'elm_test_panes.c',
81 'elm_test_slideshow.c',
82 'elm_test_spinner.c',
83 'elm_test_plug.c',
84 'elm_test_config.c',
85 'elm_code_file_test_load.c',
86 'elm_code_file_test_memory.c',
87 'elm_code_test_basic.c',
88 'elm_code_test_line.c',
89 'elm_code_test_parse.c',
90 'elm_code_test_syntax.c',
91 'elm_code_test_text.c',
92 'elm_code_test_indent.c',
93 'elm_code_test_widget.c',
94 'elm_code_test_widget_text.c',
95 'elm_code_test_widget_selection.c',
96 'elm_code_test_widget_undo.c',
97 'elm_test_focus_common.c',
98 'elm_test_focus_common.h',
99 'elm_test_focus.c',
100 'elm_test_focus_sub.c'
101]
102
103elementary_suite = executable('elementary_suite',
104 elementary_suite_src, priv_eo_file_target,
105 dependencies: [check, eina, elementary, elementary_deps],
106 include_directories : [config_dir] + [elementary_config_dir],
107 c_args : [
108 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
109 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"',
110 '-DELM_IMAGE_DATA_DIR="'+join_paths(meson.source_root(), 'data', 'elementary')+'"',
111 '-DELM_TEST_DATA_DIR="'+join_paths(meson.build_root(), 'data', 'elementary')+'"',
112 ]
113)
114
115test('elementary-suite', elementary_suite,
116 env : test_env
117)
118
119
120install_data(files(['testdiff.diff', 'testfile-windows.txt', 'testfile-withblanks.txt', 'testfile.txt']),
121 install_dir : join_paths(dir_data, 'elementary')
122)
diff --git a/src/tests/elput/meson.build b/src/tests/elput/meson.build
new file mode 100644
index 0000000000..529ffa18c2
--- /dev/null
+++ b/src/tests/elput/meson.build
@@ -0,0 +1,17 @@
1elput_suite_src = [
2 'elput_suite.c',
3 'elput_suite.h',
4 'elput_test_elput.c'
5]
6
7elput_suite = executable('elput_suite',
8 elput_suite_src,
9 dependencies: [elput, ecore, check],
10 c_args : [
11 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
12 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
13)
14
15test('elput-suite', elput_suite,
16 env : test_env
17)
diff --git a/src/tests/elua/meson.build b/src/tests/elua/meson.build
new file mode 100644
index 0000000000..ec75f672b1
--- /dev/null
+++ b/src/tests/elua/meson.build
@@ -0,0 +1,31 @@
1elua_suite_deps = [check, eina, elua]
2
3elua_suite_src = [
4 'elua_suite.c',
5 'elua_suite.h',
6 'elua_lib.c'
7]
8
9elua_bindings_dir = join_paths(meson.source_root(), 'src', 'bindings', 'luajit')
10elua_core_dir = join_paths(meson.source_root(), 'src', 'scripts', 'elua', 'core')
11elua_modules_dir = join_paths(meson.source_root(), 'src', 'scripts', 'elua', 'modules')
12elua_apps_dir = join_paths(meson.source_root(), 'src', 'tests', 'elua', 'data', 'apps')
13
14elua_suite = executable('elua_suite',
15 elua_suite_src,
16 include_directories : config_dir,
17 dependencies: [elua_suite_deps, check],
18 c_args : [
19 '-DELUA_BINDINGS_DIR="'+elua_bindings_dir+'"',
20 '-DELUA_CORE_DIR="'+elua_core_dir+'"',
21 '-DELUA_MODULES_DIR="'+elua_modules_dir+'"',
22 '-DELUA_APPS_DIR="'+elua_apps_dir+'"',
23 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
24 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"'
25 ]
26)
27
28test('elua-suite', elua_suite,
29 timeout : 10*60,
30 env : test_env
31)
diff --git a/src/tests/emile/meson.build b/src/tests/emile/meson.build
new file mode 100644
index 0000000000..438989a374
--- /dev/null
+++ b/src/tests/emile/meson.build
@@ -0,0 +1,18 @@
1emile_suite_src = [
2 'emile_suite.c',
3 'emile_suite.h',
4 'emile_test_base.c',
5 'emile_test_base64.c'
6]
7
8emile_suite = executable('emile_suite',
9 emile_suite_src,
10 dependencies: [emile, check],
11 c_args : [
12 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
13 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
14)
15
16test('emile-suite', emile_suite,
17 env : test_env
18)
diff --git a/src/tests/emotion/data/meson.build b/src/tests/emotion/data/meson.build
new file mode 100644
index 0000000000..82c3c03ad8
--- /dev/null
+++ b/src/tests/emotion/data/meson.build
@@ -0,0 +1,21 @@
1edc_files = [
2 'theme.edc',
3]
4
5themes = []
6
7foreach edc_file : edc_files
8 themes += custom_target('edje_cc_' + edc_file,
9 input : edc_file,
10 output : '@BASENAME@.edj',
11 command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
12 '-id', meson.current_source_dir(),
13 '-fd', meson.current_source_dir(),
14 '-sd', meson.current_source_dir(),
15 '-vd', meson.current_source_dir(),
16 '-dd', meson.current_source_dir(),
17 '-md', meson.current_source_dir(),
18 '-td', meson.current_source_dir(),
19 '@INPUT@', '@OUTPUT@'],
20 depends : edje_cc)
21endforeach \ No newline at end of file
diff --git a/src/tests/emotion/meson.build b/src/tests/emotion/meson.build
new file mode 100644
index 0000000000..ec5027c07b
--- /dev/null
+++ b/src/tests/emotion/meson.build
@@ -0,0 +1,21 @@
1subdir('data')
2
3emotion_eo_suite = executable('emotion_eo_suite',
4 'emotion_test_main-eo.c', themes,
5 dependencies: [check, eo, evas, emotion, ecore_evas, edje, ecore],
6 include_directories : config_dir,
7 c_args : [
8 '-DPACKAGE_DATA_DIR="'+meson.current_build_dir()+'"',
9 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
10 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
11)
12
13emotion_suite = executable('emotion_suite',
14 'emotion_test_main.c', themes,
15 dependencies: [check, eo, evas, emotion, ecore_evas, edje, ecore],
16 include_directories : config_dir,
17 c_args : [
18 '-DPACKAGE_DATA_DIR="'+meson.current_build_dir()+'"',
19 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
20 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
21)
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)
diff --git a/src/tests/eolian/meson.build b/src/tests/eolian/meson.build
new file mode 100644
index 0000000000..01fd6d3c10
--- /dev/null
+++ b/src/tests/eolian/meson.build
@@ -0,0 +1,38 @@
1priv_eo_files = [
2 'generated_future.eo'
3]
4
5eolian_test_src = [
6'eolian_parsing.c',
7'eolian_generation.c',
8'eolian_generated_future.c',
9'eolian_suite.c',
10'eolian_suite.h',
11'eolian_static.c'
12]
13
14priv_eo_file_target = []
15foreach eo_file : priv_eo_files
16 priv_eo_file_target += custom_target('eolian_gen_' + eo_file,
17 input : eo_file,
18 output : [eo_file + '.h'],
19 command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories,
20 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
21 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
22 '-gch', '@INPUT@'])
23endforeach
24
25eolian_suite = executable('eolian_suite',
26 eolian_test_src, priv_eo_file_target,
27 dependencies: [eolian, check, eo],
28 c_args : [
29 '-DEOLIAN_GEN="'+eolian_gen.full_path()+'"',
30 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
31 '-DEO_SRC_DIR="'+join_paths(meson.source_root(), 'src', 'lib')+'"',
32 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
33)
34
35test('eolian', eolian_suite,
36 timeout: 30,
37 env : test_env
38)
diff --git a/src/tests/evas/meson.build b/src/tests/evas/meson.build
new file mode 100644
index 0000000000..62898cd241
--- /dev/null
+++ b/src/tests/evas/meson.build
@@ -0,0 +1,31 @@
1evas_suite_src = [
2 'evas_suite.c',
3 'evas_test_new.c',
4 'evas_test_init.c',
5 'evas_test_object.c',
6 'evas_test_object_smart.c',
7 'evas_test_textblock.c',
8 'evas_test_text.c',
9 'evas_test_callbacks.c',
10 'evas_test_render_engines.c',
11 'evas_test_filters.c',
12 'evas_test_image.c',
13 'evas_test_mesh.c',
14 'evas_test_mask.c',
15 'evas_test_evasgl.c',
16 'evas_test_matrix.c',
17 'evas_tests_helpers.h',
18 'evas_suite.h'
19]
20
21evas_suite = executable('evas_suite',
22 evas_suite_src,
23 dependencies: [evas_bin, evas, ecore_evas, dl, check],
24 c_args : [
25 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
26 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
27)
28
29test('evas-suite', evas_suite,
30 env : test_env
31)
diff --git a/src/tests/meson.build b/src/tests/meson.build
new file mode 100644
index 0000000000..7604ba199a
--- /dev/null
+++ b/src/tests/meson.build
@@ -0,0 +1 @@
executable('timeout', 'timeout.c')