meson.build 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9
check = dependency('check', required: false)
if check.found()
  test_dependencies = [
    declare_dependency(link_with: libzathura),
    check
  ]

  include_directories += [ include_directories('../zathura') ]

10
  document = executable('test_document', ['test_document.c', 'tests.c'],
11 12 13 14
    dependencies: build_dependencies + test_dependencies,
    include_directories: include_directories,
    c_args: defines + flags
  )
15 16 17
  test('document', document,
    timeout: 60*60
  )
18

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
  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,
Sebastian Ramacher's avatar
Sebastian Ramacher committed
34 35
    timeout: 60*60
  )
Sebastian Ramacher's avatar
Sebastian Ramacher committed
36 37 38 39 40 41 42 43 44

  types = executable('test_types', ['test_types.c', 'tests.c'],
    dependencies: build_dependencies + test_dependencies,
    include_directories: include_directories,
    c_args: defines + flags
  )
  test('types', types,
    timeout: 60*60
  )
45
endif