blob: 5f3ac9df3f6bab1a2888dc0d4139bc187fe36ed7 [file] [log] [blame]
Tim-Philipp Müllerc2b542b2016-03-19 15:40:22 +00001# Tests that link to libopus
2opus_tests = [
3 ['test_opus_api'],
4 ['test_opus_decode', [], 60],
5 ['test_opus_encode', 'opus_encode_regressions.c', 120],
6 ['test_opus_padding'],
7 ['test_opus_projection'],
8]
9
10foreach t : opus_tests
11 test_name = t.get(0)
12 extra_srcs = t.get(1, [])
13
14 test_kwargs = {}
15 if t.length() > 2
16 test_kwargs += {'timeout': t[2]}
17 endif
18
19 exe_kwargs = {}
20 # This test uses private symbols
21 if test_name == 'test_opus_projection'
22 exe_kwargs = {
23 'link_with': [celt_lib, silk_lib],
24 'objects': opus_lib.extract_all_objects(),
25 }
26 endif
27
28 exe = executable(test_name, '@0@.c'.format(test_name), extra_srcs,
29 include_directories: opus_includes,
30 dependencies: [libm, opus_dep],
31 install: false,
32 kwargs: exe_kwargs)
33 test(test_name, exe, kwargs: test_kwargs)
34endforeach