2020-08-04 11:11:54 +00:00
|
|
|
gst_tester = find_program('gst-tester-@0@'.format(api_version), required: get_option('tests'))
|
|
|
|
if not gst_tester.found()
|
|
|
|
subdir_done()
|
audiotestsrc: Fix the way we compute EOS in reverse playback
In reverse playback we were not taking into account the current buffer
samples to check if we had reached EOS which was leading to a buffer
with PTS = CLOCK_TIME_NONE containing too many frames followed by a
useless buffer with pts=0 duration=0, and a g_critical issue in
gst_object_sync_values.
Also add a validate based test case.
Without that patch this is how the expectation fails:
``` diff
--- log-asink-sink-expected 2020-05-22 23:22:42.654384579 -0400
+++ log-asink-sink-actual 2020-05-22 23:29:35.671586380 -0400
@@ -27,5 +27,6 @@
buffer: pts=0:00:00.058820861, due=0:00:00.023219955, flags=discont
buffer: pts=0:00:00.035600907, due=0:00:00.023219954, flags=discont
buffer: pts=0:00:00.012380952, due=0:00:00.023219955, flags=discont
-buffer: pts=0:00:00.000000000, due=0:00:00.012380952, flags=discont
+buffer: due=0:00:00.012380953, flags=discont
+buffer: pts=0:00:00.000000000, flags=discont
event eos: (no structure)
```
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/667>
2020-05-23 03:24:55 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
tests = [
|
|
|
|
'audiotestsrc/reverse',
|
2020-05-25 16:31:32 +00:00
|
|
|
'videorate/10_to_1fps',
|
|
|
|
'videorate/reverse.10_to_1fps',
|
2020-05-25 20:59:53 +00:00
|
|
|
'videorate/reverse.10_to_30fps',
|
|
|
|
'videorate/reverse.1_to_10fps',
|
|
|
|
'videorate/reverse.30fps',
|
|
|
|
'videorate/reverse.variable_to_10fps',
|
2020-05-31 04:27:14 +00:00
|
|
|
'videorate/change_rate_while_playing',
|
|
|
|
'videorate/change_rate_reverse_playback',
|
2020-05-29 20:21:11 +00:00
|
|
|
'videorate/rate_0_5',
|
|
|
|
'videorate/rate_0_5_with_decoder',
|
|
|
|
'videorate/rate_2_0',
|
|
|
|
'videorate/rate_2_0_with_decoder',
|
2022-09-06 21:25:50 +00:00
|
|
|
'videorate/duplicate_on_eos',
|
|
|
|
'videorate/duplicate_on_eos_disbaled',
|
|
|
|
'videorate/duplicate_on_eos_half_sec',
|
2022-09-14 19:39:48 +00:00
|
|
|
'videorate/fill_segment_after_caps_changed_before_eos',
|
2020-10-30 16:56:16 +00:00
|
|
|
'compositor/renogotiate_failing_unsupported_src_format',
|
2020-11-19 22:17:18 +00:00
|
|
|
'giosrc/read-growing-file',
|
2020-11-20 21:35:49 +00:00
|
|
|
'encodebin/set-encoder-properties',
|
2022-09-07 14:39:21 +00:00
|
|
|
'uridecodebin/expose_raw_pad_caps',
|
audiotestsrc: Fix the way we compute EOS in reverse playback
In reverse playback we were not taking into account the current buffer
samples to check if we had reached EOS which was leading to a buffer
with PTS = CLOCK_TIME_NONE containing too many frames followed by a
useless buffer with pts=0 duration=0, and a g_critical issue in
gst_object_sync_values.
Also add a validate based test case.
Without that patch this is how the expectation fails:
``` diff
--- log-asink-sink-expected 2020-05-22 23:22:42.654384579 -0400
+++ log-asink-sink-actual 2020-05-22 23:29:35.671586380 -0400
@@ -27,5 +27,6 @@
buffer: pts=0:00:00.058820861, due=0:00:00.023219955, flags=discont
buffer: pts=0:00:00.035600907, due=0:00:00.023219954, flags=discont
buffer: pts=0:00:00.012380952, due=0:00:00.023219955, flags=discont
-buffer: pts=0:00:00.000000000, due=0:00:00.012380952, flags=discont
+buffer: due=0:00:00.012380953, flags=discont
+buffer: pts=0:00:00.000000000, flags=discont
event eos: (no structure)
```
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/667>
2020-05-23 03:24:55 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
env = environment()
|
2021-10-18 14:47:00 +00:00
|
|
|
env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root(), pluginsdirs)
|
audiotestsrc: Fix the way we compute EOS in reverse playback
In reverse playback we were not taking into account the current buffer
samples to check if we had reached EOS which was leading to a buffer
with PTS = CLOCK_TIME_NONE containing too many frames followed by a
useless buffer with pts=0 duration=0, and a g_critical issue in
gst_object_sync_values.
Also add a validate based test case.
Without that patch this is how the expectation fails:
``` diff
--- log-asink-sink-expected 2020-05-22 23:22:42.654384579 -0400
+++ log-asink-sink-actual 2020-05-22 23:29:35.671586380 -0400
@@ -27,5 +27,6 @@
buffer: pts=0:00:00.058820861, due=0:00:00.023219955, flags=discont
buffer: pts=0:00:00.035600907, due=0:00:00.023219954, flags=discont
buffer: pts=0:00:00.012380952, due=0:00:00.023219955, flags=discont
-buffer: pts=0:00:00.000000000, due=0:00:00.012380952, flags=discont
+buffer: due=0:00:00.012380953, flags=discont
+buffer: pts=0:00:00.000000000, flags=discont
event eos: (no structure)
```
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/667>
2020-05-23 03:24:55 +00:00
|
|
|
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
|
|
|
|
env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'validate'))
|
|
|
|
env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
|
2020-05-28 17:42:22 +00:00
|
|
|
env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-validate',
|
2021-10-18 14:47:00 +00:00
|
|
|
'gst-plugins-base@' + meson.project_build_root())
|
audiotestsrc: Fix the way we compute EOS in reverse playback
In reverse playback we were not taking into account the current buffer
samples to check if we had reached EOS which was leading to a buffer
with PTS = CLOCK_TIME_NONE containing too many frames followed by a
useless buffer with pts=0 duration=0, and a g_critical issue in
gst_object_sync_values.
Also add a validate based test case.
Without that patch this is how the expectation fails:
``` diff
--- log-asink-sink-expected 2020-05-22 23:22:42.654384579 -0400
+++ log-asink-sink-actual 2020-05-22 23:29:35.671586380 -0400
@@ -27,5 +27,6 @@
buffer: pts=0:00:00.058820861, due=0:00:00.023219955, flags=discont
buffer: pts=0:00:00.035600907, due=0:00:00.023219954, flags=discont
buffer: pts=0:00:00.012380952, due=0:00:00.023219955, flags=discont
-buffer: pts=0:00:00.000000000, due=0:00:00.012380952, flags=discont
+buffer: due=0:00:00.012380953, flags=discont
+buffer: pts=0:00:00.000000000, flags=discont
event eos: (no structure)
```
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/667>
2020-05-23 03:24:55 +00:00
|
|
|
|
|
|
|
foreach t: tests
|
|
|
|
test_dir_name = t.split('/')
|
|
|
|
test_name = 'validate'
|
|
|
|
foreach c: test_dir_name
|
|
|
|
test_name += '.' + c
|
|
|
|
endforeach
|
|
|
|
test_env = env
|
|
|
|
test_env.set('GST_VALIDATE_LOGSDIR', join_paths(meson.current_build_dir(), test_name))
|
|
|
|
test_file = join_paths(meson.current_source_dir(), t + '.validatetest')
|
|
|
|
test(test_name, gst_tester, args: [test_file, '--use-fakesinks'],
|
|
|
|
env: test_env, timeout : 3 * 60, protocol: 'tap')
|
2020-06-11 07:46:40 +00:00
|
|
|
endforeach
|