2016-09-07 13:59:22 +00:00
|
|
|
# tests and condition when to skip the test
|
|
|
|
validate_tests = [
|
|
|
|
['validate/padmonitor'],
|
|
|
|
['validate/monitoring'],
|
|
|
|
['validate/reporting'],
|
2019-02-03 23:05:36 +00:00
|
|
|
['validate/overrides'],
|
2019-02-04 16:18:04 +00:00
|
|
|
['validate/scenario'],
|
2020-04-22 15:27:16 +00:00
|
|
|
['validate/utilities'],
|
2019-02-04 16:18:04 +00:00
|
|
|
['validate/expression_parser'],
|
2016-09-07 13:59:22 +00:00
|
|
|
]
|
|
|
|
|
2023-07-12 03:57:22 +00:00
|
|
|
fsmod = import('fs')
|
2016-09-07 13:59:22 +00:00
|
|
|
test_defines = [
|
|
|
|
'-UG_DISABLE_ASSERT',
|
|
|
|
'-UG_DISABLE_CAST_CHECKS',
|
|
|
|
'-DGST_CHECK_TEST_ENVIRONMENT_BEACON="GST_STATE_IGNORE_ELEMENTS"',
|
2023-07-12 03:57:22 +00:00
|
|
|
'-DTESTFILE="' + fsmod.as_posix(meson.current_source_dir()) + '/meson.build"',
|
2016-09-07 13:59:22 +00:00
|
|
|
'-DGST_USE_UNSTABLE_API',
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach t : validate_tests
|
2017-06-07 16:29:17 +00:00
|
|
|
fname = '@0@.c'.format(t.get(0))
|
|
|
|
test_name = t.get(0).underscorify()
|
2016-09-07 13:59:22 +00:00
|
|
|
if t.length() == 2
|
|
|
|
skip_test = t.get(1)
|
|
|
|
else
|
|
|
|
skip_test = false
|
|
|
|
endif
|
|
|
|
|
|
|
|
if not skip_test
|
2020-06-15 22:06:33 +00:00
|
|
|
env = environment()
|
|
|
|
env.set('GST_STATE_IGNORE_ELEMENTS', '')
|
|
|
|
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
|
2021-10-18 14:47:00 +00:00
|
|
|
env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
|
2020-06-15 22:06:33 +00:00
|
|
|
env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
|
|
|
|
env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
|
|
|
|
|
2017-06-07 16:29:17 +00:00
|
|
|
exe = executable(test_name, fname,
|
2016-09-07 13:59:22 +00:00
|
|
|
'validate/test-utils.c',
|
|
|
|
c_args : gst_c_args + test_defines,
|
|
|
|
include_directories : [inc_dirs],
|
2018-09-01 06:39:32 +00:00
|
|
|
dependencies : [validate_dep, gst_check_dep],
|
2019-02-03 23:05:36 +00:00
|
|
|
link_with: gstvalidate
|
2016-09-07 13:59:22 +00:00
|
|
|
)
|
2016-11-18 17:45:42 +00:00
|
|
|
env.set('GST_REGISTRY',
|
|
|
|
'@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
|
|
|
|
test(test_name, exe, env: env)
|
2016-09-07 13:59:22 +00:00
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|