1gst_tester = find_program('gst-tester-@0@'.format(api_version), required: get_option('tests')) 2if not gst_tester.found() 3 subdir_done() 4endif 5 6tests = [ 7 'opencv/cvtracker' 8] 9 10env = environment() 11env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root(), pluginsdirs) 12env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '') 13env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'validate')) 14env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path) 15env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-validate', 'gst-plugins-base', 16 'gst-plugins-bad@' + meson.project_build_root()) 17 18foreach t: tests 19 test_dir_name = t.split('/') 20 test_name = 'validate' 21 foreach c: test_dir_name 22 test_name += '.' + c 23 endforeach 24 test_env = env 25 test_env.set('GST_VALIDATE_LOGSDIR', join_paths(meson.current_build_dir(), test_name)) 26 test_file = join_paths(meson.current_source_dir(), t + '.validatetest') 27 test(test_name, gst_tester, args: [test_file, '--use-fakesinks'], 28 env: test_env, timeout : 3 * 60, protocol: 'tap') 29endforeach 30