elementary: enable efl_ui_suite tests for meson build.
Summary: Depends on D7661 Reviewers: SanghyeonLee, felipealmeida, segfaultxavi, zmike Reviewed By: SanghyeonLee, zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7382 Differential Revision: https://phab.enlightenment.org/D7662
This commit is contained in:
parent
7f2b26861f
commit
97e210d727
|
@ -12,7 +12,6 @@ efl_main(void *data EINA_UNUSED,
|
|||
{
|
||||
Efl_Loop_Arguments *arge = ev->info;
|
||||
|
||||
|
||||
fail_if(!arge->initialization);
|
||||
fprintf(stderr, "ARGC %d\n", eina_array_count(arge->argv));
|
||||
fail_if(eina_array_count(arge->argv) != 2);
|
||||
|
@ -37,6 +36,7 @@ EFL_START_TEST(efl_ui_test_init)
|
|||
__EFL_MAIN_CONSTRUCTOR;
|
||||
ret__ = efl_loop_begin(efl_app_main_get(EFL_APP_CLASS));
|
||||
real__ = efl_loop_exit_code_process(ret__);
|
||||
fail_if(real__ != 0);
|
||||
__EFL_MAIN_DESTRUCTOR;
|
||||
ecore_shutdown_ex();
|
||||
ecore_shutdown();
|
||||
|
|
|
@ -116,10 +116,29 @@ elementary_suite = executable('elementary_suite',
|
|||
]
|
||||
)
|
||||
|
||||
efl_ui_suite_src = [
|
||||
'efl_ui_suite.c',
|
||||
]
|
||||
|
||||
efl_ui_suite = executable('efl_ui_suite',
|
||||
efl_ui_suite_src, priv_eo_file_target,
|
||||
dependencies: [check, eina, elementary, elementary_deps],
|
||||
include_directories : [config_dir] + [elementary_config_dir],
|
||||
c_args : [
|
||||
'-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
|
||||
'-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"',
|
||||
'-DELM_IMAGE_DATA_DIR="'+join_paths(meson.source_root(), 'data', 'elementary')+'"',
|
||||
'-DELM_TEST_DATA_DIR="'+join_paths(meson.build_root(), 'data', 'elementary')+'"',
|
||||
]
|
||||
)
|
||||
|
||||
test('elementary-suite', elementary_suite,
|
||||
env : test_env
|
||||
)
|
||||
|
||||
test('efl-ui-suite', efl_ui_suite,
|
||||
env : test_env
|
||||
)
|
||||
|
||||
install_data(files(['testdiff.diff', 'testfile-windows.txt', 'testfile-withblanks.txt', 'testfile.txt']),
|
||||
install_dir : join_paths(dir_data, 'elementary')
|
||||
|
|
Loading…
Reference in New Issue