meson.build 548 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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'
  ]

  tests = executable('tests', test_sources,
    dependencies: build_dependencies + test_dependencies,
    include_directories: include_directories,
    c_args: defines + flags
  )

Sebastian Ramacher's avatar
Sebastian Ramacher committed
23 24 25
  test('tests', tests,
    timeout: 60*60
  )
26
endif