1 # tests and condition when to skip the test
4 ['ges/backgroundsource'],
10 ['ges/timelineedition'],
23 ['nle/nlecomposition'],
29 '-UG_DISABLE_CAST_CHECKS',
30 '-DGES_TEST_FILES_PATH="' + meson.current_source_dir() + '/ges/"',
31 '-DGST_CHECK_TEST_ENVIRONMENT_BEACON="GST_STATE_IGNORE_ELEMENTS"',
32 '-DTESTFILE="' + meson.current_source_dir() + '/meson.build"',
33 '-DGST_USE_UNSTABLE_API',
37 if gst_dep.type_name() == 'pkgconfig'
38 pbase = dependency('gstreamer-plugins-base-' + apiversion, required : false)
39 pbad = dependency('gstreamer-plugins-bad-' + apiversion, required : false)
41 pluginsdirs = [gst_dep.get_pkgconfig_variable('pluginsdir'),
42 pbase.get_pkgconfig_variable('pluginsdir'),
43 pbad.get_pkgconfig_variable('pluginsdir')]
47 fname = '@0@.c'.format(t.get(0))
48 test_name = t.get(0).underscorify()
57 env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
58 env.set('GST_STATE_IGNORE_ELEMENTS', '')
59 env.set('CK_DEFAULT_TIMEOUT', '20')
60 env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
61 env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
63 exe = executable(test_name, fname,
64 'ges/test-utils.c', 'nle/common.c',
65 c_args : ges_c_args + test_defines,
66 include_directories : [configinc],
67 dependencies : libges_deps + [gstcheck_dep, ges_dep],
69 test(test_name, exe, env: env, timeout : 3 * 60)
74 # Make sure to use the subproject gst-validate-launcher if avalaible.
75 if gstvalidate_dep.found() and gstvalidate_dep.type_name() == 'internal'
76 runtests = subproject('gst-devtools').get_variable('launcher')
78 runtests = find_program('gst-validate-launcher', required : false)
82 test('pythontests', runtests, args: ['--pyunittest-dir', meson.current_source_dir(), 'pyunittest', '--dump-on-failure'],