2016-08-04 21:33:55 +00:00
|
|
|
# tests and condition when to skip the test
|
|
|
|
ges_tests = [
|
|
|
|
['ges/asset'],
|
|
|
|
['ges/backgroundsource'],
|
|
|
|
['ges/basic'],
|
|
|
|
['ges/layer'],
|
|
|
|
['ges/effects'],
|
|
|
|
['ges/uriclip'],
|
|
|
|
['ges/clip'],
|
|
|
|
['ges/timelineedition'],
|
|
|
|
['ges/titles'],
|
|
|
|
['ges/transition'],
|
|
|
|
['ges/overlays'],
|
|
|
|
['ges/mixers'],
|
|
|
|
['ges/group'],
|
|
|
|
['ges/project'],
|
|
|
|
['ges/track'],
|
|
|
|
['ges/tempochange'],
|
2019-01-29 04:45:49 +00:00
|
|
|
['ges/negative'],
|
2019-08-22 16:50:00 +00:00
|
|
|
['ges/markerlist'],
|
2016-08-04 21:33:55 +00:00
|
|
|
['nle/simple'],
|
|
|
|
['nle/complex'],
|
|
|
|
['nle/nleoperation'],
|
|
|
|
['nle/nlecomposition'],
|
|
|
|
['nle/tempochange']
|
|
|
|
]
|
|
|
|
|
|
|
|
test_defines = [
|
|
|
|
'-UG_DISABLE_ASSERT',
|
|
|
|
'-UG_DISABLE_CAST_CHECKS',
|
2016-09-09 19:42:13 +00:00
|
|
|
'-DGES_TEST_FILES_PATH="' + meson.current_source_dir() + '/ges/"',
|
2016-08-04 21:33:55 +00:00
|
|
|
'-DGST_CHECK_TEST_ENVIRONMENT_BEACON="GST_STATE_IGNORE_ELEMENTS"',
|
|
|
|
'-DTESTFILE="' + meson.current_source_dir() + '/meson.build"',
|
|
|
|
'-DGST_USE_UNSTABLE_API',
|
|
|
|
]
|
|
|
|
|
2016-10-03 20:44:04 +00:00
|
|
|
pluginsdirs = []
|
2017-03-28 17:25:06 +00:00
|
|
|
if gst_dep.type_name() == 'pkgconfig'
|
|
|
|
pbase = dependency('gstreamer-plugins-base-' + apiversion, required : false)
|
|
|
|
pbad = dependency('gstreamer-plugins-bad-' + apiversion, required : false)
|
2016-08-04 21:33:55 +00:00
|
|
|
|
2017-03-28 17:25:06 +00:00
|
|
|
pluginsdirs = [gst_dep.get_pkgconfig_variable('pluginsdir'),
|
|
|
|
pbase.get_pkgconfig_variable('pluginsdir'),
|
2018-08-15 13:44:30 +00:00
|
|
|
pbad.get_pkgconfig_variable('pluginsdir')]
|
2016-10-03 20:44:04 +00:00
|
|
|
endif
|
2016-08-04 21:33:55 +00:00
|
|
|
|
|
|
|
foreach t : ges_tests
|
2017-06-07 16:08:00 +00:00
|
|
|
fname = '@0@.c'.format(t.get(0))
|
|
|
|
test_name = t.get(0).underscorify()
|
2016-08-04 21:33:55 +00:00
|
|
|
if t.length() == 2
|
|
|
|
skip_test = t.get(1)
|
|
|
|
else
|
|
|
|
skip_test = false
|
|
|
|
endif
|
|
|
|
|
|
|
|
if not skip_test
|
2016-10-03 20:44:04 +00:00
|
|
|
env = environment()
|
|
|
|
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
|
|
|
|
env.set('GST_STATE_IGNORE_ELEMENTS', '')
|
|
|
|
env.set('CK_DEFAULT_TIMEOUT', '20')
|
|
|
|
env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
|
2017-03-25 13:47:16 +00:00
|
|
|
env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
|
2016-10-03 20:44:04 +00:00
|
|
|
|
2017-06-07 16:08:00 +00:00
|
|
|
exe = executable(test_name, fname,
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges/test-utils.c', 'nle/common.c',
|
|
|
|
c_args : ges_c_args + test_defines,
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : libges_deps + [gstcheck_dep, ges_dep],
|
|
|
|
)
|
2019-01-14 01:16:18 +00:00
|
|
|
test(test_name, exe, env: env, timeout : 3 * 60)
|
2016-08-04 21:33:55 +00:00
|
|
|
endif
|
|
|
|
endforeach
|
2016-09-13 15:31:54 +00:00
|
|
|
|
|
|
|
if build_gir
|
2018-06-15 20:49:55 +00:00
|
|
|
# Make sure to use the subproject gst-validate-launcher if avalaible.
|
|
|
|
if gstvalidate_dep.found() and gstvalidate_dep.type_name() == 'internal'
|
|
|
|
runtests = subproject('gst-devtools').get_variable('launcher')
|
|
|
|
else
|
|
|
|
runtests = find_program('gst-validate-launcher', required : false)
|
|
|
|
endif
|
2016-09-13 15:31:54 +00:00
|
|
|
|
|
|
|
if runtests.found()
|
2018-06-15 20:49:55 +00:00
|
|
|
test('pythontests', runtests, args: ['--pyunittest-dir', meson.current_source_dir(), 'pyunittest', '--dump-on-failure'],
|
|
|
|
env: env)
|
2016-09-13 15:31:54 +00:00
|
|
|
endif
|
|
|
|
endif
|