1gst_tester = executable('gst-tester-' + apiversion, 2 'gst-tester.c', 3 c_args : gst_c_args, 4 include_directories : [configinc], 5 install: true, 6 dependencies : [gio_dep], 7) 8 9meson.override_find_program('gst-tester-' + apiversion, gst_tester) 10 11tests = [ 12 'simplest', 13] 14 15env = environment() 16env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root()) 17env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '') 18env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'validate')) 19env.set('GST_PLUGIN_SCANNER_1_0', gst_scanner_dir + '/gst-plugin-scanner') 20env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-validate') 21 22foreach t: tests 23 test_dir_name = t.split('/') 24 test_name = 'validate' 25 foreach c: test_dir_name 26 test_name += '.' + c 27 endforeach 28 test_env = env 29 test_env.set('GST_VALIDATE_LOGSDIR', join_paths(meson.current_build_dir(), test_name)) 30 test_file = join_paths(meson.current_source_dir(), t + '.validatetest') 31 test(test_name, gst_tester, args: [test_file, '--use-fakesinks'], 32 env: test_env, timeout : 3 * 60, protocol: 'tap') 33endforeach 34