Run edi tests in meson
This commit is contained in:
parent
d1ca10bec6
commit
ea7fefb8fb
|
@ -14,6 +14,7 @@ config_h.set_quoted('PACKAGE_TARNAME' , meson.project_name())
|
||||||
config_h.set_quoted('PACKAGE_BUGREPORT', 'enlightenment-devel@lists.sourceforge.net')
|
config_h.set_quoted('PACKAGE_BUGREPORT', 'enlightenment-devel@lists.sourceforge.net')
|
||||||
config_h.set_quoted('PACKAGE_STRING' , meson.project_name() + ' ' + meson.project_version())
|
config_h.set_quoted('PACKAGE_STRING' , meson.project_name() + ' ' + meson.project_version())
|
||||||
config_h.set_quoted('PACKAGE_NAME' , meson.project_name())
|
config_h.set_quoted('PACKAGE_NAME' , meson.project_name())
|
||||||
|
config_h.set_quoted('PACKAGE_BUILD_DIR', meson.build_root())
|
||||||
config_h.set_quoted('PACKAGE_BIN_DIR', join_paths(get_option('prefix'), get_option('bindir')))
|
config_h.set_quoted('PACKAGE_BIN_DIR', join_paths(get_option('prefix'), get_option('bindir')))
|
||||||
config_h.set_quoted('PACKAGE_LIB_DIR', join_paths(get_option('prefix'), get_option('libdir')))
|
config_h.set_quoted('PACKAGE_LIB_DIR', join_paths(get_option('prefix'), get_option('libdir')))
|
||||||
config_h.set_quoted('PACKAGE_DATA_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'edi'))
|
config_h.set_quoted('PACKAGE_DATA_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'edi'))
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
subdir('lib')
|
subdir('lib')
|
||||||
subdir('bin')
|
subdir('bin')
|
||||||
#subdir('tests')
|
subdir('tests')
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
|
|
||||||
#define COPYRIGHT "Copyright © 2014-2017 Andy Williams <andy@andyilliams.me> and various contributors (see AUTHORS)."
|
#define COPYRIGHT "Copyright © 2014-2017 Andy Williams <andy@andyilliams.me> and various contributors (see AUTHORS)."
|
||||||
|
|
||||||
|
int _edi_log_dom = -1;
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
void (*build)(TCase *tc);
|
void (*build)(TCase *tc);
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
src = files([
|
||||||
|
'edi_suite.h',
|
||||||
|
'edi_suite.c',
|
||||||
|
'edi_test_content_provider.c',
|
||||||
|
'edi_test_create.c',
|
||||||
|
'edi_test_exe.c',
|
||||||
|
'edi_test_language_provider.c',
|
||||||
|
'edi_test_language_provider_c.c',
|
||||||
|
'edi_test_path.c',
|
||||||
|
])
|
||||||
|
|
||||||
|
check = dependency('check')
|
||||||
|
|
||||||
|
deps = [elm, check, edi_lib]
|
||||||
|
|
||||||
|
if get_option('libclang') == true and has_clang_header == true
|
||||||
|
deps += [clang]
|
||||||
|
endif
|
||||||
|
|
||||||
|
exe = executable('edi_suite', src,
|
||||||
|
dependencies : deps,
|
||||||
|
include_directories : [include_directories('../../../src/bin'), include_directories('../../../src/lib'), top_inc],
|
||||||
|
install : false
|
||||||
|
)
|
||||||
|
test('Edi Test Suite', exe)
|
||||||
|
|
Loading…
Reference in New Issue