1 # name, condition when to skip the test and extra dependencies
3 [ 'elements/x264enc', not x264_dep.found(), [ x264_dep, gmodule_dep ] ],
4 [ 'elements/xingmux' ],
8 # FIXME: unistd dependency or not tested yet on windows
9 if host_machine.system() != 'windows'
11 [ 'elements/amrnbenc', not amrnb_dep.found() ],
12 [ 'elements/mpeg2dec', not mpeg2_dep.found() or not cdata.has('HAVE_UNISTD_H'), [ gstvideo_dep ] ],
18 '-UG_DISABLE_CAST_CHECKS',
19 '-DGST_CHECK_TEST_ENVIRONMENT_BEACON="GST_PLUGIN_LOADING_WHITELIST"',
20 '-DGST_TEST_FILES_PATH="' + meson.current_source_dir() + '/../files"',
21 '-DGST_USE_UNSTABLE_API',
25 if gst_dep.type_name() == 'pkgconfig'
26 pbase = dependency('gstreamer-plugins-base-' + api_version, required: true)
27 pluginsdirs = [gst_dep.get_variable('pluginsdir'),
28 pbase.get_variable('pluginsdir')]
29 gst_plugin_scanner_dir = gst_dep.get_variable('pluginscannerdir')
31 gst_plugin_scanner_dir = subproject('gstreamer').get_variable('gst_scanner_dir')
33 gst_plugin_scanner_path = join_paths(gst_plugin_scanner_dir, 'gst-plugin-scanner')
35 test_deps = [gst_dep, gstbase_dep, gstcheck_dep, gstaudio_dep, gstapp_dep,
36 gstfft_dep, gstvideo_dep, gstpbutils_dep]
38 libm = cc.find_library('m', required : false)
40 # FIXME: valgrind_args: add suppressions $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-ugly.supp
44 '-Wno-missing-prototypes',
45 '-Wno-missing-declarations',
46 '-Wno-old-style-definition']
47 if cc.has_argument(arg)
52 foreach t : ugly_tests
53 fname = '@0@.c'.format(t.get(0))
54 test_name = t.get(0).underscorify()
65 exe = executable(test_name, fname,
66 include_directories : [configinc],
67 c_args : ['-DHAVE_CONFIG_H=1' ] + test_defines + no_warn_args,
68 dependencies : [libm] + test_deps + extra_deps,
72 env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
73 env.set('CK_DEFAULT_TIMEOUT', '20')
74 env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-plugins-base',
75 'gst-plugins-good', 'gst-plugins-ugly@' + meson.project_build_root())
76 env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
77 env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
78 env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
79 test(test_name, exe, env: env, timeout: 3 * 60)