zathura/tests/meson.build

44 lines
1.1 KiB
Meson
Raw Normal View History

2018-02-10 13:13:06 +01:00
check = dependency('check', required: false)
if check.found()
test_dependencies = [
declare_dependency(link_with: libzathura),
check
]
include_directories += [ include_directories('../zathura') ]
test_sources = [
'tests.c',
'test_document.c',
'test_session.c',
'test_utils.c'
]
document = executable('test_document', ['test_document.c', 'tests.c'],
2018-02-10 13:13:06 +01:00
dependencies: build_dependencies + test_dependencies,
include_directories: include_directories,
c_args: defines + flags
)
test('document', document,
timeout: 60*60
)
2018-02-10 13:13:06 +01:00
session = executable('test_session', ['test_session.c', 'tests.c'],
dependencies: build_dependencies + test_dependencies,
include_directories: include_directories,
c_args: defines + flags
)
test('session', session,
timeout: 60*60
)
utils = executable('test_utils', ['test_utils.c', 'tests.c'],
dependencies: build_dependencies + test_dependencies,
include_directories: include_directories,
c_args: defines + flags
)
test('utils', utils,
2018-03-17 18:42:55 +01:00
timeout: 60*60
)
2018-02-10 13:13:06 +01:00
endif