meson: make bindings test work without efl installed

there is the need to assemble the search path where the .so files can be
found. This is now added to the test suite.

In future this could ne added to meson directory. Since this is a
general csharp problem.
This commit is contained in:
Marcel Hollerbach 2018-10-24 15:08:15 +02:00
parent 6f9761ff54
commit fae1baed8e
1 changed files with 23 additions and 1 deletions

View File

@ -63,7 +63,29 @@ efl_mono_suite = executable('efl-mono-suite',
link_with : [efl_mono, efl_mono_test],
)
env = environment()
env.set('MONO_PATH', efl_mono_test_suite_path )
config_libs = ['eina', 'ecore', 'eo', 'efl', 'evas', 'eldbus', 'elementary']
load_lib = ''
foreach config : config_libs
lib = get_variable(config+'_lib')
path = lib.full_path().split('/')
repaired_path = ''
prev = ''
foreach p : path
repaired_path += prev
prev = p+'/'
endforeach
load_lib += repaired_path+':'
endforeach
env.set('LD_LIBRARY_PATH', load_lib)
test('efl-mono-suite',
efl_mono_suite,
env : ['MONO_PATH='+efl_mono_test_suite_path]
env : env
)