• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1gst_tester = find_program('gst-tester-@0@'.format(api_version), required: get_option('tests'))
2if not gst_tester.found()
3    subdir_done()
4endif
5
6tests = [
7    'audiotestsrc/reverse',
8    'videorate/10_to_1fps',
9    'videorate/reverse.10_to_1fps',
10    'videorate/reverse.10_to_30fps',
11    'videorate/reverse.1_to_10fps',
12    'videorate/reverse.30fps',
13    'videorate/reverse.variable_to_10fps',
14    'videorate/change_rate_while_playing',
15    'videorate/change_rate_reverse_playback',
16    'videorate/rate_0_5',
17    'videorate/rate_0_5_with_decoder',
18    'videorate/rate_2_0',
19    'videorate/rate_2_0_with_decoder',
20    'compositor/renogotiate_failing_unsupported_src_format',
21    'giosrc/read-growing-file',
22    'encodebin/set-encoder-properties',
23]
24
25env = environment()
26env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root(), pluginsdirs)
27env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
28env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'validate'))
29env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
30env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-validate',
31    'gst-plugins-base@' + meson.project_build_root())
32
33foreach t: tests
34    test_dir_name = t.split('/')
35    test_name = 'validate'
36    foreach c: test_dir_name
37        test_name += '.' + c
38    endforeach
39    test_env = env
40    test_env.set('GST_VALIDATE_LOGSDIR', join_paths(meson.current_build_dir(), test_name))
41    test_file = join_paths(meson.current_source_dir(), t + '.validatetest')
42    test(test_name, gst_tester, args: [test_file, '--use-fakesinks'],
43        env: test_env, timeout : 3 * 60, protocol: 'tap')
44endforeach
45