File: meson.build

package info (click to toggle)
opus 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,948 kB
  • sloc: ansic: 533,894; sh: 4,541; asm: 723; makefile: 480; perl: 264; python: 77
file content (39 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Tests that link to libopus
opus_tests = [
  ['test_opus_api'],
  ['test_opus_decode', [], 120],
  ['test_opus_encode', 'opus_encode_regressions.c', 240],
  ['test_opus_extensions', [], 120],
  ['test_opus_padding'],
  ['test_opus_projection'],
]

if opt_dred.enabled()
  opus_tests += [['test_opus_dred', [], 60 * 20]]
endif

foreach t : opus_tests
  test_name = t.get(0)
  extra_srcs = t.get(1, [])

  test_kwargs = {}
  if t.length() > 2
    test_kwargs += {'timeout': t[2]}
  endif

  exe_kwargs = {}
  # This test uses private symbols
  if test_name == 'test_opus_projection' or test_name == 'test_opus_extensions'
    exe_kwargs = {
      'link_with': [celt_lib, silk_lib, dnn_lib],
      'objects': opus_lib.extract_all_objects(),
    }
  endif

  exe = executable(test_name, '@0@.c'.format(test_name), extra_srcs,
    include_directories: opus_includes,
    dependencies: [libm, opus_dep],
    install: false,
    kwargs: exe_kwargs)
  test(test_name, exe, kwargs: test_kwargs)
endforeach