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