summaryrefslogtreecommitdiff
path: root/plparse/tests/meson.build
blob: 3611613cadedb0c5b44255d124dedb38b0f51c76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
test_cargs = ['-DTEST_SRCDIR="@0@/"'.format(meson.current_source_dir())]

tests = ['parser', 'disc']

foreach test_name : tests
  exe = executable(test_name, '@0@.c'.format(test_name),
                   c_args: test_cargs,
                   include_directories: [config_inc, totemlib_inc],
                   dependencies: plparser_dep)

  env = environment()
  if have_quvi
    env.set('TOTEM_PL_PARSER_VIDEOSITE_SCRIPT', videosite_exe.full_path())
  endif

  test(test_name, exe, env: env, timeout: 3 * 60)
endforeach