videorate: Handle closing segment on EOS right after caps event
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-base / tests / validate / meson.build
1 gst_tester = find_program('gst-tester-@0@'.format(api_version), required: get_option('tests'))
2 if not gst_tester.found()
3     subdir_done()
4 endif
5
6 tests = [
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     'videorate/duplicate_on_eos',
21     'videorate/duplicate_on_eos_disbaled',
22     'videorate/duplicate_on_eos_half_sec',
23     'videorate/fill_segment_after_caps_changed_before_eos',
24     'compositor/renogotiate_failing_unsupported_src_format',
25     'giosrc/read-growing-file',
26     'encodebin/set-encoder-properties',
27     'uridecodebin/expose_raw_pad_caps',
28 ]
29
30 env = environment()
31 env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root(), pluginsdirs)
32 env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
33 env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'validate'))
34 env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
35 env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-validate',
36     'gst-plugins-base@' + meson.project_build_root())
37
38 foreach t: tests
39     test_dir_name = t.split('/')
40     test_name = 'validate'
41     foreach c: test_dir_name
42         test_name += '.' + c
43     endforeach
44     test_env = env
45     test_env.set('GST_VALIDATE_LOGSDIR', join_paths(meson.current_build_dir(), test_name))
46     test_file = join_paths(meson.current_source_dir(), t + '.validatetest')
47     test(test_name, gst_tester, args: [test_file, '--use-fakesinks'],
48         env: test_env, timeout : 3 * 60, protocol: 'tap')
49 endforeach