2022-04-14 10:10:46 +00:00
|
|
|
base_itests = [
|
2018-04-12 13:02:51 +00:00
|
|
|
[ 'benchmark-appsink.c', false, [gst_base_dep, app_dep], true ],
|
|
|
|
[ 'benchmark-appsrc.c', false, [gst_base_dep, app_dep], true ],
|
2019-03-23 12:24:04 +00:00
|
|
|
[ 'benchmark-video-conversion.c', false, [gst_base_dep, video_dep], true ],
|
2018-04-12 13:02:51 +00:00
|
|
|
[ 'audio-trickplay.c', false, [gst_controller_dep] ],
|
|
|
|
[ 'playbin-text.c' ],
|
|
|
|
[ 'stress-playbin.c' ],
|
|
|
|
[ 'test-effect-switch.c' ],
|
|
|
|
[ 'test-overlay-blending.c', false, [video_dep, gio_dep] ],
|
|
|
|
[ 'test-scale.c' ],
|
|
|
|
[ 'test-resample.c' ],
|
|
|
|
[ 'test-box.c' ],
|
|
|
|
[ 'test-reverseplay.c' ],
|
|
|
|
[ 'stress-videooverlay.c', not x11_dep.found(), [x11_dep, video_dep] ],
|
|
|
|
[ 'output-selector-test.c', not x11_dep.found(), [x11_dep] ],
|
|
|
|
[ 'input-selector-test.c', not x11_dep.found(), [x11_dep] ],
|
|
|
|
[ 'test-colorkey.c', not x11_dep.found() or not gtk_x11_dep.found(), [x11_dep, gtk_x11_dep, video_dep]],
|
|
|
|
[ 'test-videooverlay.c', not x11_dep.found() or not gtk_x11_dep.found(), [x11_dep, gtk_x11_dep, video_dep]],
|
|
|
|
[ 'test-textoverlay.c', not pango_dep.found(), [pango_dep] ],
|
|
|
|
[ 'playback/test.c' ],
|
|
|
|
[ 'playback/decodetest.c' ],
|
|
|
|
[ 'playback/test2.c' ],
|
|
|
|
[ 'playback/test3.c' ],
|
|
|
|
[ 'playback/test4.c' ],
|
|
|
|
[ 'playback/test5.c' ],
|
|
|
|
[ 'playback/test6.c' ],
|
|
|
|
[ 'playback/test7.c' ],
|
|
|
|
]
|
|
|
|
|
2022-04-14 10:10:46 +00:00
|
|
|
itest_deps = [gst_dep]
|
2018-04-12 13:02:51 +00:00
|
|
|
|
2022-04-14 10:10:46 +00:00
|
|
|
foreach itest : base_itests
|
|
|
|
fname = itest.get(0)
|
|
|
|
itest_name = fname.split('.').get(0).underscorify()
|
|
|
|
skip_itest = false
|
2018-04-12 13:02:51 +00:00
|
|
|
is_bench = false
|
|
|
|
extra_deps = [ ]
|
|
|
|
|
2022-04-14 10:10:46 +00:00
|
|
|
if itest.length() >= 4
|
|
|
|
is_bench = itest.get(3)
|
2018-04-12 13:02:51 +00:00
|
|
|
endif
|
|
|
|
|
2022-04-14 10:10:46 +00:00
|
|
|
if itest.length() >= 3
|
|
|
|
extra_deps = itest.get(2)
|
2018-04-12 13:02:51 +00:00
|
|
|
endif
|
|
|
|
|
2022-04-14 10:10:46 +00:00
|
|
|
if itest.length() >= 2
|
|
|
|
skip_itest = itest.get(1)
|
2018-04-12 13:02:51 +00:00
|
|
|
endif
|
|
|
|
|
2022-04-14 10:10:46 +00:00
|
|
|
if not skip_itest
|
|
|
|
exe = executable(itest_name, fname,
|
2018-04-12 13:02:51 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
c_args : ['-DHAVE_CONFIG_H=1' ],
|
2022-04-14 10:10:46 +00:00
|
|
|
dependencies : itest_deps + extra_deps,
|
2018-04-12 13:02:51 +00:00
|
|
|
)
|
|
|
|
if is_bench
|
2022-04-14 10:10:46 +00:00
|
|
|
benchmark('bench_' + itest_name, exe)
|
2018-04-12 13:02:51 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endforeach
|